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

namespace MyTelegram.Schema;

///<summary>
/// Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing.
/// See <a href="https://corefork.telegram.org/constructor/updateEncryptedChatTyping" />
///</summary>
[TlObject(0x1710f156)]
public sealed class TUpdateEncryptedChatTyping : IUpdate
{
    public uint ConstructorId => 0x1710f156;
    ///<summary>
    /// Chat ID
    ///</summary>
    public int ChatId { get; set; }

    public void ComputeFlag()
    {

    }

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

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