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

namespace MyTelegram.Schema;

///<summary>
/// A message was added to the <a href="https://corefork.telegram.org/api/scheduled-messages">schedule queue of a chat</a>
/// See <a href="https://corefork.telegram.org/constructor/updateNewScheduledMessage" />
///</summary>
[TlObject(0x39a51dfb)]
public sealed class TUpdateNewScheduledMessage : IUpdate
{
    public uint ConstructorId => 0x39a51dfb;
    ///<summary>
    /// Message
    /// 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>();
    }
}