2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-22 01:58:17 +00:00

reject forwards properly

This commit is contained in:
Nick80835 2021-01-27 17:03:04 -05:00
parent ff00311655
commit 93819eacfa

View File

@ -22,7 +22,7 @@ class CommandHandler():
self.username = client.loop.run_until_complete(client.get_me()).username
self.settings = settings
self.loader = loader
client.add_event_handler(self.report_incoming_excepts, events.NewMessage(incoming=True, func=lambda e: e.raw_text and not e.fwd_from))
client.add_event_handler(self.report_incoming_excepts, events.NewMessage(incoming=True, forwards=False, func=lambda e: e.raw_text))
client.add_event_handler(self.handle_inline, events.InlineQuery())
client.add_event_handler(self.handle_callback_query, events.CallbackQuery())