MessageMediaPhoto#

class pyrogram.raw.types.MessageMediaPhoto[source]#

Attached photo.

Constructor of MessageMedia.

Details:
  • Layer: 224

  • ID: E216EB63

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

  • live_photo (bool, optional) – N/A

  • photo (Photo, optional) – Photo

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

  • video (Document, optional) – N/A

Functions:

This object can be returned by 2 functions.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat) May also be used in a business connection, not by wrapping the query in invokeWithBusinessConnection , but rather by specifying the business connection ID in the business_connection_id parameter.

messages.UploadImportedMedia

Upload a media file associated with an imported chat, click here for more info .