mirror of
				https://github.com/cdryzun/tg_bot_collections.git
				synced 2025-11-04 16:56:43 +08:00 
			
		
		
		
	@ -59,7 +59,7 @@ def bot_reply_markdown(
 | 
			
		||||
        REPLY_MESSAGE_CACHE[cache_key] = text
 | 
			
		||||
        if len(text.encode("utf-8")) <= BOT_MESSAGE_LENGTH or not split_text:
 | 
			
		||||
            bot.edit_message_text(
 | 
			
		||||
                f"*{who}*:\n{telegramify_markdown.convert(text)}",
 | 
			
		||||
                f"*{who}*:\n{telegramify_markdown.markdownify(text)}",
 | 
			
		||||
                chat_id=reply_id.chat.id,
 | 
			
		||||
                message_id=reply_id.message_id,
 | 
			
		||||
                parse_mode="MarkdownV2",
 | 
			
		||||
@ -70,7 +70,7 @@ def bot_reply_markdown(
 | 
			
		||||
        # Need a split of message
 | 
			
		||||
        msgs = smart_split(text, BOT_MESSAGE_LENGTH)
 | 
			
		||||
        bot.edit_message_text(
 | 
			
		||||
            f"*{who}* \[1/{len(msgs)}\]:\n{telegramify_markdown.convert(msgs[0])}",
 | 
			
		||||
            f"*{who}* \[1/{len(msgs)}\]:\n{telegramify_markdown.markdownify(msgs[0])}",
 | 
			
		||||
            chat_id=reply_id.chat.id,
 | 
			
		||||
            message_id=reply_id.message_id,
 | 
			
		||||
            parse_mode="MarkdownV2",
 | 
			
		||||
@ -79,7 +79,7 @@ def bot_reply_markdown(
 | 
			
		||||
        for i in range(1, len(msgs)):
 | 
			
		||||
            bot.reply_to(
 | 
			
		||||
                reply_id.reply_to_message,
 | 
			
		||||
                f"*{who}* \[{i + 1}/{len(msgs)}\\]:\n{telegramify_markdown.convert(msgs[i])}",
 | 
			
		||||
                f"*{who}* \[{i + 1}/{len(msgs)}\\]:\n{telegramify_markdown.markdownify(msgs[i])}",
 | 
			
		||||
                parse_mode="MarkdownV2",
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user