public class SuperGroupChatImpl extends Object implements SuperGroupChat
| Modifier and Type | Method and Description |
|---|---|
static SuperGroupChat |
createSuperGroupChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static SuperGroupChat |
createSuperGroupChat(long chatID,
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.
|
String |
getUsername()
Gets the Username of the SuperGroup that this SuperGroupChat object refers to
|
boolean |
isAllMembersAreAdministrators()
Used to get whether all of the members in the chat are administrators
|
boolean |
kickChatMember(int userId)
This method will kick and ban 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
|
boolean |
unbanChatMember(int userId)
This method will unban a user that was previously banned from the chat
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypegetChatAdministrators, getChatMember, getChatMember, getChatMembersCount, leaveChat, sendMessagepublic static SuperGroupChat createSuperGroupChat(org.json.JSONObject jsonObject, TelegramBot telegramBot)
public static SuperGroupChat createSuperGroupChat(long 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 String getUsername()
SuperGroupChatgetUsername in interface SuperGroupChatpublic boolean isAllMembersAreAdministrators()
GroupChatisAllMembersAreAdministrators in interface GroupChatpublic boolean kickChatMember(int userId)
SuperGroupChatkickChatMember in interface GroupChatkickChatMember in interface SuperGroupChatuserId - The User ID of the User you want to kick from the chatpublic boolean unbanChatMember(int userId)
SuperGroupChatunbanChatMember in interface SuperGroupChatuserId - The ID of the User you want to unbanCopyright © 2017. All rights reserved.