mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
Fix #225: RpcError INPUT_METHOD_INVALID_3105996036 when using client.DisableUpdates()
This commit is contained in:
parent
a17f13475d
commit
48a1322452
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
pr: none
|
pr: none
|
||||||
trigger: [ master ]
|
trigger: [ master ]
|
||||||
|
|
||||||
name: 3.6.3-dev.$(Rev:r)
|
name: 3.6.4-dev.$(Rev:r)
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -1355,7 +1355,7 @@ namespace WTelegram
|
||||||
/// <returns>Wait for the reply and return the resulting object, or throws an RpcException if an error was replied</returns>
|
/// <returns>Wait for the reply and return the resulting object, or throws an RpcException if an error was replied</returns>
|
||||||
public async Task<T> Invoke<T>(IMethod<T> query)
|
public async Task<T> Invoke<T>(IMethod<T> query)
|
||||||
{
|
{
|
||||||
if (_dcSession.WithoutUpdates && query is not IMethod<Pong>)
|
if (_dcSession.WithoutUpdates && query is not IMethod<Pong> and not IMethod<FutureSalts>)
|
||||||
query = new TL.Methods.InvokeWithoutUpdates<T> { query = query };
|
query = new TL.Methods.InvokeWithoutUpdates<T> { query = query };
|
||||||
bool got503 = false;
|
bool got503 = false;
|
||||||
retry:
|
retry:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue