TdlibNative constructor
TdlibNative({
- TelegramClientLibraryTdlibOptionParameter? clientOption,
- Duration? delayInvoke,
- Duration? delayUpdate,
- EventEmitter? eventEmitter,
- String event_invoke = "invoke",
- String event_update = "update",
- Duration? invokeTimeOut,
- bool isAutoGetChat = false,
- bool isInvokeThrowOnError = true,
- FutureOr<
String> on_generate_extra_invoke()?, - FutureOr<
Map> on_get_invoke_data()?, - FutureOr<
void> on_receive_update(- dynamic update,
- TdlibBase libTdJson
- String? pathTdl,
- int task_max_count = 10000,
- int task_min_cooldown = 10,
- double timeOutUpdate = 1.0,
Implementation
TdlibNative({
super.clientOption,
super.delayInvoke,
super.delayUpdate,
super.eventEmitter,
super.event_invoke,
super.event_update,
super.invokeTimeOut,
super.isAutoGetChat,
super.isInvokeThrowOnError,
super.on_generate_extra_invoke,
super.on_get_invoke_data,
super.on_receive_update,
super.pathTdl,
super.task_max_count,
super.task_min_cooldown,
super.timeOutUpdate,
}) {
opentdLib(pathTdlib: path_tdlib);
if (client_option["start"] == true) {
invokeSync(
parameters: {
"@type": "setLogVerbosityLevel",
"new_verbosity_level": client_option['new_verbosity_level'],
},
);
ensureInitialized();
}
}