MadelineProtoDocs/old_docs/API_docs_v22/constructors/inputMediaPhoto.md
2020-06-16 17:50:25 +02:00

923 B

title description image
inputMediaPhoto Forwarded photo https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputMediaPhoto

Back to constructors index

Forwarded photo

Attributes:

Name Type Required Description
id MessageMedia, Message, Update or InputPhoto Optional Photo to be forwarded
caption string Yes
ttl_seconds int Optional Time to live in seconds of self-destructing photo

Type: InputMedia

Example:

$inputMediaPhoto = ['_' => 'inputMediaPhoto', 'id' => InputPhoto, 'caption' => 'string', 'ttl_seconds' => int];

Or, if you're into Lua:

inputMediaPhoto={_='inputMediaPhoto', id=InputPhoto, caption='string', ttl_seconds=int}