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

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

Open
manbade opened this issue May 2, 2016 · 2 comments
Open

Comments

@manbade
Copy link

manbade commented May 2, 2016

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.

@Gianbacchio
Copy link
Owner

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
#4

Giancarlo Bacchio
mob. +39 3313136813
skype: giancarlo_bacchio

@konig87nikkinakki
Copy link

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

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