haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.Gift

Documentation

data Gift Source #

Constructors

Gift

Describes a gift that can be sent to another user

Fields

  • _id :: Maybe Int

    Unique identifier of the gift

  • sticker :: Maybe Sticker

    The sticker representing the gift

  • star_count :: Maybe Int

    Number of Telegram Stars that must be paid for the gift

  • default_sell_star_count :: Maybe Int

    Number of Telegram Stars that can be claimed by the receiver instead of the gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed

  • remaining_count :: Maybe Int

    Number of remaining times the gift can be purchased by all users; 0 if not limited or the gift was sold out

  • total_count :: Maybe Int

    Number of total times the gift can be purchased by all users; 0 if not limited

Instances

Instances details
FromJSON Gift Source # 
Instance details

Defined in TD.Data.Gift

Show Gift Source # 
Instance details

Defined in TD.Data.Gift

Methods

showsPrec :: Int -> Gift -> ShowS #

show :: Gift -> String #

showList :: [Gift] -> ShowS #

Eq Gift Source # 
Instance details

Defined in TD.Data.Gift

Methods

(==) :: Gift -> Gift -> Bool #

(/=) :: Gift -> Gift -> Bool #

ShortShow Gift Source # 
Instance details

Defined in TD.Data.Gift