mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2026-01-14 05:14:23 +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