mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-03-09 14:53:57 +01:00
Making method Invoke virtual for library add-ons.
This commit is contained in:
parent
3d4be8ee9a
commit
42fed13205
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Reference in a new issue