filter out messages from 777000 (Telegram Service Messages)
This commit is contained in:
parent
b0a8bd01b2
commit
d82ef211cf
2
bot.py
2
bot.py
@ -703,7 +703,7 @@ class TelegramMonitorBot:
|
|||||||
|
|
||||||
# on noncommand i.e message - echo the message on Telegram
|
# on noncommand i.e message - echo the message on Telegram
|
||||||
dp.add_handler(MessageHandler(
|
dp.add_handler(MessageHandler(
|
||||||
Filters.all,
|
Filters.user(777000),
|
||||||
lambda bot, update : self.logger(bot, update)
|
lambda bot, update : self.logger(bot, update)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user