public interface File
| Modifier and Type | Method and Description |
|---|---|
default File |
downloadFile(TelegramBot telegramBot,
File downloadLocation)
Downloads the file to a set location on disk
|
default String |
getFileDownloadLink(TelegramBot telegramBot)
Gets the download link for this file
|
String |
getFileId()
Gets the Unique Identifier for this file
|
int |
getSize()
Gets the size of the file
|
String getFileId()
int getSize()
default String getFileDownloadLink(TelegramBot telegramBot)
telegramBot - The TelegramBot instance that relates to this filedefault File downloadFile(TelegramBot telegramBot, File downloadLocation)
telegramBot - The TelegramBot instance that relates to this filedownloadLocation - A File object pointing to the location where you want to download the fileCopyright © 2017. All rights reserved.