mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +08:00
fix: message text
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
f7faaf972d
commit
a0220fa8aa
@ -102,7 +102,8 @@ def latest_handle_messages(message: Message, bot: TeleBot):
|
||||
return
|
||||
else:
|
||||
if chat_user_dict.get(chat_user_id):
|
||||
chat_message_dict[chat_id].text += message.text
|
||||
message.text += chat_message_dict[chat_id].text
|
||||
chat_message_dict[chat_id] = message
|
||||
else:
|
||||
chat_message_dict[chat_id] = message
|
||||
chat_user_dict[chat_user_id] = True
|
||||
@ -171,7 +172,6 @@ def answer_it_handler(message: Message, bot: TeleBot):
|
||||
except Exception as e:
|
||||
print(e)
|
||||
bot_reply_markdown(reply_id, who, "answer wrong", bot)
|
||||
return
|
||||
|
||||
##### Qwen #####
|
||||
who = "Qwen Pro"
|
||||
@ -204,7 +204,6 @@ def answer_it_handler(message: Message, bot: TeleBot):
|
||||
except Exception as e:
|
||||
print(e)
|
||||
bot_reply_markdown(reply_id, who, "answer wrong", bot)
|
||||
return
|
||||
|
||||
|
||||
if GOOGLE_GEMINI_KEY and CHATGPT_API_KEY and QWEN_API_KEY:
|
||||
|
Loading…
x
Reference in New Issue
Block a user