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

namespace MyTelegram.Schema.Help;

///<summary>
/// Can only be used by TSF members to obtain internal information.
/// <para>Possible errors</para>
/// Code Type Description
/// 403 USER_INVALID Invalid user provided.
/// See <a href="https://corefork.telegram.org/method/help.getUserInfo" />
///</summary>
[TlObject(0x38a08d3)]
public sealed class RequestGetUserInfo : IRequest<MyTelegram.Schema.Help.IUserInfo>
{
    public uint ConstructorId => 0x38a08d3;
    ///<summary>
    /// User ID
    /// See <a href="https://corefork.telegram.org/type/InputUser" />
    ///</summary>
    public MyTelegram.Schema.IInputUser UserId { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        UserId = buffer.Read<MyTelegram.Schema.IInputUser>();
    }
}
