Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data PushMessageContent
- = PushMessageContentHidden { }
- | PushMessageContentAnimation { }
- | PushMessageContentAudio { }
- | PushMessageContentContact { }
- | PushMessageContentContactRegistered
- | PushMessageContentDocument { }
- | PushMessageContentGame { }
- | PushMessageContentGameScore { }
- | PushMessageContentInvoice { }
- | PushMessageContentLocation { }
- | PushMessageContentPaidMedia { }
- | PushMessageContentPhoto { }
- | PushMessageContentPoll { }
- | PushMessageContentPremiumGiftCode {
- month_count :: Maybe Int
- | PushMessageContentGiveaway { }
- | PushMessageContentGift {
- star_count :: Maybe Int
- | PushMessageContentUpgradedGift {
- is_upgrade :: Maybe Bool
- | PushMessageContentScreenshotTaken
- | PushMessageContentSticker { }
- | PushMessageContentStory { }
- | PushMessageContentText { }
- | PushMessageContentVideo { }
- | PushMessageContentVideoNote { }
- | PushMessageContentVoiceNote { }
- | PushMessageContentBasicGroupChatCreate
- | PushMessageContentChatAddMembers { }
- | PushMessageContentChatChangePhoto
- | PushMessageContentChatChangeTitle { }
- | PushMessageContentChatSetBackground { }
- | PushMessageContentChatSetTheme {
- theme_name :: Maybe Text
- | PushMessageContentChatDeleteMember {
- member_name :: Maybe Text
- is_current_user :: Maybe Bool
- is_left :: Maybe Bool
- | PushMessageContentChatJoinByLink
- | PushMessageContentChatJoinByRequest
- | PushMessageContentRecurringPayment { }
- | PushMessageContentSuggestProfilePhoto
- | PushMessageContentMessageForwards {
- total_count :: Maybe Int
- | PushMessageContentMediaAlbum {
- total_count :: Maybe Int
- has_photos :: Maybe Bool
- has_videos :: Maybe Bool
- has_audios :: Maybe Bool
- has_documents :: Maybe Bool
Documentation
data PushMessageContent Source #
Contains content of a push message notification
PushMessageContentHidden | A general message with hidden content |
PushMessageContentAnimation | An animation message (GIF-style). |
PushMessageContentAudio | An audio message |
PushMessageContentContact | A message with a user contact |
PushMessageContentContactRegistered | A contact has registered with Telegram |
PushMessageContentDocument | A document message (a general file) |
PushMessageContentGame | A message with a game |
PushMessageContentGameScore | A new high score was achieved in a game |
PushMessageContentInvoice | A message with an invoice from a bot |
PushMessageContentLocation | A message with a location |
PushMessageContentPaidMedia | A message with paid media |
PushMessageContentPhoto | A photo message |
PushMessageContentPoll | A message with a poll |
PushMessageContentPremiumGiftCode | A message with a Telegram Premium gift code created for the user |
| |
PushMessageContentGiveaway | A message with a giveaway |
| |
PushMessageContentGift | A message with a gift |
| |
PushMessageContentUpgradedGift | A message with an upgraded gift |
| |
PushMessageContentScreenshotTaken | A screenshot of a message in the chat has been taken |
PushMessageContentSticker | A message with a sticker |
PushMessageContentStory | A message with a story |
PushMessageContentText | A text message |
PushMessageContentVideo | A video message |
PushMessageContentVideoNote | A video note message |
PushMessageContentVoiceNote | A voice note message |
PushMessageContentBasicGroupChatCreate | A newly created basic group |
PushMessageContentChatAddMembers | New chat members were invited to a group |
| |
PushMessageContentChatChangePhoto | A chat photo was edited |
PushMessageContentChatChangeTitle | A chat title was edited |
PushMessageContentChatSetBackground | A chat background was edited |
PushMessageContentChatSetTheme | A chat theme was edited |
| |
PushMessageContentChatDeleteMember | A chat member was deleted |
| |
PushMessageContentChatJoinByLink | A new member joined the chat via an invite link |
PushMessageContentChatJoinByRequest | A new member was accepted to the chat by an administrator |
PushMessageContentRecurringPayment | A new recurring payment was made by the current user |
PushMessageContentSuggestProfilePhoto | A profile photo was suggested to the user |
PushMessageContentMessageForwards | A forwarded messages |
| |
PushMessageContentMediaAlbum | A media album |
|
Instances
FromJSON PushMessageContent Source # | |
Defined in TD.Data.PushMessageContent parseJSON :: Value -> Parser PushMessageContent # parseJSONList :: Value -> Parser [PushMessageContent] # | |
Show PushMessageContent Source # | |
Defined in TD.Data.PushMessageContent showsPrec :: Int -> PushMessageContent -> ShowS # show :: PushMessageContent -> String # showList :: [PushMessageContent] -> ShowS # | |
Eq PushMessageContent Source # | |
Defined in TD.Data.PushMessageContent (==) :: PushMessageContent -> PushMessageContent -> Bool # (/=) :: PushMessageContent -> PushMessageContent -> Bool # | |
ShortShow PushMessageContent Source # | |
Defined in TD.Data.PushMessageContent shortShow :: PushMessageContent -> String Source # |