PushMessageContent
public indirect enum PushMessageContent : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Contains content of a push message notification
-
A general message with hidden content
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case hidden(isPinned: Bool)
-
An animation message (GIF-style).
- animation: Message content; may be null
- caption: Animation caption
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case animation(animation: Animation?, caption: String, isPinned: Bool)
-
An audio message
- audio: Message content; may be null
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case audio(audio: Audio?, isPinned: Bool)
-
A message with a user contact
- name: Contact’s name
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case contact(name: String, isPinned: Bool)
-
A contact has registered with Telegram
Declaration
Swift
case contactRegistered
-
A document message (a general file)
- document: Message content; may be null
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case document(document: Document?, isPinned: Bool)
-
A message with a game
- title: Game title, empty for pinned game message
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case game(title: String, isPinned: Bool)
-
A new high score was achieved in a game
- title: Game title, empty for pinned message
- score: New score, 0 for pinned message
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case gameScore(title: String, score: Int32, isPinned: Bool)
-
A message with an invoice from a bot
- price: Product price
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case invoice(price: String, isPinned: Bool)
-
A message with a location
- isLive: True, if the location is live
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case location(isLive: Bool, isPinned: Bool)
-
A photo message
- photo: Message content; may be null
- caption: Photo caption
- isSecret: True, if the photo is secret
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case photo(photo: Photo?, caption: String, isSecret: Bool, isPinned: Bool)
-
A message with a poll
- question: Poll question
- isRegular: True, if the poll is regular and not in quiz mode
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case poll(question: String, isRegular: Bool, isPinned: Bool)
-
A screenshot of a message in the chat has been taken
Declaration
Swift
case screenshotTaken
-
A message with a sticker
- sticker: Message content; may be null
- emoji: Emoji corresponding to the sticker; may be empty
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case sticker(sticker: Sticker?, emoji: String, isPinned: Bool)
-
A text message
- text: Message text
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case text(text: String, isPinned: Bool)
-
A video message
- video: Message content; may be null
- caption: Video caption
- isSecret: True, if the video is secret
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case video(video: Video?, caption: String, isSecret: Bool, isPinned: Bool)
-
A video note message
- videoNote: Message content; may be null
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case videoNote(videoNote: VideoNote?, isPinned: Bool)
-
A voice note message
- voiceNote: Message content; may be null
- isPinned: True, if the message is a pinned message with the specified content
Declaration
Swift
case voiceNote(voiceNote: VoiceNote?, isPinned: Bool)
-
A newly created basic group
Declaration
Swift
case basicGroupChatCreate
-
New chat members were invited to a group
- memberName: Name of the added member
- isCurrentUser: True, if the current user was added to the group
- isReturned: True, if the user has returned to the group themself
Declaration
Swift
case chatAddMembers(memberName: String, isCurrentUser: Bool, isReturned: Bool)
-
A chat photo was edited
Declaration
Swift
case chatChangePhoto
-
A chat title was edited
- title: New chat title
Declaration
Swift
case chatChangeTitle(title: String)
-
A chat member was deleted
- memberName: Name of the deleted member
- isCurrentUser: True, if the current user was deleted from the group
- isLeft: True, if the user has left the group themself
Declaration
Swift
case chatDeleteMember(memberName: String, isCurrentUser: Bool, isLeft: Bool)
-
A new member joined the chat by invite link
Declaration
Swift
case chatJoinByLink
-
A forwarded messages
- totalCount: Number of forwarded messages
Declaration
Swift
case messageForwards(totalCount: Int32)
-
A media album
- totalCount: Number of messages in the album
- hasPhotos: True, if the album has at least one photo
- hasVideos: True, if the album has at least one video
Declaration
Swift
case mediaAlbum(totalCount: Int32, hasPhotos: Bool, hasVideos: Bool)