Expand description

Contains content of a push message notification

Variants

Animation(PushMessageContentAnimation)

An animation message (GIF-style).

Audio(PushMessageContentAudio)

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)

A message with a game

GameScore(PushMessageContentGameScore)

A new high score was achieved in a game

Hidden(PushMessageContentHidden)

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)

A photo message

Poll(PushMessageContentPoll)

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)

A text message

Video(PushMessageContentVideo)

A video message

VideoNote(PushMessageContentVideoNote)

A video note message

VoiceNote(PushMessageContentVoiceNote)

A voice note message

Implementations

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.