All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pro.zackpollard.telegrambot.api.user.User Maven / Gradle / Ivy

There is a newer version: 1.6.5
Show newest version
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