haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.PushMessageContent

Synopsis

Documentation

data PushMessageContent Source #

Contains content of a push message notification

Constructors

PushMessageContentHidden

A general message with hidden content

Fields

  • is_pinned :: Maybe Bool

    True, if the message is a pinned message with the specified content

PushMessageContentAnimation

An animation message (GIF-style).

Fields

PushMessageContentAudio

An audio message

Fields

PushMessageContentContact

A message with a user contact

Fields

PushMessageContentContactRegistered

A contact has registered with Telegram

PushMessageContentDocument

A document message (a general file)

Fields

PushMessageContentGame

A message with a game

Fields

PushMessageContentGameScore

A new high score was achieved in a game

Fields

PushMessageContentInvoice

A message with an invoice from a bot

Fields

PushMessageContentLocation

A message with a location

Fields

PushMessageContentPaidMedia

A message with paid media

Fields

  • star_count :: Maybe Int

    Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message

  • is_pinned :: Maybe Bool

    True, if the message is a pinned message with the specified content

PushMessageContentPhoto

A photo message

Fields

PushMessageContentPoll

A message with a poll

Fields

PushMessageContentPremiumGiftCode

A message with a Telegram Premium gift code created for the user

Fields

  • month_count :: Maybe Int

    Number of months the Telegram Premium subscription will be active after code activation

PushMessageContentGiveaway

A message with a giveaway

Fields

PushMessageContentGift

A message with a gift

Fields

  • star_count :: Maybe Int

    Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message

PushMessageContentScreenshotTaken

A screenshot of a message in the chat has been taken

PushMessageContentSticker

A message with a sticker

Fields

PushMessageContentStory

A message with a story

Fields

  • is_pinned :: Maybe Bool

    True, if the message is a pinned message with the specified content

PushMessageContentText

A text message

Fields

PushMessageContentVideo

A video message

Fields

PushMessageContentVideoNote

A video note message

Fields

PushMessageContentVoiceNote

A voice note message

Fields

PushMessageContentBasicGroupChatCreate

A newly created basic group

PushMessageContentChatAddMembers

New chat members were invited to a group

Fields

PushMessageContentChatChangePhoto

A chat photo was edited

PushMessageContentChatChangeTitle

A chat title was edited

Fields

PushMessageContentChatSetBackground

A chat background was edited

Fields

  • is_same :: Maybe Bool

    True, if the set background is the same as the background of the current user

PushMessageContentChatSetTheme

A chat theme was edited

Fields

  • theme_name :: Maybe Text

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

PushMessageContentChatDeleteMember

A chat member was deleted

Fields

PushMessageContentChatJoinByLink

A new member joined the chat via an invite link

PushMessageContentChatJoinByRequest

A new member was accepted to the chat by an administrator

PushMessageContentRecurringPayment

A new recurring payment was made by the current user

Fields

PushMessageContentSuggestProfilePhoto

A profile photo was suggested to the user

PushMessageContentMessageForwards

A forwarded messages

Fields

PushMessageContentMediaAlbum

A media album

Fields