This commit is contained in:
Daniil Gentili 2017-03-31 17:36:14 +02:00
commit b19bfa0592

View File

@ -70,6 +70,7 @@ trait BotAPIFiles
$photo['location']['id'] = isset($message_media['id']) ? $message_media['id'] : 0; $photo['location']['id'] = isset($message_media['id']) ? $message_media['id'] : 0;
$photo['location']['_'] = $thumbnail ? 'bot_thumbnail' : 'bot_photo'; $photo['location']['_'] = $thumbnail ? 'bot_thumbnail' : 'bot_photo';
$data = $this->serialize_object(['type' => 'File'], $photo['location']).chr(2); $data = $this->serialize_object(['type' => 'File'], $photo['location']).chr(2);
return [ return [
'file_id' => $this->base64url_encode($this->rle_encode($data)), 'file_id' => $this->base64url_encode($this->rle_encode($data)),
'width' => $photo['w'], 'width' => $photo['w'],