Fix expandable blockquote

This commit is contained in:
KurimuzonAkuma 2024-06-01 11:09:01 +03:00
parent 5a5c9b67c2
commit a2347b09a9

View File

@ -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