pro.zackpollard.telegrambot.api.chat.GroupChat Maven / Gradle / Ivy
package pro.zackpollard.telegrambot.api.chat;
/**
* @author Zack Pollard
*/
public interface GroupChat extends Chat {
/**
* Gets the ChatType of this Chat
*
* @return The ChatType of this Chat
*/
default ChatType getType() {
return ChatType.GROUP;
}
/**
* Used to get whether all of the members in the chat are administrators
*
* @return True if all members are administrators, otherwise False
*/
boolean isAllMembersAreAdministrators();
/**
* This method will kick the User with the specified User ID from the chat if they are currently in it
*
* @param userId The User ID of the User you want to kick from the chat
*
* @return True if the user was kicked, otherwise False
*/
boolean kickChatMember(int userId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy