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

namespace MyTelegram.Schema;

///<summary>
/// Group name changed.
/// See <a href="https://corefork.telegram.org/constructor/messageActionChatEditTitle" />
///</summary>
[TlObject(0xb5a1ce5a)]
public sealed class TMessageActionChatEditTitle : IMessageAction
{
    public uint ConstructorId => 0xb5a1ce5a;
    ///<summary>
    /// New group name
    ///</summary>
    public string Title { get; set; }

    public void ComputeFlag()
    {

    }

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

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