MessageMediaPhoto#

class pyrogram.raw.types.MessageMediaPhoto#

Attached photo.

Constructor of MessageMedia.

Details:
  • Layer: 158

  • ID: 695150D7

Parameters:
  • spoiler (bool, optional) – Whether this media should be hidden behind a spoiler warning.

  • photo (Photo, optional) – Photo.

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

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.