peyk.platforms.telegram.types.owned_gift_unique¶
Classes
|
Describes a unique gift received and owned by a user or a chat. |
- class peyk.platforms.telegram.types.owned_gift_unique.OwnedGiftUnique(gift: UniqueGift, send_date: int, type: str = 'unique', owned_gift_id: str | None = None, sender_user: User | None = None, is_saved: bool | None = None, can_be_transferred: bool | None = None, transfer_star_count: int | None = None, next_transfer_date: int | None = None)[source]¶
Bases:
objectDescribes a unique gift received and owned by a user or a chat.
- Variables:
type (str) – Type of the gift, always ‘unique’
gift (peyk.platforms.telegram.types.unique_gift.UniqueGift) – Information about the unique gift
send_date (int) – Date the gift was sent in Unix time
owned_gift_id (str | None) – Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only
sender_user (peyk.platforms.telegram.types.user.User | None) – Sender of the gift if it is a known user
is_saved (bool | None) – True, if the gift is displayed on the account’s profile page; for gifts received on behalf of business accounts only
can_be_transferred (bool | None) – True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only
transfer_star_count (int | None) – Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift
next_transfer_date (int | None) – Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.
- gift: UniqueGift¶
- send_date: int¶
- type: str = 'unique'¶
- owned_gift_id: str | None = None¶
- is_saved: bool | None = None¶
- can_be_transferred: bool | None = None¶
- transfer_star_count: int | None = None¶
- next_transfer_date: int | None = None¶
- classmethod from_dict(data)¶
- date = None¶