tech info only with diff reason
This commit is contained in:
parent
794fcef380
commit
c007d4aadf
3
bot.py
3
bot.py
@ -173,7 +173,8 @@ def send_voice_text(call):
|
|||||||
# Send the response back to the user with markdown formatting
|
# Send the response back to the user with markdown formatting
|
||||||
try:
|
try:
|
||||||
ans = bot.send_message(chat_id=call.message.chat.id, text=response_text , parse_mode='Markdown')
|
ans = bot.send_message(chat_id=call.message.chat.id, text=response_text , parse_mode='Markdown')
|
||||||
bot.reply_to(ans, f"Finish reason: {reason} \nCost: {cost}")
|
if reason != 'stop':
|
||||||
|
bot.reply_to(ans, f"Finish reason: {reason} \nCost: {cost}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
bot.send_message(chat_id=call.message.chat.id, text="Что-то пошло не так c ответом. Пробую другой метод...")
|
bot.send_message(chat_id=call.message.chat.id, text="Что-то пошло не так c ответом. Пробую другой метод...")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user