MadelineProtoDocs/old_docs/API_docs_v25/constructors/inputChatPhoto.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

919 B

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

Constructor: inputChatPhoto

Back to constructors index

Chat photo

Attributes:

Name Type Required Description
id MessageMedia, Message, Update or InputPhoto Optional ID
crop InputPhotoCrop Yes Crop

Type: InputChatPhoto

Example:

$inputChatPhoto = ['_' => 'inputChatPhoto', 'id' => InputPhoto, 'crop' => InputPhotoCrop];

PWRTelegram json-encoded version:

{"_": "inputChatPhoto", "id": InputPhoto, "crop": InputPhotoCrop}

Or, if you're into Lua:

inputChatPhoto={_='inputChatPhoto', id=InputPhoto, crop=InputPhotoCrop}