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

namespace MyTelegram.Schema;

///<summary>
/// Keywords for a certain sticker
/// See <a href="https://corefork.telegram.org/constructor/stickerKeyword" />
///</summary>
[TlObject(0xfcfeb29c)]
public sealed class TStickerKeyword : IStickerKeyword
{
    public uint ConstructorId => 0xfcfeb29c;
    ///<summary>
    /// Sticker ID
    ///</summary>
    public long DocumentId { get; set; }

    ///<summary>
    /// Keywords
    ///</summary>
    public TVector<string> Keyword { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        DocumentId = buffer.ReadInt64();
        Keyword = buffer.Read<TVector<string>>();
    }
}