MessageMediaPhoto

class pyrogram.raw.types.MessageMediaPhoto

Attached photo.

Constructor type of MessageMedia.

Details
  • Layer: 126

  • ID: 0x695150d7

Parameters
  • photo (Photo, optional) – Photo.

  • ttl_seconds (int 32-bit, optional) – Time to live in seconds of self-destructing photo.

Methods

This object can be returned by 3 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).

messages.UploadImportedMedia

Telegram API method.