Skip to content

Commit 5fc6e19

Browse files
committed
Attempt to fix the markdown unparse method
1 parent 6204fdd commit 5fc6e19

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/source/releases/changes-in-this-fork.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Changes in this Fork
2626
| Scheme layer used: 198 |
2727
+------------------------+
2828

29+
- Updated :doc:`Message Identifiers <../../topics/text-formatting>`.
30+
- Added ``message.content`` property.
2931
- Added the parameter ``pinned`` and made the parameter ``chat_id`` optional in :meth:`~pyrogram.Client.get_messages`. **NOTE**: Please be aware about using the correct :doc:`Message Identifiers <../../topics/message-identifiers>`, when using this method.
3032
- Added the ``cover`` and ``start_timestamp`` parameters in :meth:`~pyrogram.Client.send_video` and :obj:`~pyrogram.types.InputPaidMediaVideo`.
3133
- Added the ``new_video_start_timestamp`` and renamed the ``send_copy`` and ``remove_caption`` parameters in :meth:`~pyrogram.Client.forward_messages` and :meth:`~pyrogram.types.Message.forward`.

pyrogram/parser/markdown.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ def unparse(text: str, entities: list):
286286
)
287287
last_length = last_length + 1
288288
continue
289+
elif entity_type == MessageEntityType.EXPANDABLE_BLOCKQUOTE:
290+
start_tag = BLOCKQUOTE_EXPANDABLE_DELIM + " "
291+
end_tag = " " + BLOCKQUOTE_EXPANDABLE_END_DELIM
289292
elif entity_type == MessageEntityType.SPOILER:
290293
start_tag = end_tag = SPOILER_DELIM
291294
elif entity_type == MessageEntityType.TEXT_LINK:

0 commit comments

Comments
 (0)