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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/method/invokeWithReCaptcha" />
///</summary>
[TlObject(0xadbb0f94)]
public sealed class RequestInvokeWithReCaptcha : IRequest<IObject>
{
    public uint ConstructorId => 0xadbb0f94;
    public string Token { get; set; }
    public IObject Query { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Token = buffer.ReadString();
        Query = buffer.Read<IObject>();
    }
}
