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

Commit

Permalink
Fix Bug in migrate_chat
Browse files Browse the repository at this point in the history
  • Loading branch information
BluLupo committed Jan 23, 2021
1 parent 45f76dd commit f64f7c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion core/handlers/check_status_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def check_status(update,context):
msg = "#Automatic Handler\n<code>{}</code> set a username! You were kicked for safety!"
message(update,context,msg.format(user.id))
if user_db:
print("checkstatus")
username = "@"+user.username
data = [(username,user.id)]
UserRepository().update(data)
Expand Down
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:
if update.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 f64f7c1

Please sign in to comment.