haskell-tdlib-2.0.53.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.InputMessageContent

Synopsis

Documentation

data InputMessageContent Source #

The content of a message to send

Constructors

InputMessageText

A text message

Fields

  • text :: Maybe FormattedText

    Formatted text to be sent; 0-getOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually

  • link_preview_options :: Maybe LinkPreviewOptions

    Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options

  • clear_draft :: Maybe Bool

    True, if a chat message draft must be deleted

InputMessageAnimation

An animation message (GIF-style).

Fields

InputMessageAudio

An audio message

Fields

InputMessageDocument

A document message (general file)

Fields

InputMessagePaidMedia

A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed

Fields

InputMessagePhoto

A photo message

Fields

InputMessageSticker

A sticker message

Fields

InputMessageVideo

A video message

Fields

InputMessageVideoNote

A video note message

Fields

InputMessageVoiceNote

A voice note message

Fields

InputMessageLocation

A message with a location

Fields

  • location :: Maybe Location

    Location to be sent

  • live_period :: Maybe Int

    Period for which the location can be updated, in seconds; must be between 60 and 86400 for a temporary live location, 0x7FFFFFFF for permanent live location, and 0 otherwise

  • heading :: Maybe Int

    For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown

  • proximity_alert_radius :: Maybe Int

    For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled. Can't be enabled in channels and Saved Messages

InputMessageVenue

A message with information about a venue

Fields

InputMessageContact

A message containing a user contact

Fields

InputMessageDice

A dice message

Fields

InputMessageGame

A message with a game; not supported for channels or secret chats

Fields

InputMessageInvoice

A message with an invoice; can be used only by bots

Fields

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

Fields

  • question :: Maybe FormattedText

    Poll question; 1-255 characters (up to 300 characters for bots). Only custom emoji entities are allowed to be added and only by Premium users

  • options :: Maybe [FormattedText]

    List of poll answer options, 2-10 strings 1-100 characters each. Only custom emoji entities are allowed to be added and only by Premium users

  • is_anonymous :: Maybe Bool

    True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels

  • _type :: Maybe PollType

    Type of the poll

  • open_period :: Maybe Int

    Amount of time the poll will be active after creation, in seconds; for bots only

  • close_date :: Maybe Int

    Point in time (Unix timestamp) when the poll will automatically be closed; for bots only

  • is_closed :: Maybe Bool

    True, if the poll needs to be sent already closed; for bots only

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

Fields

InputMessageForwarded

A forwarded message

Fields

  • from_chat_id :: Maybe Int

    Identifier for the chat this forwarded message came from

  • message_id :: Maybe Int

    Identifier of the message to forward. A message can be forwarded only if messageProperties.can_be_forwarded

  • in_game_share :: Maybe Bool

    True, if a game message is being shared from a launched game; applies only to game messages

  • copy_options :: Maybe MessageCopyOptions

    Options to be used to copy content of the message without reference to the original sender; pass null to forward the message as usual