brace for new telethon update

This commit is contained in:
blank X 2020-10-04 10:36:58 +07:00
parent dac4d575b1
commit a3731c3ae3
1 changed files with 3 additions and 2 deletions

View File

@ -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)