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

namespace MyTelegram.Schema;

///<summary>
/// Channel/supergroup
/// See <a href="https://corefork.telegram.org/constructor/peerChannel" />
///</summary>
[TlObject(0xa2a5371e)]
public sealed class TPeerChannel : IPeer
{
    public uint ConstructorId => 0xa2a5371e;
    ///<summary>
    /// Channel ID
    ///</summary>
    public long ChannelId { get; set; }

    public void ComputeFlag()
    {

    }

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

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