import telebot
BOT_TOKEN = 'TOKEN'
bot = telebot.TeleBot(BOT_TOKEN)
@bot.channel_post_handler(content_types=['text'])
def handle_channel_message(message):
print('good!')
bot.polling()
The bot has been added to the channel admin, but for some reason the handler “channel_post_handler” is not working. what could be the problem?
New contributor
Pol York is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.