fix(telegram): remove deprecated normalize_whitespace param from (#6044)

telegramify_markdown.markdownify calls
This commit is contained in:
DOHEX
2026-03-12 00:34:07 +08:00
committed by GitHub
parent 25830524f3
commit 3e2cb6a2ab
3 changed files with 2 additions and 6 deletions
@@ -278,7 +278,6 @@ class TelegramPlatformEvent(AstrMessageEvent):
try:
md_text = telegramify_markdown.markdownify(
chunk,
normalize_whitespace=False,
)
await client.send_message(
text=md_text,
@@ -456,7 +455,6 @@ class TelegramPlatformEvent(AstrMessageEvent):
try:
markdown_text = telegramify_markdown.markdownify(
delta,
normalize_whitespace=False,
)
await self.client.send_message(
text=markdown_text,
@@ -537,7 +535,6 @@ class TelegramPlatformEvent(AstrMessageEvent):
try:
md = telegramify_markdown.markdownify(
draft_text,
normalize_whitespace=False,
)
await self._send_message_draft(
user_name,
@@ -695,7 +692,6 @@ class TelegramPlatformEvent(AstrMessageEvent):
try:
markdown_text = telegramify_markdown.markdownify(
delta,
normalize_whitespace=False,
)
await self.client.edit_message_text(
text=markdown_text,