Node-telegram-bot-api: Listen To Channel

Created on 4 Jan 2018  路  6Comments  路  Source: yagop/node-telegram-bot-api

How can I get this bot to join a specific channel and record messages from a specific person. I need the bot to do something specific when a specific person sends a message to a channel.

Most helpful comment

As of today, the issue is still here :(
Does anyone have found a solution to this problem ?

EDIT: Well it seems you're not supposed to use message event, but channel_post

All 6 comments

Do you got any solution for this?

  1. Disable privacy mode in bot (https://core.telegram.org/bots#privacy-mode)
  2. Listen to all messages and filter them out by either message.from.id or message.from.username.

Strange, my bot is administrator of the channel, but he ie not receiving from channel. Private mode is disabled.

Any idea why?

Hi @dmitrypisanko , Remove your Bot and Add again.

@saeedhei done it ten times. Nothing changes

As of today, the issue is still here :(
Does anyone have found a solution to this problem ?

EDIT: Well it seems you're not supposed to use message event, but channel_post

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jacopocappelli1989 picture jacopocappelli1989  路  4Comments

saeedhei picture saeedhei  路  4Comments

mbrammer picture mbrammer  路  3Comments

Rezania815 picture Rezania815  路  3Comments

kenanchristian picture kenanchristian  路  4Comments