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.

Methods

This object can be returned by 2 methods:

messages.GetWebPagePreview

Get preview of webpage.

messages.UploadMedia

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