Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data InputMessageContent
- = InputMessageText { }
- | InputMessageAnimation { }
- | InputMessageAudio { }
- | InputMessageDocument { }
- | InputMessagePaidMedia { }
- | InputMessagePhoto { }
- | InputMessageSticker { }
- | InputMessageVideo {
- video :: Maybe InputFile
- thumbnail :: Maybe InputThumbnail
- added_sticker_file_ids :: Maybe [Int]
- duration :: Maybe Int
- width :: Maybe Int
- height :: Maybe Int
- supports_streaming :: Maybe Bool
- caption :: Maybe FormattedText
- show_caption_above_media :: Maybe Bool
- self_destruct_type :: Maybe MessageSelfDestructType
- has_spoiler :: Maybe Bool
- | InputMessageVideoNote { }
- | InputMessageVoiceNote { }
- | InputMessageLocation { }
- | InputMessageVenue { }
- | InputMessageContact { }
- | InputMessageDice { }
- | InputMessageGame { }
- | InputMessageInvoice {
- invoice :: Maybe Invoice
- title :: Maybe Text
- description :: Maybe Text
- photo_url :: Maybe Text
- photo_size :: Maybe Int
- photo_width :: Maybe Int
- photo_height :: Maybe Int
- _payload :: Maybe ByteString
- provider_token :: Maybe Text
- provider_data :: Maybe Text
- start_parameter :: Maybe Text
- _paid_media :: Maybe InputPaidMedia
- paid_media_caption :: Maybe FormattedText
- | InputMessagePoll {
- question :: Maybe FormattedText
- options :: Maybe [FormattedText]
- is_anonymous :: Maybe Bool
- _type :: Maybe PollType
- open_period :: Maybe Int
- close_date :: Maybe Int
- is_closed :: Maybe Bool
- | InputMessageStory { }
- | InputMessageForwarded { }
Documentation
data InputMessageContent Source #
The content of a message to send
InputMessageText | A text message |
| |
InputMessageAnimation | An animation message (GIF-style). |
| |
InputMessageAudio | An audio message |
| |
InputMessageDocument | A document message (general file) |
| |
InputMessagePaidMedia | A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed |
| |
InputMessagePhoto | A photo message |
| |
InputMessageSticker | A sticker message |
| |
InputMessageVideo | A video message |
| |
InputMessageVideoNote | A video note message |
| |
InputMessageVoiceNote | A voice note message |
| |
InputMessageLocation | A message with a location |
| |
InputMessageVenue | A message with information about a venue |
InputMessageContact | A message containing a user contact |
InputMessageDice | A dice message |
InputMessageGame | A message with a game; not supported for channels or secret chats |
| |
InputMessageInvoice | A message with an invoice; can be used only by bots |
| |
InputMessagePoll | A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot |
| |
InputMessageStory | A message with a forwarded story. Stories can't be sent to secret chats. A story can be forwarded only if story.can_be_forwarded |
InputMessageForwarded | A forwarded message |
|
Instances
FromJSON InputMessageContent Source # | |
Defined in TD.Data.InputMessageContent parseJSON :: Value -> Parser InputMessageContent # parseJSONList :: Value -> Parser [InputMessageContent] # | |
ToJSON InputMessageContent Source # | |
Defined in TD.Data.InputMessageContent toJSON :: InputMessageContent -> Value # toEncoding :: InputMessageContent -> Encoding # toJSONList :: [InputMessageContent] -> Value # toEncodingList :: [InputMessageContent] -> Encoding # | |
Show InputMessageContent Source # | |
Defined in TD.Data.InputMessageContent showsPrec :: Int -> InputMessageContent -> ShowS # show :: InputMessageContent -> String # showList :: [InputMessageContent] -> ShowS # | |
Eq InputMessageContent Source # | |
Defined in TD.Data.InputMessageContent (==) :: InputMessageContent -> InputMessageContent -> Bool # (/=) :: InputMessageContent -> InputMessageContent -> Bool # | |
ShortShow InputMessageContent Source # | |
Defined in TD.Data.InputMessageContent |