Commit ce9b979
Changed files (1)
src
messages
src/messages/sender.py
@@ -13,7 +13,7 @@ from pyrogram.types import Message, ReplyParameters
from config import CAPTION_LENGTH, TID
from messages.preprocess import preprocess_media, warp_media_group
from messages.progress import modify_progress, telegram_uploading
-from messages.utils import better_blockquote, delete_message, get_reply_to, smart_split, summay_media
+from messages.utils import better_blockquote, delete_message, get_reply_to, remove_img_tag, smart_split, summay_media
from utils import to_int
@@ -77,6 +77,7 @@ async def send2tg(
if send_from_user: # prefix send_from_user
texts = f"{send_from_user}{texts.strip()}"
+ texts, _ = remove_img_tag(texts)
if kwargs.get("progress") and len(media) > 0:
await modify_progress(text=f"⏫正在上传:\n{summay_media(media)}", force_update=True, **kwargs)
sent_messages: list[Message | None] = [] # return sent messages