Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data StarTransactionType
- = StarTransactionTypePremiumBotDeposit
- | StarTransactionTypeAppStoreDeposit
- | StarTransactionTypeGooglePlayDeposit
- | StarTransactionTypeFragmentDeposit
- | StarTransactionTypeUserDeposit { }
- | StarTransactionTypeGiveawayDeposit { }
- | StarTransactionTypeFragmentWithdrawal { }
- | StarTransactionTypeTelegramAdsWithdrawal
- | StarTransactionTypeTelegramApiUsage { }
- | StarTransactionTypeBotPaidMediaPurchase { }
- | StarTransactionTypeBotPaidMediaSale { }
- | StarTransactionTypeChannelPaidMediaPurchase { }
- | StarTransactionTypeChannelPaidMediaSale { }
- | StarTransactionTypeBotInvoicePurchase { }
- | StarTransactionTypeBotInvoiceSale { }
- | StarTransactionTypeBotSubscriptionPurchase { }
- | StarTransactionTypeBotSubscriptionSale { }
- | StarTransactionTypeChannelSubscriptionPurchase { }
- | StarTransactionTypeChannelSubscriptionSale { }
- | StarTransactionTypeGiftPurchase { }
- | StarTransactionTypeGiftTransfer { }
- | StarTransactionTypeGiftSale { }
- | StarTransactionTypeGiftUpgrade { }
- | StarTransactionTypeChannelPaidReactionSend { }
- | StarTransactionTypeChannelPaidReactionReceive { }
- | StarTransactionTypeAffiliateProgramCommission { }
- | StarTransactionTypeUnsupported
Documentation
data StarTransactionType Source #
Describes type of transaction with Telegram Stars
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 |
StarTransactionTypeGiveawayDeposit | The transaction is a deposit of Telegram Stars from a giveaway; for regular users only |
StarTransactionTypeFragmentWithdrawal | The transaction is a withdrawal of earned Telegram Stars to Fragment; for bots and channel chats only |
| |
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 |
| |
StarTransactionTypeBotPaidMediaPurchase | The transaction is a purchase of paid media from a bot or a business account by the current user; for regular users only |
StarTransactionTypeBotPaidMediaSale | The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only |
| |
StarTransactionTypeChannelPaidMediaPurchase | The transaction is a purchase of paid media from a channel by the current user; for regular users only |
StarTransactionTypeChannelPaidMediaSale | The transaction is a sale of paid media by the channel chat; for channel chats only |
| |
StarTransactionTypeBotInvoicePurchase | The transaction is a purchase of a product from a bot or a business account by the current user; for regular users only |
| |
StarTransactionTypeBotInvoiceSale | The transaction is a sale of a product by the bot; for bots only |
| |
StarTransactionTypeBotSubscriptionPurchase | The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users only |
| |
StarTransactionTypeBotSubscriptionSale | The transaction is a sale of a subscription by the bot; for bots only |
| |
StarTransactionTypeChannelSubscriptionPurchase | The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only |
StarTransactionTypeChannelSubscriptionSale | The transaction is a sale of a subscription by the channel chat; for channel chats only |
StarTransactionTypeGiftPurchase | The transaction is a purchase of a regular gift to another user; for regular users and bots only |
StarTransactionTypeGiftTransfer | The transaction is a transfer of an upgraded gift to another user; for regular users only |
StarTransactionTypeGiftSale | The transaction is a sale of a gift received from another user or bot; for regular users only |
StarTransactionTypeGiftUpgrade | The transaction is an upgrade of a gift; for regular users only |
| |
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 |
StarTransactionTypeChannelPaidReactionReceive | The transaction is a receiving of a paid reaction to a message by the channel chat; for channel chats only |
StarTransactionTypeAffiliateProgramCommission | The transaction is a receiving of a commission from an affiliate program; for regular users, bots and channel chats only |
StarTransactionTypeUnsupported | The transaction is a transaction of an unsupported type |
Instances
FromJSON StarTransactionType Source # | |
Defined in TD.Data.StarTransactionType parseJSON :: Value -> Parser StarTransactionType # parseJSONList :: Value -> Parser [StarTransactionType] # | |
Show StarTransactionType Source # | |
Defined in TD.Data.StarTransactionType showsPrec :: Int -> StarTransactionType -> ShowS # show :: StarTransactionType -> String # showList :: [StarTransactionType] -> ShowS # | |
Eq StarTransactionType Source # | |
Defined in TD.Data.StarTransactionType (==) :: StarTransactionType -> StarTransactionType -> Bool # (/=) :: StarTransactionType -> StarTransactionType -> Bool # | |
ShortShow StarTransactionType Source # | |
Defined in TD.Data.StarTransactionType |