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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/botVerification" />
///</summary>
[TlObject(0xf93cd45c)]
public sealed class TBotVerification : IBotVerification
{
    public uint ConstructorId => 0xf93cd45c;
    public long BotId { get; set; }
    public long Icon { get; set; }
    public string Description { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        BotId = buffer.ReadInt64();
        Icon = buffer.ReadInt64();
        Description = buffer.ReadString();
    }
}