diff --git a/SaitamaRobot/modules/chatbot.py b/SaitamaRobot/modules/chatbot.py index b0396735b9..3c6c9624ee 100644 --- a/SaitamaRobot/modules/chatbot.py +++ b/SaitamaRobot/modules/chatbot.py @@ -79,6 +79,7 @@ def check_message(bot: Bot, message): def chatbot(bot: Bot, update: Update): global api_client msg = update.effective_message + chat = update.effective_chat chat_id = update.effective_chat.id is_chat = sql.is_chat(chat_id) if not is_chat: