haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.StorePaymentPurpose

Synopsis

Documentation

data StorePaymentPurpose Source #

Describes a purpose of an in-store payment

Constructors

StorePaymentPurposePremiumSubscription

The user subscribing to Telegram Premium

Fields

  • is_restore :: Maybe Bool

    Pass true if this is a restore of a Telegram Premium purchase; only for App Store

  • is_upgrade :: Maybe Bool

    Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store

StorePaymentPurposeGiftedPremium

The user gifting Telegram Premium to another user

Fields

StorePaymentPurposePremiumGiftCodes

The user creating Telegram Premium gift codes for other users

Fields

  • boosted_chat_id :: Maybe Int

    Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none

  • currency :: Maybe Text

    ISO 4217 currency code of the payment currency

  • amount :: Maybe Int

    Paid amount, in the smallest units of the currency

  • user_ids :: Maybe [Int]

    Identifiers of the users which can activate the gift codes

StorePaymentPurposePremiumGiveaway

The user creating a Telegram Premium giveaway

Fields

StorePaymentPurposeStarGiveaway

The user creating a Telegram Star giveaway

Fields

StorePaymentPurposeStars

The user buying Telegram Stars

Fields

StorePaymentPurposeGiftedStars

The user buying Telegram Stars for other users

Fields