Closed ishankhare07 closed 8 years ago
Does your bot use webhooks to receive updates or do you poll?
I've only setup the TELEGRAM_TOKEN
and not any other things
What version of the bot are you running currently?
Hey, the latest master version has some more debug in to debug incoming messages. Can you please give it a try and let me know what output you get? Also, are you using an inline bot?
@arcturial will do that and let you know very soon
Have you managed to replicate the issue with the latest debug additions active?
I was having the same problem with 0.1.0, but upgrading to master seems to have fixed it for me. Perhaps release a new version?
Maybe it has to do with a message update by the telegram user after being sent. The telegram API responds with a JSON object that the adapter doesn't know how to handle (the object update.message
is undefined
in this case, then message_id
doesn't exist either. The object should be edited_message
in this case).
{"update_id":887944688,"edited_message":{"message_id":9,"from":{"id":1111111,"first_name":"xxx","username":"xxx"},"chat":{"id":-22222,"title":"xxx","type":"group"},"date":1464543624,"edit_date":1464543643,"text":"xxxbot ping"}}
FYI, i had a similar problem.
ERROR TypeError: Cannot read property 'hasOwnProperty' of undefined
It turned out that msg.reply caused this and msg.send works fine.$
thx @ishankhare07
As said, #50 should fix this issue. I will close this thread...hoping not have to re-open it 😃
This happens when i try to call my bot using
@
syntax in a group while it works fine for direct chat with boteg.
mybot help
-> works great in direct chat with the bot@mybot_username help
-> sucks in group chat