public interface Chat
| Modifier and Type | Method and Description |
|---|---|
TelegramBot |
getBotInstance()
Gets the TelegramBot instance associated with this Chat object
|
default List<ChatMember> |
getChatAdministrators()
Gets a List of ChatMember objects for all the people who are admin in the chat
|
default ChatMember |
getChatMember(long userID)
Gets the ChatMember object for a specific user based on their ID in respect to this chat
|
default ChatMember |
getChatMember(User user)
Gets the ChatMember object for a specific User in respect to this chat
|
default Integer |
getChatMembersCount()
Gets the amount of people in the chat
|
String |
getId()
Gets the ID of this Chat
|
String |
getName()
Gets the name of the Chat
|
ChatType |
getType()
Gets the ChatType of this Chat
|
default boolean |
leaveChat()
If you call this method then the bot will leave this Chat if it is currently in it
|
Message |
sendMessage(SendableMessage message)
Send any type of SendableMessage to this Chat
|
default Message |
sendMessage(String message)
Send a String message to this Chat
|
String getId()
String getName()
ChatType getType()
TelegramBot getBotInstance()
Message sendMessage(SendableMessage message)
message - The SendableMessage you want to send to the Chatdefault Message sendMessage(String message)
message - The String message you want to send to the chatdefault Integer getChatMembersCount()
default List<ChatMember> getChatAdministrators()
default ChatMember getChatMember(User user)
user - The User that you want the ChatMember object fordefault ChatMember getChatMember(long userID)
userID - The ID of the user that you want the ChatMember object fordefault boolean leaveChat()
Copyright © 2017. All rights reserved.