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 ea97294 commit 842d7bcCopy full SHA for 842d7bc
1 file changed
pyrogram/types/messages_and_media/gift.py
@@ -453,6 +453,16 @@ def link(self) -> Optional[str]:
453
454
return f"https://t.me/nft/{self.name}"
455
456
+ @property
457
+ def owned_gift_id(self) -> Optional[str]:
458
+ if not self.is_upgraded:
459
+ return None
460
+
461
+ if self.owner and self.owner.type != enums.ChatType.PRIVATE:
462
+ return f"{self.owner.id}_{self.message_id}"
463
+ elif self.message_id:
464
+ return str(self.message_id)
465
466
async def show(self) -> bool:
467
"""Bound method *show* of :obj:`~pyrogram.types.Gift`.
468
0 commit comments