MessageContent¶
- class pyrogram.types.MessageContent¶
A message content.
- Parameters:
type (
MessageMediaType, optional) – The attached media of the message. This field will contain the enumeration type of the media. You can usemedia = getattr(media, media.type.value)to access the media.audio (
Audio, optional) – Message is an audio file, information about the file.document (
Document, optional) – Message is a general file, information about the file.photo (
Photo, optional) – Message is a photo, information about the photo.sticker (
Sticker, optional) – Message is a sticker, information about the sticker.animation (
Animation, optional) – Message is an animation, information about the animation.game (
Game, optional) – Message is a game, information about the game.giveaway (
Giveaway, optional) – Message is a giveaway, information about the giveaway.giveaway_winners (
GiveawayWinners, optional) – A giveaway with public winners was completed.invoice (
Invoice, optional) – Message is a invoice, information about the invoice. More about payments »story (
Story, optional) – Message is a story, information about the story.video (
Video, optional) – Message is a video, information about the video.voice (
Voice, optional) – Message is a voice message, information about the file.video_note (
VideoNote, optional) – Message is a video note, information about the video message.contact (
Contact, optional) – Message is a shared contact, information about the contact.location (
Location, optional) – Message is a shared location, information about the location.venue (
Venue, optional) – Message is a venue, information about the venue.web_page (
WebPage, optional) – Message was sent with a webpage preview.poll (
Poll, optional) – Message is a native poll, information about the poll.dice (
Dice, optional) – A dice containing a value that is randomly generated by Telegram.paid_media (
PaidMediaInfo, optional) – The message is a paid media message.checklist (
Checklist, optional) – The message is a checklist message.