From 42fed132054ce8dcd6e9d06242b08c068c02f605 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:40:53 +0100 Subject: [PATCH] Making method Invoke virtual for library add-ons. --- src/Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.cs b/src/Client.cs index 316dfc0..fbeb56b 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -1584,7 +1584,7 @@ namespace WTelegram /// Expected type of the returned object /// TL method structure /// Wait for the reply and return the resulting object, or throws an RpcException if an error was replied - public async Task Invoke(IMethod query) + public virtual async Task Invoke(IMethod query) { if (_dcSession.withoutUpdates && query is not IMethod and not IMethod) query = new TL.Methods.InvokeWithoutUpdates { query = query };