My telegram bot built using python and pyrogram was working properly i.e. receiving all the messages from all telegram subscribed channels. It started having the following problems:
- Not receiving messages from telegram channels
- Not receiving all the messages received on the telegram channels
from pyrogram import Client, filters
TELEGRAM_API_ID = xxxxx
TELEGRAM_API_HASH = "xxxxx"
TELEGRAM_BOT_TOKEN = "xxxxx"
TELEGRAM_BOT_NAME="xxxxx"
bot = Client(TELEGRAM_BOT_NAME, api_id=TELEGRAM_API_ID, api_hash=TELEGRAM_API_HASH)
bot.on_message(filters.channel)
async def telegram_bot_main(client, message):
print(message.text)
bot.run()
I expect to :
- To receive all the messages from all subscribed channels