Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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
ChatBoostSourceGiftCode | The chat created a Telegram Premium gift code for a user |
ChatBoostSourceGiveaway | The chat created a giveaway |
| |
ChatBoostSourcePremium | A user with Telegram Premium subscription or gifted Telegram Premium boosted the chat |
Instances
FromJSON ChatBoostSource Source # | |
Defined in TD.Data.ChatBoostSource parseJSON :: Value -> Parser ChatBoostSource # parseJSONList :: Value -> Parser [ChatBoostSource] # | |
Show ChatBoostSource Source # | |
Defined in TD.Data.ChatBoostSource showsPrec :: Int -> ChatBoostSource -> ShowS # show :: ChatBoostSource -> String # showList :: [ChatBoostSource] -> ShowS # | |
Eq ChatBoostSource Source # | |
Defined in TD.Data.ChatBoostSource (==) :: ChatBoostSource -> ChatBoostSource -> Bool # (/=) :: ChatBoostSource -> ChatBoostSource -> Bool # | |
ShortShow ChatBoostSource Source # | |
Defined in TD.Data.ChatBoostSource shortShow :: ChatBoostSource -> String Source # |