Node-telegram-bot-api: Not receiving group messages

Created on 25 Jul 2016  路  7Comments  路  Source: yagop/node-telegram-bot-api

Hi there,

My bot is admin on a group created by another user and is not receiving the messages.
Any idea ?

My code:
`
....
// Setup polling way
var bot = new TelegramBot(token, {polling: true});

// Any kind of message
bot.on('message', function (msg) {
...
});
....
`
Thanks in advance

Most helpful comment

If your bot is not getting messages:

  1. Disable privacy mode with @botfather.
  2. Kick bot from chat if it's already in it.
  3. Invite bot to chat.

The order is important.

All 7 comments

I also can't recieve group messages (even with bot mentions @botname) when I added my bot to my group

Have you disabled privacy?

I've tried all that... ENABLED and DISABLED... I got it to work by changing/editing my group settings from 'Public Supergroup' (supergroup with a public link) to 'Private Supergroup' (supergroup without a public link)

It works fine in all normal (non-super) groups

If your bot is not getting messages:

  1. Disable privacy mode with @botfather.
  2. Kick bot from chat if it's already in it.
  3. Invite bot to chat.

The order is important.

Hi,
I followed @Cameri 's list and worked prefectly :+1:

Thank you very much!

FAQ worthy issue

@krokofant, The issue isn't dependent on this library but rather on Telegram's side.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saeedhei picture saeedhei  路  4Comments

lenny76 picture lenny76  路  3Comments

alikhil picture alikhil  路  3Comments

jacopocappelli1989 picture jacopocappelli1989  路  4Comments

Lemmmy picture Lemmmy  路  3Comments