Package-level declarations
Types
Resolves the KtgContext lazily, once a TelegramBot instance becomes available.
Deliberately a verbatim copy of :telegram's builder of the same name: it only produces a Telegram-flavoured markdown String and has nothing to do with either client library, but sharing it would mean :ktg depending on :telegram (and so on kotlin-telegram-bot). Keep the two in sync when either changes.
Properties
ktgbotapi models ids as value classes (ChatId/RawChatId, MessageId); telek keys everything by a plain Long. These adapters are the whole of that translation — they're public so a bot wiring its own update handling (webhooks, a custom FlowsUpdatesFilter) can reuse them instead of going through connect.
Functions
null for a callback query that has no message attached to it (an inline-mode one), which telek can't key by chatId and therefore can't route.
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.