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

namespace MyTelegram.Schema;

///<summary>
/// The channel was created
/// See <a href="https://corefork.telegram.org/constructor/messageActionChannelCreate" />
///</summary>
[TlObject(0x95d2ac92)]
public sealed class TMessageActionChannelCreate : IMessageAction
{
    public uint ConstructorId => 0x95d2ac92;
    ///<summary>
    /// Original channel/supergroup title
    ///</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();
    }
}