MadelineProtoDocs/docs/API_docs/constructors/messageMediaPhoto.md
2024-05-01 14:53:46 +02:00

886 B

title description nav_exclude image
messageMediaPhoto Attached photo. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageMediaPhoto

Back to constructors index

Attached photo.

Attributes:

Name Type Required Description
spoiler Bool Optional Whether this media should be hidden behind a spoiler warning
photo Photo Optional Photo
ttl_seconds int Optional Time to live in seconds of self-destructing photo

Type: MessageMedia

Example:

$messageMediaPhoto = ['_' => 'messageMediaPhoto', 'spoiler' => Bool, 'photo' => Photo, 'ttl_seconds' => int];