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

View File

@@ -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,

View File

@@ -47,7 +47,7 @@ dependencies = [
"slack-sdk>=3.35.0",
"sqlalchemy[asyncio]>=2.0.41",
"sqlmodel>=0.0.24",
"telegramify-markdown>=0.5.1",
"telegramify-markdown>=1.0.0",
"watchfiles>=1.0.5",
"websockets>=15.0.1",
"wechatpy>=1.8.18",

View File

@@ -40,7 +40,7 @@ silk-python>=0.2.6
slack-sdk>=3.35.0
sqlalchemy[asyncio]>=2.0.41
sqlmodel>=0.0.24
telegramify-markdown>=0.5.1
telegramify-markdown>=1.0.0
watchfiles>=1.0.5
websockets>=15.0.1
wechatpy>=1.8.18