TelegramContextSource

Resolves the TelegramContext lazily, once a Bot instance becomes available.

bot { } only hands out its Bot instance inside each dispatch { } handler (message, callbackQuery, ...) — it isn't available yet while the bot is being configured. Share one instance between telegramEffectExecutor and connect so the executor can await the same bot the dispatcher observes, without ru.workinprogress.telek.Telek needing to own or track it.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun context(): TelegramContext