MessageMedia

Media

messageMediaEmpty#3ded6320 = MessageMedia;
messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;
messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia;
messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia;
messageMediaUnsupported#9f84f49e = MessageMedia;
messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia;
messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia;
messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia;
messageMediaGame#fdb19008 game:Game = MessageMedia;
messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia;
messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia;
messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia;

---functions---

messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector<MessageEntity> = MessageMedia;
messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia;

Constructors

Constructor Description
messageMediaEmpty Empty constructor.
messageMediaPhoto Attached photo.
messageMediaGeo Attached map.
messageMediaContact Attached contact.
messageMediaUnsupported Current version of the client does not support this media type.
messageMediaDocument Document (video, audio, voice, sticker, any media type except photo)
messageMediaWebPage Preview of webpage
messageMediaVenue Venue
messageMediaGame Telegram game
messageMediaInvoice Invoice
messageMediaGeoLive Indicates a live geolocation
messageMediaPoll Poll
messageMediaDice Dice-based animated sticker
messageMediaStory Represents a forwarded story or a story mention.
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.
messageMediaPaidMedia Paid media, see here » for more info.

Methods

Method Description
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 ».