From 48a132245231d93cc08800875abb7afe5e5ee8c8 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Mon, 15 Jan 2024 14:45:58 +0100 Subject: [PATCH] Fix #225: RpcError INPUT_METHOD_INVALID_3105996036 when using client.DisableUpdates() --- .github/dev.yml | 2 +- src/Client.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/dev.yml b/.github/dev.yml index 261f68e..1d237e5 100644 --- a/.github/dev.yml +++ b/.github/dev.yml @@ -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 diff --git a/src/Client.cs b/src/Client.cs index 325cfeb..af22c38 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -1355,7 +1355,7 @@ namespace WTelegram /// Wait for the reply and return the resulting object, or throws an RpcException if an error was replied public async Task Invoke(IMethod query) { - if (_dcSession.WithoutUpdates && query is not IMethod) + if (_dcSession.WithoutUpdates && query is not IMethod and not IMethod) query = new TL.Methods.InvokeWithoutUpdates { query = query }; bool got503 = false; retry: