From a2347b09a941d36760066e484993cc92ada22f67 Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Sat, 1 Jun 2024 11:09:01 +0300 Subject: [PATCH] Fix expandable blockquote --- pyrogram/types/messages_and_media/message_entity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrogram/types/messages_and_media/message_entity.py b/pyrogram/types/messages_and_media/message_entity.py index f406f843..a621fd72 100644 --- a/pyrogram/types/messages_and_media/message_entity.py +++ b/pyrogram/types/messages_and_media/message_entity.py @@ -122,7 +122,8 @@ class MessageEntity(Object): if self.custom_emoji_id is not None: args["document_id"] = self.custom_emoji_id - if self.type == enums.MessageEntityType.BLOCKQUOTE: + args.pop("expandable") + if self.expandable is not None: args["collapsed"] = self.expandable entity = self.type.value