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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Info about <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcuts »</a>.
/// See <a href="https://corefork.telegram.org/constructor/messages.quickReplies" />
///</summary>
[TlObject(0xc68d6695)]
public sealed class TQuickReplies : IQuickReplies
{
    public uint ConstructorId => 0xc68d6695;
    ///<summary>
    /// Quick reply shortcuts.
    ///</summary>
    public TVector<MyTelegram.Schema.IQuickReply> QuickReplies { get; set; }

    ///<summary>
    /// Messages mentioned in <code>quick_replies</code>.
    ///</summary>
    public TVector<MyTelegram.Schema.IMessage> Messages { get; set; }

    ///<summary>
    /// Mentioned chats
    ///</summary>
    public TVector<MyTelegram.Schema.IChat> Chats { get; set; }

    ///<summary>
    /// Mentioned users
    ///</summary>
    public TVector<MyTelegram.Schema.IUser> Users { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(QuickReplies);
        writer.Write(Messages);
        writer.Write(Chats);
        writer.Write(Users);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        QuickReplies = buffer.Read<TVector<MyTelegram.Schema.IQuickReply>>();
        Messages = buffer.Read<TVector<MyTelegram.Schema.IMessage>>();
        Chats = buffer.Read<TVector<MyTelegram.Schema.IChat>>();
        Users = buffer.Read<TVector<MyTelegram.Schema.IUser>>();
    }
}