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

namespace MyTelegram.Schema.Channels;

///<summary>
/// See <a href="https://corefork.telegram.org/method/channels.getMessageAuthor" />
///</summary>
[TlObject(0xece2a0e6)]
public sealed class RequestGetMessageAuthor : IRequest<MyTelegram.Schema.IUser>
{
    public uint ConstructorId => 0xece2a0e6;
    public MyTelegram.Schema.IInputChannel Channel { get; set; }
    public int Id { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Channel = buffer.Read<MyTelegram.Schema.IInputChannel>();
        Id = buffer.ReadInt32();
    }
}
