| Modifier and Type | Method and Description |
|---|---|
static GroupChat |
createGroupChat(int chatID,
TelegramBot telegramBot) |
static GroupChat |
createGroupChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
TelegramBot |
getBotInstance()
Gets the TelegramBot instance associated with this Chat object
|
String |
getId()
Gets the ID of this Chat
|
String |
getName()
Gets the name of the group chat.
|
boolean |
isAllMembersAreAdministrators()
Used to get whether all of the members in the chat are administrators
|
boolean |
kickChatMember(int userId)
This method will kick the User with the specified User ID from the chat if they are currently in it
|
Message |
sendMessage(SendableMessage message)
Send any type of SendableMessage to this Chat
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChatAdministrators, getChatMember, getChatMember, getChatMembersCount, leaveChat, sendMessagepublic static GroupChat createGroupChat(org.json.JSONObject jsonObject, TelegramBot telegramBot)
public static GroupChat createGroupChat(int chatID, TelegramBot telegramBot)
public String getName()
public TelegramBot getBotInstance()
ChatgetBotInstance in interface Chatpublic Message sendMessage(SendableMessage message)
ChatsendMessage in interface Chatmessage - The SendableMessage you want to send to the Chatpublic boolean isAllMembersAreAdministrators()
GroupChatisAllMembersAreAdministrators in interface GroupChatpublic boolean kickChatMember(int userId)
GroupChatkickChatMember in interface GroupChatuserId - The User ID of the User you want to kick from the chatCopyright © 2017. All rights reserved.