better order of msgs
This commit is contained in:
parent
198e2bed9a
commit
93d45a7bcd
@ -45,3 +45,4 @@ If you find any issues or have any suggestions for improving the bot, please fee
|
|||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the MIT License - see the `LICENSE` file for details.
|
This project is licensed under the MIT License - see the `LICENSE` file for details.
|
||||||
|
|
||||||
|
|||||||
0
Readme.ru.md
Normal file
0
Readme.ru.md
Normal file
4
bot.py
4
bot.py
@ -202,9 +202,9 @@ def handle_message(message):
|
|||||||
|
|
||||||
# Send the response back to the user with markdown formatting
|
# Send the response back to the user with markdown formatting
|
||||||
try:
|
try:
|
||||||
ans = bot.edit_message_text(chat_id=message.chat.id, message_id=answer.message_id, text=response_text , parse_mode='Markdown')
|
ans = bot.edit_message_text(chat_id=message.chat.id, message_id=answer.message_id, text=f"Finish reason: {reason} \nCost: {cost}" )
|
||||||
# Send response text with reason and cost formated
|
# Send response text with reason and cost formated
|
||||||
bot.reply_to(ans, f"Finish reason: {reason} \nCost: {cost}")
|
bot.reply_to(ans, response_text, parse_mode='Markdown')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
bot.reply_to(message, "Что-то пошло не так c ответом. Пробую другой метод...")
|
bot.reply_to(message, "Что-то пошло не так c ответом. Пробую другой метод...")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user