mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-09 16:33:53 +00:00
renamed CallAsync as Invoke
This commit is contained in:
parent
8fe0c086bb
commit
45d6e330bc
4 changed files with 423 additions and 423 deletions
|
|
@ -298,17 +298,17 @@ namespace TL
|
|||
public static class MTProtoExtensions
|
||||
{
|
||||
public static Task<ResPQ> ReqPq(this Client client, Int128 nonce)
|
||||
=> client.CallBareAsync(new ReqPq
|
||||
=> client.InvokeBare(new ReqPq
|
||||
{
|
||||
nonce = nonce,
|
||||
});
|
||||
public static Task<ResPQ> ReqPqMulti(this Client client, Int128 nonce)
|
||||
=> client.CallBareAsync(new ReqPqMulti
|
||||
=> client.InvokeBare(new ReqPqMulti
|
||||
{
|
||||
nonce = nonce,
|
||||
});
|
||||
public static Task<ServerDHParams> ReqDHParams(this Client client, Int128 nonce, Int128 server_nonce, byte[] p, byte[] q, long public_key_fingerprint, byte[] encrypted_data)
|
||||
=> client.CallBareAsync(new ReqDHParams
|
||||
=> client.InvokeBare(new ReqDHParams
|
||||
{
|
||||
nonce = nonce,
|
||||
server_nonce = server_nonce,
|
||||
|
|
@ -318,39 +318,39 @@ namespace TL
|
|||
encrypted_data = encrypted_data,
|
||||
});
|
||||
public static Task<SetClientDHParamsAnswer> SetClientDHParams(this Client client, Int128 nonce, Int128 server_nonce, byte[] encrypted_data)
|
||||
=> client.CallBareAsync(new SetClientDHParams
|
||||
=> client.InvokeBare(new SetClientDHParams
|
||||
{
|
||||
nonce = nonce,
|
||||
server_nonce = server_nonce,
|
||||
encrypted_data = encrypted_data,
|
||||
});
|
||||
public static Task<DestroyAuthKeyRes> DestroyAuthKey(this Client client)
|
||||
=> client.CallBareAsync(new DestroyAuthKey
|
||||
=> client.InvokeBare(new DestroyAuthKey
|
||||
{
|
||||
});
|
||||
public static Task<RpcDropAnswer> RpcDropAnswer(this Client client, long req_msg_id)
|
||||
=> client.CallBareAsync(new Methods.RpcDropAnswer
|
||||
=> client.InvokeBare(new Methods.RpcDropAnswer
|
||||
{
|
||||
req_msg_id = req_msg_id,
|
||||
});
|
||||
public static Task<FutureSalts> GetFutureSalts(this Client client, int num)
|
||||
=> client.CallAsync(new GetFutureSalts
|
||||
=> client.Invoke(new GetFutureSalts
|
||||
{
|
||||
num = num,
|
||||
});
|
||||
public static Task<Pong> Ping(this Client client, long ping_id)
|
||||
=> client.CallAsync(new Ping
|
||||
=> client.Invoke(new Ping
|
||||
{
|
||||
ping_id = ping_id,
|
||||
});
|
||||
public static Task<Pong> PingDelayDisconnect(this Client client, long ping_id, int disconnect_delay)
|
||||
=> client.CallAsync(new PingDelayDisconnect
|
||||
=> client.Invoke(new PingDelayDisconnect
|
||||
{
|
||||
ping_id = ping_id,
|
||||
disconnect_delay = disconnect_delay,
|
||||
});
|
||||
public static Task<DestroySessionRes> DestroySession(this Client client, long session_id)
|
||||
=> client.CallBareAsync(new DestroySession
|
||||
=> client.InvokeBare(new DestroySession
|
||||
{
|
||||
session_id = session_id,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue