Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram Bot not working #397

Open
vongomben opened this issue Dec 19, 2024 · 8 comments
Open

Telegram Bot not working #397

vongomben opened this issue Dec 19, 2024 · 8 comments

Comments

@vongomben
Copy link

Been trying to add a token of a bot I just created, but the bot fails to start.

This is the error I see from the console


19 Dec 12:06:21 - [error] [telegram bot:9bb06da30832a919] Bot spippolo4bot stopped: Please check if the bot token is valid: MYTOKEN
Unhandled rejection Error: ETELEGRAM: 401 Unauthorized
    at C:\Users\user\.node-red\node_modules\node-telegram-bot-api\src\telegram.js:316:15
    at tryCatcher (C:\Users\user\.node-red\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\user\.node-red\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (C:\Users\user\.node-red\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (C:\Users\user\.node-red\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (C:\Users\user\.node-red\node_modules\bluebird\js\release\promise.js:729:18)
    at _drainQueueStep (C:\Users\user\.node-red\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\Users\user\.node-red\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\Users\user\.node-red\node_modules\bluebird\js\release\async.js:102:5)
    at Async.drainQueues [as _onImmediate] (C:\Users\user\.node-red\node_modules\bluebird\js\release\async.js:15:14)
    at process.processImmediate (node:internal/timers:483:21)

@windkh
Copy link
Owner

windkh commented Dec 19, 2024

Do you use the same token in more than one application?

@vongomben
Copy link
Author

nope, just created
(thanks for the quick answer)

@windkh
Copy link
Owner

windkh commented Dec 19, 2024

Hm... just for crosschecking... create a new bot with another token and check again. If you trust me send me the token by mail and I check it for you. I assume the problem occurs immediately? Or did you have a special flow?

@vongomben
Copy link
Author

I'm using echo example.
which is your email?

@windkh
Copy link
Owner

windkh commented Dec 20, 2024

It is in my profile.

@OptifySudarshanPatil
Copy link

OptifySudarshanPatil commented Dec 30, 2024

I'm facing similar issue for creating new bot
have entered Botname as "@ botname" and token from Botfather response prompt

image

image

@windkh
Copy link
Owner

windkh commented Dec 30, 2024

The problems you described do not fit together.
The upper screen indicates that the node failed to initialize ...

The lower installation problem is something different. Maybe you have an old nodejs or nodered version installed?

@windkh
Copy link
Owner

windkh commented Dec 30, 2024

@vongomben I did not receive any email from you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants