haskell-tdlib-2.0.61.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.ReceivedGift

Documentation

data ReceivedGift Source #

Constructors

ReceivedGift

Represents a gift received by a user or a chat

Fields

  • received_gift_id :: Maybe Text

    Unique identifier of the received gift for the current user; only for the receiver of the gift

  • sender_id :: Maybe MessageSender

    Identifier of a user or a chat that sent the gift; may be null if unknown

  • text :: Maybe FormattedText

    Message added to the gift

  • is_private :: Maybe Bool

    True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone are able to see them

  • is_saved :: Maybe Bool

    True, if the gift is displayed on the chat's profile page; only for the receiver of the gift

  • is_pinned :: Maybe Bool

    True, if the gift is pinned to the top of the chat's profile page

  • can_be_upgraded :: Maybe Bool

    True, if the gift is a regular gift that can be upgraded to a unique gift; only for the receiver of the gift

  • can_be_transferred :: Maybe Bool

    True, if the gift is an upgraded gift that can be transferred to another owner; only for the receiver of the gift

  • was_refunded :: Maybe Bool

    True, if the gift was refunded and isn't available anymore

  • date :: Maybe Int

    Point in time (Unix timestamp) when the gift was sent

  • gift :: Maybe SentGift

    The gift

  • sell_star_count :: Maybe Int

    Number of Telegram Stars that can be claimed by the receiver instead of the regular gift; 0 if the gift can't be sold by the current user

  • prepaid_upgrade_star_count :: Maybe Int

    Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift

  • transfer_star_count :: Maybe Int

    Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift

  • next_transfer_date :: Maybe Int

    Point in time (Unix timestamp) when the gift can be transferred to another owner; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift

  • next_resale_date :: Maybe Int

    Point in time (Unix timestamp) when the gift can be resold to another user; 0 if the gift can't be resold; only for the receiver of the gift

  • export_date :: Maybe Int

    Point in time (Unix timestamp) when the upgraded gift can be transferred to the TON blockchain as an NFT; 0 if NFT export isn't possible; only for the receiver of the gift