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

namespace MyTelegram.Schema;

///<summary>
/// Message to which the specified message replies to
/// See <a href="https://corefork.telegram.org/constructor/inputMessageReplyTo" />
///</summary>
[TlObject(0xbad88395)]
public sealed class TInputMessageReplyTo : IInputMessage
{
    public uint ConstructorId => 0xbad88395;
    ///<summary>
    /// ID of the message that replies to the message we need
    ///</summary>
    public int Id { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Id = buffer.ReadInt32();
    }
}