pro.zackpollard.telegrambot.api.user.User 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.TelegramBot;
/**
* @author Zack Pollard
*/
public interface User {
int getId();
/**
* Gets the first name of the user.
*
* @return The users first name, currently can be null due to chat creation of individual chats by ID with no way of getting the users name from telegram servers.
*/
String getFirstName();
String getLastName();
default String getFullName() {
return getFirstName() + " " + getLastName();
}
String getUsername();
UserProfilePhotos getProfilePhotos(TelegramBot telegramBot);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy