Make an API call using this takeout session
This method just wraps the query into invokeWithTakeout
and passes the control down to TelegramClient.call.
RPC method to call
Optionalparams: RpcCallOptions & { withMessageRange?: RawMessageRange }Additional call parameters
OptionalwithMessageRange?: RawMessageRangeIf passed, the request will be wrapped in an invokeWithMessagesRange
Create a proxy over TelegramClient that will use this takeout session to call methods.
You can optionally provide a function to check if some RPC method should be called via a takeout session or directly, otherwise all methods are called through the takeout session.
Optionalparams: RpcCallOptions & {Optionalpredicate?: (obj: TlObject) => booleanFunction that given the RPC call should determine whether
that call should be called via takeout session (and use the rest of the params passed here) or not.
Returning true will use takeout session, false will call the method directly.
OptionalwithMessageRange?: RawMessageRangeIf passed, the request will be wrapped in an invokeWithMessagesRange
Account takeout session