📝 add help command

This commit is contained in:
2024-04-19 00:45:57 +08:00
parent 62a2755ecf
commit 5a9e8449cc
4 changed files with 13 additions and 9 deletions

View File

@ -149,7 +149,7 @@ def change_user_lang(user_id: str, lang_code: str):
"""
user = user_db.first(User(), "user_id = ?", user_id, default=User(user_id=user_id))
user.profile["lang"] = lang_code
user_db.upsert(user, "user_id = ?", user_id)
user_db.upsert(user)
_user_lang[user_id] = lang_code