1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 00:06:55 +01:00
MadelineProto/docs/TD_docs/constructors/inputMessagePhoto.md
2017-07-23 16:11:02 +02:00

1.4 KiB

title description
inputMessagePhoto Photo message

Constructor: inputMessagePhoto

Back to constructors index

Photo message

Attributes:

Name Type Required Description
photo InputFile Yes Photo to send
thumb InputThumb Yes Photo thumb to send, is sent to the other party in secret chats only
added_sticker_file_ids Array of int Yes File identifiers of stickers added onto the photo
width int Yes Photo width
height int Yes Photo height
caption string Yes Photo caption, 0-200 characters

Type: InputMessageContent

Example:

$inputMessagePhoto = ['_' => 'inputMessagePhoto', 'photo' => InputFile, 'thumb' => InputThumb, 'added_sticker_file_ids' => [int], 'width' => int, 'height' => int, 'caption' => string, ];

PWRTelegram json-encoded version:

{"_":"inputMessagePhoto","photo":"InputFile","thumb":"InputThumb","added_sticker_file_ids":["int"],"width":"int","height":"int","caption":"string"}

Or, if you're into Lua:

inputMessagePhoto={_='inputMessagePhoto', photo=InputFile, thumb=InputThumb, added_sticker_file_ids={int}, width=int, height=int, caption=string, }