Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data MessageContent
- = MessageText { }
- | MessageAnimation { }
- | MessageAudio { }
- | MessageDocument { }
- | MessagePaidMedia { }
- | MessagePhoto { }
- | MessageSticker { }
- | MessageVideo { }
- | MessageVideoNote { }
- | MessageVoiceNote { }
- | MessageExpiredPhoto
- | MessageExpiredVideo
- | MessageExpiredVideoNote
- | MessageExpiredVoiceNote
- | MessageLocation { }
- | MessageVenue { }
- | MessageContact { }
- | MessageAnimatedEmoji { }
- | MessageDice { }
- | MessageGame { }
- | MessagePoll { }
- | MessageStory { }
- | MessageInvoice { }
- | MessageCall { }
- | MessageVideoChatScheduled {
- group_call_id :: Maybe Int
- start_date :: Maybe Int
- | MessageVideoChatStarted { }
- | MessageVideoChatEnded { }
- | MessageInviteVideoChatParticipants { }
- | MessageBasicGroupChatCreate { }
- | MessageSupergroupChatCreate { }
- | MessageChatChangeTitle { }
- | MessageChatChangePhoto { }
- | MessageChatDeletePhoto
- | MessageChatAddMembers {
- member_user_ids :: Maybe [Int]
- | MessageChatJoinByLink
- | MessageChatJoinByRequest
- | MessageChatDeleteMember { }
- | MessageChatUpgradeTo { }
- | MessageChatUpgradeFrom { }
- | MessagePinMessage {
- message_id :: Maybe Int
- | MessageScreenshotTaken
- | MessageChatSetBackground { }
- | MessageChatSetTheme {
- theme_name :: Maybe Text
- | MessageChatSetMessageAutoDeleteTime { }
- | MessageChatBoost {
- boost_count :: Maybe Int
- | MessageForumTopicCreated { }
- | MessageForumTopicEdited { }
- | MessageForumTopicIsClosedToggled { }
- | MessageForumTopicIsHiddenToggled { }
- | MessageSuggestProfilePhoto { }
- | MessageCustomServiceAction { }
- | MessageGameScore { }
- | MessagePaymentSuccessful { }
- | MessagePaymentSuccessfulBot {
- currency :: Maybe Text
- total_amount :: Maybe Int
- subscription_until_date :: Maybe Int
- is_recurring :: Maybe Bool
- is_first_recurring :: Maybe Bool
- invoice_payload :: Maybe ByteString
- shipping_option_id :: Maybe Text
- order_info :: Maybe OrderInfo
- telegram_payment_charge_id :: Maybe Text
- provider_payment_charge_id :: Maybe Text
- | MessagePaymentRefunded { }
- | MessageGiftedPremium { }
- | MessagePremiumGiftCode { }
- | MessageGiveawayCreated {
- star_count :: Maybe Int
- | MessageGiveaway { }
- | MessageGiveawayCompleted { }
- | MessageGiveawayWinners {
- boosted_chat_id :: Maybe Int
- giveaway_message_id :: Maybe Int
- additional_chat_count :: Maybe Int
- actual_winners_selection_date :: Maybe Int
- only_new_members :: Maybe Bool
- was_refunded :: Maybe Bool
- prize :: Maybe GiveawayPrize
- prize_description :: Maybe Text
- winner_count :: Maybe Int
- winner_user_ids :: Maybe [Int]
- unclaimed_prize_count :: Maybe Int
- | MessageGiftedStars { }
- | MessageGiveawayPrizeStars { }
- | MessageGift { }
- | MessageUpgradedGift { }
- | MessageRefundedUpgradedGift { }
- | MessageContactRegistered
- | MessageUsersShared { }
- | MessageChatShared { }
- | MessageBotWriteAccessAllowed { }
- | MessageWebAppDataSent {
- button_text :: Maybe Text
- | MessageWebAppDataReceived { }
- | MessagePassportDataSent { }
- | MessagePassportDataReceived { }
- | MessageProximityAlertTriggered { }
- | MessageUnsupported
Documentation
data MessageContent Source #
Contains the content of a message
MessageText | A text message |
| |
MessageAnimation | An animation message (GIF-style). |
| |
MessageAudio | An audio message |
MessageDocument | A document message (general file) |
MessagePaidMedia | A message with paid media |
| |
MessagePhoto | A photo message |
| |
MessageSticker | A sticker message |
MessageVideo | A video message |
| |
MessageVideoNote | A video note message |
MessageVoiceNote | A voice note message |
| |
MessageExpiredPhoto | A self-destructed photo message |
MessageExpiredVideo | A self-destructed video message |
MessageExpiredVideoNote | A self-destructed video note message |
MessageExpiredVoiceNote | A self-destructed voice note message |
MessageLocation | A message with a location |
| |
MessageVenue | A message with information about a venue |
MessageContact | A message with a user contact |
MessageAnimatedEmoji | A message with an animated emoji |
| |
MessageDice | A dice message. The dice value is randomly generated by the server |
| |
MessageGame | A message with a game |
MessagePoll | A message with a poll |
MessageStory | A message with a forwarded story |
| |
MessageInvoice | A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice |
| |
MessageCall | A message with information about an ended call |
| |
MessageVideoChatScheduled | A new video chat was scheduled |
| |
MessageVideoChatStarted | A newly created video chat |
| |
MessageVideoChatEnded | A message with information about an ended video chat |
MessageInviteVideoChatParticipants | A message with information about an invitation to a video chat |
MessageBasicGroupChatCreate | A newly created basic group |
MessageSupergroupChatCreate | A newly created supergroup or channel |
MessageChatChangeTitle | An updated chat title |
MessageChatChangePhoto | An updated chat photo |
MessageChatDeletePhoto | A deleted chat photo |
MessageChatAddMembers | New chat members were added |
| |
MessageChatJoinByLink | A new member joined the chat via an invite link |
MessageChatJoinByRequest | A new member was accepted to the chat by an administrator |
MessageChatDeleteMember | A chat member was deleted |
MessageChatUpgradeTo | A basic group was upgraded to a supergroup and was deactivated as the result |
| |
MessageChatUpgradeFrom | A supergroup has been created from a basic group |
MessagePinMessage | A message has been pinned |
| |
MessageScreenshotTaken | A screenshot of a message in the chat has been taken |
MessageChatSetBackground | A new background was set in the chat |
| |
MessageChatSetTheme | A theme in the chat has been changed |
| |
MessageChatSetMessageAutoDeleteTime | The auto-delete or self-destruct timer for messages in the chat has been changed |
| |
MessageChatBoost | The chat was boosted by the sender of the message |
| |
MessageForumTopicCreated | A forum topic has been created |
MessageForumTopicEdited | A forum topic has been edited |
| |
MessageForumTopicIsClosedToggled | A forum topic has been closed or opened |
MessageForumTopicIsHiddenToggled | A General forum topic has been hidden or unhidden |
MessageSuggestProfilePhoto | A profile photo was suggested to a user in a private chat |
MessageCustomServiceAction | A non-standard action has happened in the chat |
MessageGameScore | A new high score was achieved in a game |
MessagePaymentSuccessful | A payment has been sent to a bot or a business account |
| |
MessagePaymentSuccessfulBot | A payment has been received by the bot or the business account |
| |
MessagePaymentRefunded | A payment has been refunded |
| |
MessageGiftedPremium | Telegram Premium was gifted to a user |
| |
MessagePremiumGiftCode | A Telegram Premium gift code was created for the user |
| |
MessageGiveawayCreated | A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway, telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway |
| |
MessageGiveaway | A giveaway |
| |
MessageGiveawayCompleted | A giveaway without public winners has been completed for the chat |
| |
MessageGiveawayWinners | A giveaway with public winners has been completed for the chat |
| |
MessageGiftedStars | Telegram Stars were gifted to a user |
| |
MessageGiveawayPrizeStars | A Telegram Stars were received by the current user from a giveaway |
| |
MessageGift | A regular gift was received or sent by the current user |
| |
MessageUpgradedGift | An upgraded gift was received or sent by the current user |
| |
MessageRefundedUpgradedGift | A gift which purchase, upgrade or transfer were refunded |
MessageContactRegistered | A contact has registered with Telegram |
MessageUsersShared | The current user shared users, which were requested by the bot |
MessageChatShared | The current user shared a chat, which was requested by the bot |
MessageBotWriteAccessAllowed | The user allowed the bot to send messages |
| |
MessageWebAppDataSent | Data from a Web App has been sent to a bot |
| |
MessageWebAppDataReceived | Data from a Web App has been received; for bots only |
MessagePassportDataSent | Telegram Passport data has been sent to a bot |
| |
MessagePassportDataReceived | Telegram Passport data has been received; for bots only |
| |
MessageProximityAlertTriggered | A user in the chat came within proximity alert range |
| |
MessageUnsupported | A message content that is not supported in the current TDLib version |
Instances
FromJSON MessageContent Source # | |
Defined in TD.Data.MessageContent parseJSON :: Value -> Parser MessageContent # parseJSONList :: Value -> Parser [MessageContent] # | |
Show MessageContent Source # | |
Defined in TD.Data.MessageContent showsPrec :: Int -> MessageContent -> ShowS # show :: MessageContent -> String # showList :: [MessageContent] -> ShowS # | |
Eq MessageContent Source # | |
Defined in TD.Data.MessageContent (==) :: MessageContent -> MessageContent -> Bool # (/=) :: MessageContent -> MessageContent -> Bool # | |
ShortShow MessageContent Source # | |
Defined in TD.Data.MessageContent shortShow :: MessageContent -> String Source # |