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