pro.zackpollard.telegrambot.api.internal.chat.message.send.FileContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtelegram-botapi Show documentation
Show all versions of jtelegram-botapi Show documentation
The Java Telegram Bot API is a wrapper for the Telegram HTTP Bot API
package pro.zackpollard.telegrambot.api.internal.chat.message.send;
import pro.zackpollard.telegrambot.api.chat.message.send.InputFile;
import java.io.File;
/**
* @author Zack Pollard
*/
public class FileContainer extends File {
private final InputFile inputFile;
public FileContainer(InputFile inputFile) {
super(inputFile.getFile().toURI());
this.inputFile = inputFile;
}
@Override
public String getName() {
return inputFile.getFileName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy