Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
fix Attribute Error in migrate_chat
Browse files Browse the repository at this point in the history
  • Loading branch information
BluLupo committed Jan 24, 2021
1 parent f64f7c1 commit a5c7076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/handlers/migrate_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from core.database.repository.group import GroupRepository

def init(update, context):
if update.message.migrate_from_chat_id is not None:
if update.effective_message.migrate_from_chat_id is not None:
old_chat_id = update.message.migrate_from_chat_id
new_chat_id = update.message.chat.id
data = [(new_chat_id, old_chat_id)]
Expand Down

0 comments on commit a5c7076

Please sign in to comment.