connect

fun BehaviourContext.connect(telek: Telek, contextSource: KtgContextSource, answerCallbackQueries: Boolean = true)

Adapts ktgbotapi updates into telek ru.workinprogress.telek.Inputs, keyed by chatId, and feeds the behaviour context's dev.inmo.tgbotapi.bot.TelegramBot to contextSource.

connect and ktgEffectExecutor must be given the same KtgContextSource instance.

Parameters

answerCallbackQueries

answers every handled callback query so Telegram stops the client's spinner (kotlin-telegram-bot does this on its own; ktgbotapi doesn't). Turn it off if a dispatcher answers with its own text/alert.