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

namespace MyTelegram.Schema.Bots;

///<summary>
/// Localized information about a bot.
/// See <a href="https://corefork.telegram.org/constructor/bots.botInfo" />
///</summary>
[TlObject(0xe8a775b0)]
public sealed class TBotInfo : IBotInfo
{
    public uint ConstructorId => 0xe8a775b0;
    ///<summary>
    /// Bot name
    ///</summary>
    public string Name { get; set; }

    ///<summary>
    /// Bot about text
    ///</summary>
    public string About { get; set; }

    ///<summary>
    /// Bot description
    ///</summary>
    public string Description { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Name = buffer.ReadString();
        About = buffer.ReadString();
        Description = buffer.ReadString();
    }
}