Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.ChatBoostSource
Synopsis
- data ChatBoostSource
- = ChatBoostSourceGiftCode { }
- | ChatBoostSourceGiveaway {
- user_id :: Maybe Int
- gift_code :: Maybe Text
- star_count :: Maybe Int
- giveaway_message_id :: Maybe Int
- is_unclaimed :: Maybe Bool
- | ChatBoostSourcePremium { }
Documentation
data ChatBoostSource Source #
Describes source of a chat boost
Constructors
ChatBoostSourceGiftCode | The chat created a Telegram Premium gift code for a user |
ChatBoostSourceGiveaway | The chat created a giveaway |
Fields
| |
ChatBoostSourcePremium | A user with Telegram Premium subscription or gifted Telegram Premium boosted the chat |
Instances
FromJSON ChatBoostSource Source # | |
Defined in TD.Data.ChatBoostSource Methods parseJSON :: Value -> Parser ChatBoostSource # parseJSONList :: Value -> Parser [ChatBoostSource] # | |
Show ChatBoostSource Source # | |
Defined in TD.Data.ChatBoostSource Methods showsPrec :: Int -> ChatBoostSource -> ShowS # show :: ChatBoostSource -> String # showList :: [ChatBoostSource] -> ShowS # | |
Eq ChatBoostSource Source # | |
Defined in TD.Data.ChatBoostSource Methods (==) :: ChatBoostSource -> ChatBoostSource -> Bool # (/=) :: ChatBoostSource -> ChatBoostSource -> Bool # | |
ShortShow ChatBoostSource Source # | |
Defined in TD.Data.ChatBoostSource Methods shortShow :: ChatBoostSource -> String Source # |