just-ai / jaicf-kotlin

Kotlin framework for conversational voice assistants and chatbots development
https://help.jaicf.com
Apache License 2.0
241 stars 39 forks source link

#241 telegram channel webhook mode #242

Closed morfeusys closed 1 year ago

morfeusys commented 1 year ago

Nothing special is required to run Telegram channel in webhook mode:

embeddedServer(Netty, 8080) {
    routing {
        httpBotRouting(
            "/telegram" to TelegramChannel(TelegramBot, System.getenv("TELEGRAM_BOT_TOKEN"))
        )
    }
}.start(wait = true)