haskell-tdlib-2.1.15.0: Binding to the Telegram Database Library
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, MentionName, and DateTime 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 the 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 and channel direct messages chats. Polls can be sent to a private chat only if the chat is a chat with a bot or the Saved Messages chat

Fields

InputMessageStakeDice

A stake dice message

Fields

  • state_hash :: Maybe Text

    Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState

  • stake_toncoin_amount :: Maybe Int

    The Toncoin amount that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max")

  • clear_draft :: Maybe Bool

    True, if the chat message draft must be deleted

InputMessageStory

A message with a forwarded story. Stories can't be forwarded to secret chats. A story can be forwarded only if story.can_be_forwarded

Fields

InputMessageChecklist

A message with a checklist. Checklists can't be sent to secret chats, channel chats and channel direct messages chats; for Telegram Premium users only

Fields

InputMessageForwarded

A forwarded message

Fields