diff --git a/acpbot.py b/acpbot.py index 743556b..58c544d 100644 --- a/acpbot.py +++ b/acpbot.py @@ -114,8 +114,9 @@ async def main(): @client.on(events.NewMessage) async def handle_new_channel_message(e): if not ( - (e.from_id in (1087968824, 136817688) and e.fwd_from) or - not e.from_id + (e.sender_id in (1087968824, 136817688) and e.fwd_from) or + not e.sender_id or + e.sender_id < 0 ): return chat_data = get_chat_data(e.chat_id)