zerobias / telegram-mtproto

Telegram client api (MTProto) library
MIT License
617 stars 136 forks source link

upload.getFile() #235

Closed fuzsh closed 5 years ago

fuzsh commented 5 years ago

in telegram bot api you can use getFile and it returns then you can use it like https://api.telegram.org/file/bot<token>/<file_path> to get the file direct link .

limitation : Maximum file size to download is 20 MB

in working with files, section upload.getFile() it said it return all data, how can we use that data to make a direct link ....?

or any other way to bypass 20mb limitation and make direct link for files ?

doc : getFile -> here