diff --git a/main.py b/main.py index 5e3565b..d731556 100644 --- a/main.py +++ b/main.py @@ -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