windkh / node-red-contrib-telegrambot

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

Failed to call /setMyCommands for language #192

Closed DarkPark closed 3 years ago

DarkPark commented 3 years ago

After migration to node-red v2.0.3 and upgrade to telegrambot v9.6.0 after each node-red restart I see this line in logs:

24 Jul 14:01:00 - [warn] [telegram bot:13314001.6f19] Failed to call /setMyCommands for language : Error: ETELEGRAM: 400 Bad Request: can't parse BotCommand: Can't find field "description"

but I don't use setMyCommands can you please advise?

windkh commented 3 years ago

Ok then uncheck the register box in the command node… I will change the default in next version

DarkPark commented 3 years ago

Hm. Are you talking about "Register At Telegram Server"? It was not checked.

windkh commented 3 years ago

That is weird… then I will ship just another release…

windkh commented 3 years ago

@DarkPark you can delete an add the node again that should work

DarkPark commented 3 years ago

I have 4 such nodes. Recreated all of them. Nothing has changed.

windkh commented 3 years ago

Version 9.6.1 should fix this... please try it out.

DarkPark commented 3 years ago

Node-red doesn't see this plugin update. Restart doesn't help. Maybe you know a way to force it?

windkh commented 3 years ago

I did ... it takes some minutes

DarkPark commented 3 years ago

Now it works without errors! Thanks :)

osulivanDE commented 1 year ago

Hi, i get the same message: "Failed to call /setMyCommands for language : Error: ETELEGRAM: 400 Bad Request: BOT_COMMAND_INVALID"

when adding a command node with the following settings.

Bildschirm­foto 2023-05-07 um 21 29 05

What am i doing wrong?

osulivanDE commented 1 year ago

Ok, it seems to take 20minutes until the command is created. Then the error message goes away

windkh commented 1 year ago

Hm can you reproduce it?

SelyutinAV commented 12 months ago

hi I also had such a problem. The mistake was that I put capital letters in the name of the command

windkh commented 12 months ago

Maybe I should check and prevent that. Thanks for reporting