Expand description

Contains content of a push message notification

Variants

Animation(PushMessageContentAnimation)

An animation message (GIF-style).

Audio(PushMessageContentAudio)

Tuple Fields

An audio message

BasicGroupChatCreate(PushMessageContentBasicGroupChatCreate)

A newly created basic group

ChatAddMembers(PushMessageContentChatAddMembers)

New chat members were invited to a group

ChatChangePhoto(PushMessageContentChatChangePhoto)

A chat photo was edited

ChatChangeTitle(PushMessageContentChatChangeTitle)

A chat title was edited

ChatDeleteMember(PushMessageContentChatDeleteMember)

A chat member was deleted

A new member joined the chat via an invite link

ChatJoinByRequest(PushMessageContentChatJoinByRequest)

A new member was accepted to the chat by an administrator

ChatSetTheme(PushMessageContentChatSetTheme)

A chat theme was edited

Contact(PushMessageContentContact)

A message with a user contact

ContactRegistered(PushMessageContentContactRegistered)

A contact has registered with Telegram

Document(PushMessageContentDocument)

A document message (a general file)

Game(PushMessageContentGame)

Tuple Fields

A message with a game

GameScore(PushMessageContentGameScore)

A new high score was achieved in a game

Hidden(PushMessageContentHidden)

Tuple Fields

A general message with hidden content

Invoice(PushMessageContentInvoice)

A message with an invoice from a bot

Location(PushMessageContentLocation)

A message with a location

MediaAlbum(PushMessageContentMediaAlbum)

A media album

MessageForwards(PushMessageContentMessageForwards)

A forwarded messages

Photo(PushMessageContentPhoto)

Tuple Fields

A photo message

Poll(PushMessageContentPoll)

Tuple Fields

A message with a poll

ScreenshotTaken(PushMessageContentScreenshotTaken)

A screenshot of a message in the chat has been taken

Sticker(PushMessageContentSticker)

A message with a sticker

Text(PushMessageContentText)

Tuple Fields

A text message

Video(PushMessageContentVideo)

Tuple Fields

A video message

VideoNote(PushMessageContentVideoNote)

A video note message

VoiceNote(PushMessageContentVoiceNote)

A voice note message

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.