ChatPhoto
This object represents a chat photo.
📝 Schema
Field | Type | Description |
---|---|---|
string | small_file_id | File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. |
string | small_file_unique_id | File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. |
string | big_file_id | File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. |
string | big_file_unique_id | Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. |
⚙️ Get methods
getSmallFileId()
Retrieves the file identifier of the small (160x160) chat photo. This file_id
can be used for photo download while the photo remains unchanged.
$smallFileId = $chatPhotoObject->getSmallFileId();
getSmallFileUniqueId()
Retrieves the unique file identifier of the small (160x160) chat photo. This identifier remains the same over time and for different bots.
$smallFileUniqueId = $chatPhotoObject->getSmallFileUniqueId();
getBigFileId()
Retrieves the file identifier of the big (640x640) chat photo. This file_id can be used for photo download while the photo remains unchanged.
$bigFileId = $chatPhotoObject->getBigFileId();
getBigFileUniqueId()
Retrieves the unique file identifier of the big (640x640) chat photo. This identifier remains the same over time and for different bots, but can't be used to download or reuse the file.
$bigFileUniqueId = $chatPhotoObject->getBigFileUniqueId();
➕ More
tip
For further information, refer to the official Bale documentation for more details.