ESP8266-TelegramBot icon indicating copy to clipboard operation
ESP8266-TelegramBot copied to clipboard

Commands "/" style not recognized in function analizeMessages(void)

Open manbade opened this issue 8 years ago • 2 comments

Hello, when using the Telegram command "/start" the string is not recognized in the example and the string "entities":[{"type":"bot_command","offset":0,"length":7}]}}]} is ignored in the function. I can suppose this is an issue in the Telegram new bot api version.

manbade avatar May 02 '16 18:05 manbade

hello, that's true. I need few days to have time to work on necessary modifications. sorry.

2016-05-02 20:36 GMT+02:00 Manbade VIA Manbait Untamed REEF < [email protected]>:

Hello, when using the Telegram command "/start" the string is not recognized in the example and the string "entities":[{"type":"bot_command","offset":0,"length":7}]}}]} is ignored in the function. I can suppose this is an issue in the Telegram new bot version.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/Gianbacchio/ESP8266-TelegramBot/issues/4

Giancarlo Bacchio mob. +39 3313136813 skype: giancarlo_bacchio

Gianbacchio avatar May 05 '16 17:05 Gianbacchio

i have the same problem! i tried to modify if (bot.message[i][5] == "\/ledon") { to "/ledon" , "\ledon", "ledon" but it never recognizes.

i see on Serial (sending /start): "message":{"message_id":20,"from":{"id":7615439XX,"is_bot":false,"first_name":"myname","language_code":"it"},"chat":{"id":7615439XX,"first_name":"GorXXX","type":"private"},"date":1577473792,"text":"/start","entities":[{"offset":0,"length":6,"type":"bot_command"}]}}]}

i see on Serial (sending start): message":{"message_id":21,"from":{"id":7615439XX,"is_bot":false,"first_name":"mynane","language_code":"it"},"chat":{"id":7615439XX,"first_name":"GorXXX","type":"private"},"date":1577473900,"text":"start"}}]}

i see START on Serial but it doesnt recognize, maybe it's a String problem or something like that? Any help is apprieciated

konig87nikkinakki avatar Dec 27 '19 19:12 konig87nikkinakki