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

namespace MyTelegram.Schema;

///<summary>
/// Deleted localization string
/// See <a href="https://corefork.telegram.org/constructor/langPackStringDeleted" />
///</summary>
[TlObject(0x2979eeb2)]
public sealed class TLangPackStringDeleted : ILangPackString
{
    public uint ConstructorId => 0x2979eeb2;
    ///<summary>
    /// Localization key
    ///</summary>
    public string Key { get; set; }

    public void ComputeFlag()
    {

    }

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

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