haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.TelegramPaymentPurpose

Synopsis

Documentation

data TelegramPaymentPurpose Source #

Describes a purpose of a payment toward Telegram

Constructors

TelegramPaymentPurposePremiumGiftCodes

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

  • month_count :: Maybe Int

    Number of months the Telegram Premium subscription will be active for the users

TelegramPaymentPurposePremiumGiveaway

The user creating a Telegram Premium giveaway

Fields

TelegramPaymentPurposeStars

The user buying Telegram Stars

Fields

TelegramPaymentPurposeGiftedStars

The user buying Telegram Stars for other users

Fields

TelegramPaymentPurposeStarGiveaway

The user creating a Telegram Star giveaway

Fields

TelegramPaymentPurposeJoinChat

The user joins a chat and subscribes to regular payments in Telegram Stars

Fields