congrats tg

This commit is contained in:
blank X 2020-09-29 00:02:50 +07:00
parent 86d798fa79
commit dac4d575b1
1 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,10 @@ async def main():
@error_dec @error_dec
@client.on(events.NewMessage) @client.on(events.NewMessage)
async def handle_new_channel_message(e): async def handle_new_channel_message(e):
if not (e.from_id == 1087968824 and e.fwd_from or not e.from_id): if not (
(e.from_id in (1087968824, 136817688) and e.fwd_from) or
not e.from_id
):
return return
chat_data = get_chat_data(e.chat_id) chat_data = get_chat_data(e.chat_id)
if not chat_data['enabled']: if not chat_data['enabled']: