haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.MessageContent

Synopsis

Documentation

data MessageContent Source #

Contains the content of a message

Constructors

MessageText

A text message

Fields

MessageAnimation

An animation message (GIF-style).

Fields

MessageAudio

An audio message

Fields

MessageDocument

A document message (general file)

Fields

MessagePaidMedia

A message with paid media

Fields

MessagePhoto

A photo message

Fields

MessageSticker

A sticker message

Fields

MessageVideo

A video message

Fields

MessageVideoNote

A video note message

Fields

MessageVoiceNote

A voice note message

Fields

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

Fields

  • location :: Maybe Location

    The location description

  • live_period :: Maybe Int

    Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever

  • expires_in :: Maybe Int

    Left time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The update updateMessageContent is not sent when this field changes

  • heading :: Maybe Int

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

  • proximity_alert_radius :: Maybe Int

    For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only to the message sender

MessageVenue

A message with information about a venue

Fields

MessageContact

A message with a user contact

Fields

MessageAnimatedEmoji

A message with an animated emoji

Fields

MessageDice

A dice message. The dice value is randomly generated by the server

Fields

  • initial_state :: Maybe DiceStickers

    The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known

  • final_state :: Maybe DiceStickers

    The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known

  • emoji :: Maybe Text

    The corresponding emoji

  • value :: Maybe Int

    The dice value. If the value is 0, the dice don't have final state yet

  • success_animation_frame_number :: Maybe Int

    Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded

MessageGame

A message with a game

Fields

MessagePoll

A message with a poll

Fields

MessageStory

A message with a forwarded story

Fields

MessageInvoice

A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice

Fields

MessageCall

A message with information about an ended call

Fields

MessageVideoChatScheduled

A new video chat was scheduled

Fields

  • group_call_id :: Maybe Int

    Identifier of the video chat. The video chat can be received through the method getGroupCall

  • start_date :: Maybe Int

    Point in time (Unix timestamp) when the group call is expected to be started by an administrator

MessageVideoChatStarted

A newly created video chat

Fields

  • group_call_id :: Maybe Int

    Identifier of the video chat. The video chat can be received through the method getGroupCall

MessageVideoChatEnded

A message with information about an ended video chat

Fields

MessageInviteVideoChatParticipants

A message with information about an invitation to a video chat

Fields

MessageBasicGroupChatCreate

A newly created basic group

Fields

MessageSupergroupChatCreate

A newly created supergroup or channel

Fields

MessageChatChangeTitle

An updated chat title

Fields

MessageChatChangePhoto

An updated chat photo

Fields

MessageChatDeletePhoto

A deleted chat photo

MessageChatAddMembers

New chat members were added

Fields

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

Fields

MessageChatUpgradeTo

A basic group was upgraded to a supergroup and was deactivated as the result

Fields

MessageChatUpgradeFrom

A supergroup has been created from a basic group

Fields

MessagePinMessage

A message has been pinned

Fields

  • message_id :: Maybe Int

    Identifier of the pinned message, can be an identifier of a deleted message or 0

MessageScreenshotTaken

A screenshot of a message in the chat has been taken

MessageChatSetBackground

A new background was set in the chat

Fields

MessageChatSetTheme

A theme in the chat has been changed

Fields

  • theme_name :: Maybe Text

    If non-empty, name of a new theme, set for the chat. Otherwise, chat theme was reset to the default one

MessageChatSetMessageAutoDeleteTime

The auto-delete or self-destruct timer for messages in the chat has been changed

Fields

MessageChatBoost

The chat was boosted by the sender of the message

Fields

MessageForumTopicCreated

A forum topic has been created

Fields

MessageForumTopicEdited

A forum topic has been edited

Fields

MessageForumTopicIsClosedToggled

A forum topic has been closed or opened

Fields

MessageForumTopicIsHiddenToggled

A General forum topic has been hidden or unhidden

Fields

MessageSuggestProfilePhoto

A profile photo was suggested to a user in a private chat

Fields

MessageCustomServiceAction

A non-standard action has happened in the chat

Fields

MessageGameScore

A new high score was achieved in a game

Fields

MessagePaymentSuccessful

A payment has been completed

Fields

MessagePaymentSuccessfulBot

A payment has been completed; for bots only

Fields

MessagePaymentRefunded

A payment has been refunded

Fields

MessageGiftedPremium

Telegram Premium was gifted to a user

Fields

MessagePremiumGiftCode

A Telegram Premium gift code was created for the user

Fields

MessageGiveawayCreated

A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway, telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway

Fields

  • star_count :: Maybe Int

    Number of Telegram Stars needed to buy access to the media in the message

MessageGiveaway

A giveaway

Fields

MessageGiveawayCompleted

A giveaway without public winners has been completed for the chat

Fields

MessageGiveawayWinners

A giveaway with public winners has been completed for the chat

Fields

MessageGiftedStars

Telegram Stars were gifted to a user

Fields

MessageGiveawayPrizeStars

A Telegram Stars were received by the current user from a giveaway

Fields

MessageGift

A gift was received or sent by the current user

Fields

MessageContactRegistered

A contact has registered with Telegram

MessageUsersShared

The current user shared users, which were requested by the bot

Fields

MessageChatShared

The current user shared a chat, which was requested by the bot

Fields

MessageBotWriteAccessAllowed

The user allowed the bot to send messages

Fields

MessageWebAppDataSent

Data from a Web App has been sent to a bot

Fields

MessageWebAppDataReceived

Data from a Web App has been received; for bots only

Fields

MessagePassportDataSent

Telegram Passport data has been sent to a bot

Fields

MessagePassportDataReceived

Telegram Passport data has been received; for bots only

Fields

MessageProximityAlertTriggered

A user in the chat came within proximity alert range

Fields

MessageUnsupported

A message content that is not supported in the current TDLib version