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

namespace MyTelegram.Schema.Account;

///<summary>
/// Set an <a href="https://corefork.telegram.org/api/emoji-status">emoji status</a>
/// <para>Possible errors</para>
/// Code Type Description
/// 400 DOCUMENT_INVALID The specified document is invalid.
/// See <a href="https://corefork.telegram.org/method/account.updateEmojiStatus" />
///</summary>
[TlObject(0xfbd3de6b)]
public sealed class RequestUpdateEmojiStatus : IRequest<IBool>
{
    public uint ConstructorId => 0xfbd3de6b;
    ///<summary>
    /// <a href="https://corefork.telegram.org/api/emoji-status">Emoji status</a> to set
    /// See <a href="https://corefork.telegram.org/type/EmojiStatus" />
    ///</summary>
    public MyTelegram.Schema.IEmojiStatus EmojiStatus { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        EmojiStatus = buffer.Read<MyTelegram.Schema.IEmojiStatus>();
    }
}
