mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +08:00
fix: tiny bug
This commit is contained in:
parent
33eb1bb197
commit
7022776103
@ -65,6 +65,11 @@ def gemini_handler(message: Message, bot: TeleBot) -> None:
|
|||||||
"Gemini answer:\n" + player.last.text,
|
"Gemini answer:\n" + player.last.text,
|
||||||
parse_mode="MarkdownV2",
|
parse_mode="MarkdownV2",
|
||||||
)
|
)
|
||||||
|
except:
|
||||||
|
bot.reply_to(
|
||||||
|
message,
|
||||||
|
"Gemini answer:\n" + player.last.text,
|
||||||
|
)
|
||||||
finally:
|
finally:
|
||||||
bot.delete_message(reply_message.chat.id, reply_message.message_id)
|
bot.delete_message(reply_message.chat.id, reply_message.message_id)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import gc
|
import gc
|
||||||
import shutil
|
import shutil
|
||||||
from random import random
|
import random
|
||||||
from tempfile import SpooledTemporaryFile
|
from tempfile import SpooledTemporaryFile
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
Loading…
x
Reference in New Issue
Block a user