Making method Invoke virtual for library add-ons.

This commit is contained in:
Wizou 2026-02-27 16:40:53 +01:00
parent 3d4be8ee9a
commit 42fed13205

View file

@ -1584,7 +1584,7 @@ namespace WTelegram
/// <typeparam name="T">Expected type of the returned object</typeparam>
/// <param name="query">TL method structure</param>
/// <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 virtual async Task<T> Invoke<T>(IMethod<T> query)
{
if (_dcSession.withoutUpdates && query is not IMethod<Pong> and not IMethod<FutureSalts>)
query = new TL.Methods.InvokeWithoutUpdates<T> { query = query };