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

namespace MyTelegram.Schema;

///<summary>
/// A message was deleted
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionDeleteMessage" />
///</summary>
[TlObject(0x42e047bb)]
public sealed class TChannelAdminLogEventActionDeleteMessage : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0x42e047bb;
    ///<summary>
    /// The message that was deleted
    /// 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>();
    }
}