MessageMediaPhoto#
- class pyrogram.raw.types.MessageMediaPhoto#
Attached photo.
Constructor of
MessageMedia.- Details:
Layer:
227ID:
E216EB63
- Parameters:
spoiler (
bool, optional) – Whether this media should be hidden behind a spoiler warninglive_photo (
bool, optional) – Whether this is a live photo, i.e. a still photo paired with the short video clip captured alongside itphoto (
Photo, optional) – Photottl_seconds (
int32-bit, optional) – Time to live of self-destructing photo, can be 0 to disable self-destruction, 0x7FFFFFFF to self-destruct the photo immediately after it’s played; otherwise self-destructs ttl_seconds after it’s played.video (
Document, optional) – The short video clip of the live photo
- Functions:
This object can be returned by 2 functions.
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.
Upload a media file associated with an imported chat, click here for more info.