oott123 / node-telegram-bot

Create your own Telegram bot in minutes with the official Bot API
https://telegram.me/GaussBot
MIT License
49 stars 12 forks source link

Does not work in group chats? #2

Closed SBejga closed 9 years ago

SBejga commented 9 years ago

Hi,

at first, thank you for sharing your node.js examples of an telegram bot. Receiving messages in normal chats is working and very cool. But what about when adding the bot to a group chat? I checked the /setprivacy (enabled or disabled) and tried to add some commands via /setcommands. But sending messages in the group the bot was added, I do not receive any "message" events. Do you have a hint?

regards Sebastian

orzFly commented 9 years ago

I have a bot named GaussBot have been running fluently for more than 12 hours since this module created and it works quite well in both normal chats and group chats regardless of the privacy mode.

Maybe you can try navigate to https://api.telegram.org/botTOKEN/getUpdates (replace TOKEN with your bot token) in the browser to see if the Telegram server returns correct results.

SBejga commented 9 years ago

Oh. Thanks for the hint! Navigating to the url and seeing the response should solve my problem. The data is there, therefore I can search my problem.

Very helpful small project! Thanks a lot.