MessageMedia

class pyrogram.raw.base.MessageMedia

Media

Constructors:

This base type has 17 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

MessageMediaGiveaway

Contains info about a giveaway, see here » for more info.

MessageMediaGiveawayResults

A giveaway with public winners has finished, this constructor contains info about the winners.

MessageMediaInvoice

Invoice

MessageMediaPaidMedia

Telegram API type.

MessageMediaPhoto

Attached photo.

MessageMediaPoll

Poll

MessageMediaStory

Represents a forwarded story or a story mention.

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, click here for more info ».