mirror of
https://github.com/AstrBotDevs/AstrBot.git
synced 2026-10-28 02:27:46 +08:00
fix(telegram): remove deprecated normalize_whitespace param from (#6044)
telegramify_markdown.markdownify calls
This commit is contained in:
@@ -278,7 +278,6 @@ class TelegramPlatformEvent(AstrMessageEvent):
|
|||||||
try:
|
try:
|
||||||
md_text = telegramify_markdown.markdownify(
|
md_text = telegramify_markdown.markdownify(
|
||||||
chunk,
|
chunk,
|
||||||
normalize_whitespace=False,
|
|
||||||
)
|
)
|
||||||
await client.send_message(
|
await client.send_message(
|
||||||
text=md_text,
|
text=md_text,
|
||||||
@@ -456,7 +455,6 @@ class TelegramPlatformEvent(AstrMessageEvent):
|
|||||||
try:
|
try:
|
||||||
markdown_text = telegramify_markdown.markdownify(
|
markdown_text = telegramify_markdown.markdownify(
|
||||||
delta,
|
delta,
|
||||||
normalize_whitespace=False,
|
|
||||||
)
|
)
|
||||||
await self.client.send_message(
|
await self.client.send_message(
|
||||||
text=markdown_text,
|
text=markdown_text,
|
||||||
@@ -537,7 +535,6 @@ class TelegramPlatformEvent(AstrMessageEvent):
|
|||||||
try:
|
try:
|
||||||
md = telegramify_markdown.markdownify(
|
md = telegramify_markdown.markdownify(
|
||||||
draft_text,
|
draft_text,
|
||||||
normalize_whitespace=False,
|
|
||||||
)
|
)
|
||||||
await self._send_message_draft(
|
await self._send_message_draft(
|
||||||
user_name,
|
user_name,
|
||||||
@@ -695,7 +692,6 @@ class TelegramPlatformEvent(AstrMessageEvent):
|
|||||||
try:
|
try:
|
||||||
markdown_text = telegramify_markdown.markdownify(
|
markdown_text = telegramify_markdown.markdownify(
|
||||||
delta,
|
delta,
|
||||||
normalize_whitespace=False,
|
|
||||||
)
|
)
|
||||||
await self.client.edit_message_text(
|
await self.client.edit_message_text(
|
||||||
text=markdown_text,
|
text=markdown_text,
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ dependencies = [
|
|||||||
"slack-sdk>=3.35.0",
|
"slack-sdk>=3.35.0",
|
||||||
"sqlalchemy[asyncio]>=2.0.41",
|
"sqlalchemy[asyncio]>=2.0.41",
|
||||||
"sqlmodel>=0.0.24",
|
"sqlmodel>=0.0.24",
|
||||||
"telegramify-markdown>=0.5.1",
|
"telegramify-markdown>=1.0.0",
|
||||||
"watchfiles>=1.0.5",
|
"watchfiles>=1.0.5",
|
||||||
"websockets>=15.0.1",
|
"websockets>=15.0.1",
|
||||||
"wechatpy>=1.8.18",
|
"wechatpy>=1.8.18",
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ silk-python>=0.2.6
|
|||||||
slack-sdk>=3.35.0
|
slack-sdk>=3.35.0
|
||||||
sqlalchemy[asyncio]>=2.0.41
|
sqlalchemy[asyncio]>=2.0.41
|
||||||
sqlmodel>=0.0.24
|
sqlmodel>=0.0.24
|
||||||
telegramify-markdown>=0.5.1
|
telegramify-markdown>=1.0.0
|
||||||
watchfiles>=1.0.5
|
watchfiles>=1.0.5
|
||||||
websockets>=15.0.1
|
websockets>=15.0.1
|
||||||
wechatpy>=1.8.18
|
wechatpy>=1.8.18
|
||||||
|
|||||||
Reference in New Issue
Block a user