refactor: unify Telegram delivery and add quality checks
Some checks failed
quality / test (3.10) (push) Has been cancelled
quality / test (3.12) (push) Has been cancelled

This commit is contained in:
kandrusyak
2026-07-27 17:54:25 +03:00
parent c20d893255
commit 701cdd35d2
14 changed files with 123 additions and 82 deletions

View File

@@ -22,7 +22,6 @@ from .telegram_utils import (
get_tz,
get_voice_max_duration,
markdown_code,
reply_long,
reply_markdown,
require_user_id,
)
@@ -118,7 +117,7 @@ async def history_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
f"{str(row['content']) if row['role'] == 'assistant' else escape_markdown_text(row['content'])}"
for row in rows
)
await reply_long(update.message, text)
await reply_markdown(update.message, text)
async def ask_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: