Merge branch 'master' of https://github.com/danog/MadelineProto
This commit is contained in:
commit
b19bfa0592
@ -70,6 +70,7 @@ trait BotAPIFiles
|
||||
$photo['location']['id'] = isset($message_media['id']) ? $message_media['id'] : 0;
|
||||
$photo['location']['_'] = $thumbnail ? 'bot_thumbnail' : 'bot_photo';
|
||||
$data = $this->serialize_object(['type' => 'File'], $photo['location']).chr(2);
|
||||
|
||||
return [
|
||||
'file_id' => $this->base64url_encode($this->rle_encode($data)),
|
||||
'width' => $photo['w'],
|
||||
|
Loading…
Reference in New Issue
Block a user