request method
Future<Map>
request(
- String method, {
- Map? parameters,
- required int clientId,
- bool isVoid = false,
- Duration? delayDuration,
- Duration? invokeTimeOut,
- String? extra,
- bool? isUseCache,
- Duration? durationCacheExpire,
- bool? isAutoGetChat,
- FutureOr<
String> onGenerateExtraInvoke()?, - FutureOr<
Map> onGetInvokeData()?, - bool? isInvokeThrowOnError,
Implementation
Future<Map> request(
String method, {
Map? parameters,
required int clientId,
bool isVoid = false,
Duration? delayDuration,
Duration? invokeTimeOut,
String? extra,
bool? isUseCache,
Duration? durationCacheExpire,
bool? isAutoGetChat,
FutureOr<String> Function(int client_id, TdlibBase libTdJson)?
onGenerateExtraInvoke,
FutureOr<Map> Function(String extra, int client_id, TdlibBase libTdJson)?
onGetInvokeData,
bool? isInvokeThrowOnError,
}) async {
return await invoke(
method,
parameters: parameters,
clientId: clientId,
isVoid: isVoid,
isUseCache: isUseCache,
durationCacheExpire: durationCacheExpire,
delayDuration: delayDuration,
invokeTimeOut: invokeTimeOut,
extra: extra,
isAutoGetChat: isAutoGetChat,
onGenerateExtraInvoke: onGenerateExtraInvoke,
// onGenerateExtraInvoke: onGenerateExtraInvoke,
onGetInvokeData: onGetInvokeData,
isInvokeThrowOnError: isInvokeThrowOnError,
);
}