mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-07-05 22:06:44 +08:00
Fix answer_it
Fix stream message overtime Fix gemini history.clear while stream Feat: Complete mode (non stream) Chore: preset some settings
This commit is contained in:
@ -168,7 +168,10 @@ def gemini_pro_handler(message: Message, bot: TeleBot) -> None:
|
||||
except Exception as e:
|
||||
print(e)
|
||||
bot_reply_markdown(reply_id, who, "answer wrong", bot)
|
||||
player.history.clear()
|
||||
try:
|
||||
player.history.clear()
|
||||
except:
|
||||
print(f"\n------\n{who} history.clear() Error / Unstoppable\n------\n")
|
||||
return
|
||||
|
||||
|
||||
@ -243,7 +246,10 @@ def gemini_audio_handler(message: Message, bot: TeleBot) -> None:
|
||||
except Exception as e:
|
||||
print(e)
|
||||
bot_reply_markdown(reply_id, who, "answer wrong", bot)
|
||||
player.history.clear()
|
||||
try:
|
||||
player.history.clear()
|
||||
except:
|
||||
print(f"\n------\n{who} history.clear() Error / Unstoppable\n------\n")
|
||||
return
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user