haskell-tdlib-2.0.53.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.StarTransactionType

Synopsis

Documentation

data StarTransactionType Source #

Describes type of transaction with Telegram Stars

Constructors

StarTransactionTypePremiumBotDeposit

The transaction is a deposit of Telegram Stars from the Premium bot; for regular users only

StarTransactionTypeAppStoreDeposit

The transaction is a deposit of Telegram Stars from App Store; for regular users only

StarTransactionTypeGooglePlayDeposit

The transaction is a deposit of Telegram Stars from Google Play; for regular users only

StarTransactionTypeFragmentDeposit

The transaction is a deposit of Telegram Stars from Fragment; for regular users and bots only

StarTransactionTypeUserDeposit

The transaction is a deposit of Telegram Stars by another user; for regular users only

Fields

  • user_id :: Maybe Int

    Identifier of the user that gifted Telegram Stars; 0 if the user was anonymous

  • sticker :: Maybe Sticker

    The sticker to be shown in the transaction information; may be null if unknown

StarTransactionTypeGiveawayDeposit

The transaction is a deposit of Telegram Stars from a giveaway; for regular users only

Fields

  • chat_id :: Maybe Int

    Identifier of a supergroup or a channel chat that created the giveaway

  • giveaway_message_id :: Maybe Int

    Identifier of the message with the giveaway; can be 0 or an identifier of a deleted message

StarTransactionTypeFragmentWithdrawal

The transaction is a withdrawal of earned Telegram Stars to Fragment; for bots and channel chats only

Fields

StarTransactionTypeTelegramAdsWithdrawal

The transaction is a withdrawal of earned Telegram Stars to Telegram Ad platform; for bots and channel chats only

StarTransactionTypeTelegramApiUsage

The transaction is a payment for Telegram API usage; for bots only

Fields

StarTransactionTypeBotPaidMediaPurchase

The transaction is a purchase of paid media from a bot or a business account by the current user; for regular users only

Fields

  • user_id :: Maybe Int

    Identifier of the user that gifted Telegram Stars; 0 if the user was anonymous

  • media :: Maybe [PaidMedia]

    The bought media if the transaction wasn't refunded

StarTransactionTypeBotPaidMediaSale

The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only

Fields

StarTransactionTypeChannelPaidMediaPurchase

The transaction is a purchase of paid media from a channel by the current user; for regular users only

Fields

  • chat_id :: Maybe Int

    Identifier of a supergroup or a channel chat that created the giveaway

  • message_id :: Maybe Int

    Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message

  • media :: Maybe [PaidMedia]

    The bought media if the transaction wasn't refunded

StarTransactionTypeChannelPaidMediaSale

The transaction is a sale of paid media by the channel chat; for channel chats only

Fields

  • user_id :: Maybe Int

    Identifier of the user that gifted Telegram Stars; 0 if the user was anonymous

  • message_id :: Maybe Int

    Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message

  • media :: Maybe [PaidMedia]

    The bought media if the transaction wasn't refunded

StarTransactionTypeBotInvoicePurchase

The transaction is a purchase of a product from a bot or a business account by the current user; for regular users only

Fields

StarTransactionTypeBotInvoiceSale

The transaction is a sale of a product by the bot; for bots only

Fields

StarTransactionTypeBotSubscriptionPurchase

The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users only

Fields

StarTransactionTypeBotSubscriptionSale

The transaction is a sale of a subscription by the bot; for bots only

Fields

StarTransactionTypeChannelSubscriptionPurchase

The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only

Fields

StarTransactionTypeChannelSubscriptionSale

The transaction is a sale of a subscription by the channel chat; for channel chats only

Fields

StarTransactionTypeGiftPurchase

The transaction is a purchase of a regular gift to another user; for regular users and bots only

Fields

StarTransactionTypeGiftTransfer

The transaction is a transfer of an upgraded gift to another user; for regular users only

Fields

StarTransactionTypeGiftSale

The transaction is a sale of a gift received from another user or bot; for regular users only

Fields

StarTransactionTypeGiftUpgrade

The transaction is an upgrade of a gift; for regular users only

Fields

StarTransactionTypeChannelPaidReactionSend

The transaction is a sending of a paid reaction to a message in a channel chat by the current user; for regular users only

Fields

  • chat_id :: Maybe Int

    Identifier of a supergroup or a channel chat that created the giveaway

  • message_id :: Maybe Int

    Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message

StarTransactionTypeChannelPaidReactionReceive

The transaction is a receiving of a paid reaction to a message by the channel chat; for channel chats only

Fields

  • user_id :: Maybe Int

    Identifier of the user that gifted Telegram Stars; 0 if the user was anonymous

  • message_id :: Maybe Int

    Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message

StarTransactionTypeAffiliateProgramCommission

The transaction is a receiving of a commission from an affiliate program; for regular users, bots and channel chats only

Fields

  • chat_id :: Maybe Int

    Identifier of a supergroup or a channel chat that created the giveaway

  • commission_per_mille :: Maybe Int

    The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner

StarTransactionTypeUnsupported

The transaction is a transaction of an unsupported type