pro.zackpollard.telegrambot.api.user.UserProfilePhotos 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.user;
import pro.zackpollard.telegrambot.api.chat.message.content.type.PhotoSize;
/**
* @author Zack Pollard
*/
public interface UserProfilePhotos {
/**
* Get the total amount of photos this user has
*
* @return Amount of photos
*/
int getTotalCount();
/**
* Gets an array containing all of the Photos that this User has
* To download the photo you can get it down to a single PhotoSize object then call
* PhotoSize#downloadFile(TelegramBot, File)
*
* @return An array of arrays of PhotoSize objects
*/
PhotoSize[][] getPhotos();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy