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

namespace MyTelegram.Schema;

///<summary>
/// An error occurred while generating the <a href="https://corefork.telegram.org/api/stats">statistics graph</a>
/// See <a href="https://corefork.telegram.org/constructor/statsGraphError" />
///</summary>
[TlObject(0xbedc9822)]
public sealed class TStatsGraphError : IStatsGraph
{
    public uint ConstructorId => 0xbedc9822;
    ///<summary>
    /// The error
    ///</summary>
    public string Error { get; set; }

    public void ComputeFlag()
    {

    }

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

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