// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema;

///<summary>
/// A message was pinned
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionUpdatePinned" />
///</summary>
[TlObject(0xe9e82c18)]
public sealed class TChannelAdminLogEventActionUpdatePinned : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0xe9e82c18;
    ///<summary>
    /// The message that was pinned
    /// See <a href="https://corefork.telegram.org/type/Message" />
    ///</summary>
    public MyTelegram.Schema.IMessage Message { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Message);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Message = buffer.Read<MyTelegram.Schema.IMessage>();
    }
}