public class IndividualChatImpl extends Object implements IndividualChat
| Modifier and Type | Method and Description |
|---|---|
static Chat |
createIndividualChat(int chatID,
TelegramBot telegramBot) |
static IndividualChat |
createIndividualChat(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 Chat
|
User |
getPartner()
Gets the User that is in this conversation with the bot
|
Message |
sendMessage(SendableMessage message)
Send any type of SendableMessage to this Chat
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypegetChatAdministrators, getChatMember, getChatMember, getChatMembersCount, leaveChat, sendMessagepublic static IndividualChat createIndividualChat(org.json.JSONObject jsonObject, TelegramBot telegramBot)
public static Chat createIndividualChat(int chatID, TelegramBot telegramBot)
public User getPartner()
IndividualChatgetPartner in interface IndividualChatpublic TelegramBot getBotInstance()
ChatgetBotInstance in interface Chatpublic Message sendMessage(SendableMessage message)
ChatsendMessage in interface Chatmessage - The SendableMessage you want to send to the ChatCopyright © 2017. All rights reserved.