handy_tdlib 2.0.0
handy_tdlib: ^2.0.0 copied to clipboard
Improved fork of tdlib package by i-Naji
Handy TDLib #
This plugin is an updated fork of i-Naji's TDLib plugin with Dart 3 features and new TDLib version
About plugin #
This is a Flutter plugin for TDLib (Telegram Database Library) v1.8.14
This plugin is a complete TDLib's JSON interface binding package to help you create your own Telegram client.
Installation #
Install the plugin by running the following command from the project root:
flutter pub add tdlib
Initialization #
This plugin supports only Android tdlib-tdjson library.
To initialize tdlib plugin, call the initialize
method on the TdPlugin
class.
Since this is an asynchronous operation, the main function can be modified to ensure initialization is complete before running the application.
Import tdlib
plugin:
import 'package:tdlib/tdlib.dart';
Next, within the main
function, initialize TdPlugin
:
void main() async {
await TdPlugin.initialize();
runApp(MyApp());
}
Usage #
Official TDLib guide (a bit old)
Documentation for currently used by this plugin TDLib version