refactor: unify Telegram delivery and add quality checks
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user