windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
256 stars 116 forks source link

Failed to call /setMyCommands: : 400 Bad Request: BOT_COMMAND_INVALID" #283

Closed palvarez89 closed 1 year ago

palvarez89 commented 1 year ago
"Failed to call /setMyCommands for language : Error: ETELEGRAM: 400 Bad Request: BOT_COMMAND_INVALID"

I believe this command has changed and is now /setcommands

windkh commented 1 year ago

did you make use of any capital letter? so instead of /Foo it must be /foo Upper case letters are not allowed, too.

palvarez89 commented 1 year ago

Hi, I had 2 nodes, one with /test and other with /temps. Only was registering one of them. After I enabled both this warning went away, and the commands were being configured correctly.

The error message was misleading. It made me think the issue was that we were sending the wrong command.

windkh commented 1 year ago

The error is directly issued by the Telegram Server. It was not created by the nodes.

windkh commented 1 year ago

@palvarez89 so the error is not reproducible? If not then I would close the issue and if it appears again, then I would need an example flow, ok?

palvarez89 commented 1 year ago

The error is directly issued by the Telegram Server. It was not created by the nodes.

that explains why I wasn't able to find the error message in the codebase. Closing this now!

Thank you for replying so quick, and for this project!