We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b07ef8 commit fe44d5cCopy full SHA for fe44d5c
hydrogram/types/messages_and_media/sticker.py
@@ -152,9 +152,9 @@ async def _parse(
152
Type["raw.base.DocumentAttribute"], "raw.base.DocumentAttribute"
153
],
154
) -> "Sticker":
155
- sticker_attributes = document_attributes.get(
156
- raw.types.DocumentAttributeSticker,
157
- document_attributes[raw.types.DocumentAttributeCustomEmoji],
+ sticker_attributes = (
+ document_attributes.get(raw.types.DocumentAttributeSticker)
+ or document_attributes[raw.types.DocumentAttributeCustomEmoji]
158
)
159
160
image_size_attributes = document_attributes.get(raw.types.DocumentAttributeImageSize)
0 commit comments