MessageMedia#

class pyrogram.raw.base.MessageMedia#

Media.

Constructors:

This base type has 13 constructors available.

MessageMediaContact

Attached contact.

MessageMediaDice

Dice-based animated sticker.

MessageMediaDocument

Document (video, audio, voice, sticker, any media type except photo).

MessageMediaEmpty

Empty constructor.

MessageMediaGame

Telegram game.

MessageMediaGeo

Attached map.

MessageMediaGeoLive

Indicates a live geolocation.

MessageMediaInvoice

Invoice.

MessageMediaPhoto

Attached photo.

MessageMediaPoll

Poll.

MessageMediaUnsupported

Current version of the client does not support this media type.

MessageMediaVenue

Venue.

MessageMediaWebPage

Preview of webpage.

Functions:

This object can be returned by 3 functions.

messages.GetWebPagePreview

Get preview of webpage.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat).

messages.UploadImportedMedia

Upload a media file associated with an imported chat.