ok so im dumb

This commit is contained in:
blank X 2020-09-28 19:45:40 +07:00
parent 19191ce220
commit 4ea2dc39d9
1 changed files with 1 additions and 1 deletions

View File

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