fix: make Telegram rich messages opt in

maintainer edit: Telegram Web cannot render sendRichMessage payloads, so keep the rich path available only for explicit opt-in instead of enabling it by default.
This commit is contained in:
chengyongru
2026-06-25 16:10:33 +08:00
committed by Xubin Ren
parent c930aa3713
commit e92899607a
2 changed files with 7 additions and 8 deletions
+2 -3
View File
@@ -351,9 +351,8 @@ class TelegramConfig(Base):
streaming: bool = True
# Enable inline keyboard buttons in Telegram messages.
inline_keyboards: bool = False
# Use Bot API 10.1 sendRichMessage for markdown rendering.
# Disable if Telegram Web shows "message not supported" errors.
rich_messages: bool = True
# Opt in to Bot API 10.1 sendRichMessage for richer markdown rendering.
rich_messages: bool = False
stream_edit_interval: float = Field(default=_STREAM_EDIT_INTERVAL_DEFAULT, ge=0.1)
webhook_url: str = ""
webhook_listen_host: str = "127.0.0.1"