I am using getFile() and then download photo with a link like https://api.telegram.org/file/bot
But I received only his thumbnails
The photo
object you receive from Telegram contains an array with the file_id
of different sizes. The higher the index, the bigger the size, so you just need to pick the right file_id
.
It could look like this:
[{
"file_id":"AgADBAADxxxx",
"file_size":19374,
"width":253,
"height":320
},{
"file_id":"AgADBAACxxxx",
"file_size":75657,
"width":632,
"height":800
}]
if you use PHP: you can write this line for full size:
$file_id = $updates['message']['photo'][1]['file_id'];
and this line for thumb:
$file_id = $updates['message']['photo'][0]['file_id'];