Fix #225: RpcError INPUT_METHOD_INVALID_3105996036 when using client.DisableUpdates()

This commit is contained in:
Wizou 2024-01-15 14:45:58 +01:00
parent a17f13475d
commit 48a1322452
2 changed files with 2 additions and 2 deletions

2
.github/dev.yml vendored
View file

@ -1,7 +1,7 @@
pr: none
trigger: [ master ]
name: 3.6.3-dev.$(Rev:r)
name: 3.6.4-dev.$(Rev:r)
pool:
vmImage: ubuntu-latest

View file

@ -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>
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 };
bool got503 = false;
retry: