Open aleontev opened 5 years ago
Why do you want to download a file via custom base url?
The donwloadFile method is only to download stuff from telegram, therefore having a hardcoded template is okay
But if main url is blocked, and i want to use reverse proxy?
URL template for downloading files is hardcoded:
https://github.com/rubenlagus/TelegramBots/blob/7fd3d871dc832335379c9fe95ea4fd268e4aff70/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/File.java#L61
This static method is invoking from final method and can't be overriden: https://github.com/rubenlagus/TelegramBots/blob/7fd3d871dc832335379c9fe95ea4fd268e4aff70/telegrambots/src/main/java/org/telegram/telegrambots/bots/DefaultAbsSender.java#L115
How can i download file using my custom link (like baseUrl)?