mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
fix text
This commit is contained in:
@@ -111,7 +111,8 @@ async def edit_message(update: Update, context: CustomContext) -> None:
|
|||||||
_edit_message.url,
|
_edit_message.url,
|
||||||
html.escape(update.message.text)
|
html.escape(update.message.text)
|
||||||
)
|
)
|
||||||
update_text = ori_text.replace("[]", new_text) if "[]" in (ori_text := _edit_message.forward[0].text) else new_text
|
update_text = ori_text.replace("[]", new_text) if "[]" in (
|
||||||
|
ori_text := _edit_message.forward[0].caption) else new_text
|
||||||
await _edit_message.forward[0].edit_caption(update_text)
|
await _edit_message.forward[0].edit_caption(update_text)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user