We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4d68d3 commit a2559abCopy full SHA for a2559ab
tg_bot/modules/sql/users_sql.py
@@ -215,7 +215,7 @@ def migrate_chat(old_chat_id, new_chat_id):
215
216
def remove_user(user_id, chat_id, username):
217
with INSERTION_LOCK:
218
- user = SESSION.query(RemovedUser).get((user_id, chat_id))
+ user = SESSION.query(RemovedUser).get((user_id, str(chat_id)))
219
if not user:
220
user = RemovedUser(user_id, chat_id, username)
221
SESSION.add(user)
0 commit comments