Telegram Flow
Kotlin Coroutines API wrapper of the TDLib (Telegram Database library)
Using library
The main class of the library is TelegramFlow. It converts Telegram Java Updates classes to the Kotlin Coroutine Flows and Telegram callback-style Functions to Kotlin Coroutine suspend functions
Start using
- Create instance of TelegramFlow
- You can access flow of TdApi.Objects from the TelegramFlow instance and its flow extensions.
- Call attachClient function of the TelegramFlow instance to connect it to the Telegram Client.
- Now you can use numerous extension functions to send data to the Telegram API and collect data from flow extensions
Using extensions classes
Library provides extension classes