downloadFile

Download telegram file with file_id to destination location

It will use fileLink method to get the direct link

This method does not bypass telegram download limits, Check them before using this

Arguments
Name Type Description Required
destination string destination for save the file yes
file_id string Give the file_id, if you doesn't fill it, it will use catchFields method to get received file_id no

Output : bool

Static or normal : Static

Examples :

request::downloadFile();
request::downloadFile('x.txt', 'BAACAgQAAxkBAAIeYGS9BimJls__3fovn99sY610Jz8sAAK7DQACjNPpUZ3WWpU6IPSvLwQ');