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

1.2 KiB

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

Constructor: photo

Back to constructors index

Photo

Attributes:

Name Type Required Description
id long Yes ID
access_hash long Yes Access hash
user_id int Yes User ID
date int Yes Date
caption string Yes Caption
geo GeoPoint Optional Geo
sizes Array of PhotoSize Yes Sizes

Type: Photo

Example:

$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize, PhotoSize]];

PWRTelegram json-encoded version:

{"_": "photo", "id": long, "access_hash": long, "user_id": int, "date": int, "caption": "string", "geo": GeoPoint, "sizes": [PhotoSize]}

Or, if you're into Lua:

photo={_='photo', id=long, access_hash=long, user_id=int, date=int, caption='string', geo=GeoPoint, sizes={PhotoSize}}