Enum rtdlib::types::PushMessageContent[][src]

Expand description

Contains content of a push message notification

Variants

Animation

An animation message (GIF-style).

Tuple Fields of Animation

0: PushMessageContentAnimation
Audio

An audio message

Tuple Fields of Audio

0: PushMessageContentAudio
BasicGroupChatCreate

A newly created basic group

Tuple Fields of BasicGroupChatCreate

0: PushMessageContentBasicGroupChatCreate
ChatAddMembers

New chat members were invited to a group

Tuple Fields of ChatAddMembers

0: PushMessageContentChatAddMembers
ChatChangePhoto

A chat photo was edited

Tuple Fields of ChatChangePhoto

0: PushMessageContentChatChangePhoto
ChatChangeTitle

A chat title was edited

Tuple Fields of ChatChangeTitle

0: PushMessageContentChatChangeTitle
ChatDeleteMember

A chat member was deleted

Tuple Fields of ChatDeleteMember

0: PushMessageContentChatDeleteMember

A new member joined the chat by invite link

Tuple Fields of ChatJoinByLink

0: PushMessageContentChatJoinByLink
Contact

A message with a user contact

Tuple Fields of Contact

0: PushMessageContentContact
ContactRegistered

A contact has registered with Telegram

Tuple Fields of ContactRegistered

0: PushMessageContentContactRegistered
Document

A document message (a general file)

Tuple Fields of Document

0: PushMessageContentDocument
Game

A message with a game

Tuple Fields of Game

0: PushMessageContentGame
GameScore

A new high score was achieved in a game

Tuple Fields of GameScore

0: PushMessageContentGameScore
Hidden

A general message with hidden content

Tuple Fields of Hidden

0: PushMessageContentHidden
Invoice

A message with an invoice from a bot

Tuple Fields of Invoice

0: PushMessageContentInvoice
Location

A message with a location

Tuple Fields of Location

0: PushMessageContentLocation
MediaAlbum

A media album

Tuple Fields of MediaAlbum

0: PushMessageContentMediaAlbum
MessageForwards

A forwarded messages

Tuple Fields of MessageForwards

0: PushMessageContentMessageForwards
Photo

A photo message

Tuple Fields of Photo

0: PushMessageContentPhoto
Poll

A message with a poll

Tuple Fields of Poll

0: PushMessageContentPoll
ScreenshotTaken

A screenshot of a message in the chat has been taken

Tuple Fields of ScreenshotTaken

0: PushMessageContentScreenshotTaken
Sticker

A message with a sticker

Tuple Fields of Sticker

0: PushMessageContentSticker
Text

A text message

Tuple Fields of Text

0: PushMessageContentText
Video

A video message

Tuple Fields of Video

0: PushMessageContentVideo
VideoNote

A video note message

Tuple Fields of VideoNote

0: PushMessageContentVideoNote
VoiceNote

A voice note message

Tuple Fields of VoiceNote

0: PushMessageContentVoiceNote

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)

recently added

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.