This commit is contained in:
Untone 2024-09-26 22:47:03 +03:00
parent 52c791a63d
commit cbe3e0adec

View File

@ -36,7 +36,8 @@ async def start():
logger.error(e)
import traceback
text = traceback.format_exc()
await telegram_api("sendMessage", chat_id=FEEDBACK_CHAT_ID, text=text)
formatted_text = f"```log\n{text}```"
await telegram_api("sendMessage", chat_id=FEEDBACK_CHAT_ID, text=formatted_text, parse_mode='MarkdownV2')
offset = update["update_id"] + 1