Telegram bot is not working

Hi,

I am trying to add the telegram module to the botpress but it doesn’t seems to be working. Just wondering if anyone encounter this error before too?


Cannot mount bot "msi-nyein" [Error, while mounting bot in module channel-telegram: Error: 401: Unauthorized]
STACK TRACE
Error: while mounting bot in module channel-telegram: Error: 401: Unauthorized
    at ModuleLoader. (/snapshot/build-linux/out/bp/core/module-loader.js)
    at Generator.throw ()
    at rejected (/snapshot/build-linux/out/bp/core/module-loader.js)
    at tryCatcher (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/promise.js:725:18)
    at _drainQueueStep (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/botpress/modules/.cache/module__6ac7f18be0b4c9c450916b64b91040f9b3f270c68255f4b75992fc301c384476/node_production_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (internal/timers.js:456:21)
    at process.topLevelDomainCallback (domain.js:137:15)

Hey @weihan1394

Have you configured the token in channel’s configuration file for your bot?
See instructions here: Telegram · | Developer's Guide

Hello, there is some change for the Bot in Telegram, because I followed the instructions with the BotFather of Telegram, I generate the token, I place everything as indicated in the manual, it simply does not execute anything. Although in the manual it says the following path “data / bots / <your_bot> /config/channel-telegram.json”. The truth is that the “config” folder does not exist, at least in version 12.22.1.

The only channel-telegram.json file that exists is in the Global configuration.

It may be that I am doing something wrong. Please help

Hie @novata and thank you for your question. Have you created a bot-specific config file as per tutorial? This should solve your problem.

Hi, @Michael_BotpressTeam.
This part if I manage to do it and the bot raised in Telegram, in fact I placed another message to the community regarding the Carousel, which you answered me yourself. Thank you