Apply fixes from StyleCI
This commit is contained in:
parent
87a5152927
commit
4d6725a64a
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user