Describes a service message about a unique gift that was sent or received.
Check the documentation of this model on Telegram Bot API
gift: Information about the giftorigin: Origin of the gift. Currently, either "upgrade” for gifts upgraded from regular gifts, "transfer” for gifts transferred from other users or channels, "resale” for gifts bought from other users, "gifted_upgrade” for upgrades purchased after the gift was sent, or "offer” for gifts bought or sold through gift purchase offers.text (optional): Optional. Text of the message that was added to the giftentities (optional): Optional. Special entities that appear in the textis_private (optional): Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see themlast_resale_currency (optional): Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of "XTR” for Telegram Stars or "TON” for TON grams.last_resale_amount (optional): Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanogramsowned_gift_id (optional): Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accountstransfer_star_count (optional): Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the giftnext_transfer_date (optional): Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.
Summary
Types
@type t() :: %ExGram.Model.UniqueGiftInfo{ entities: [ExGram.Model.MessageEntity.t()] | nil, gift: ExGram.Model.UniqueGift.t(), is_private: boolean() | nil, last_resale_amount: integer() | nil, last_resale_currency: String.t() | nil, next_transfer_date: integer() | nil, origin: String.t(), owned_gift_id: String.t() | nil, text: String.t() | nil, transfer_star_count: integer() | nil }