public class ChannelChatImpl extends Object implements ChannelChat
| Modifier and Type | Method and Description |
|---|---|
static ChannelChat |
createChannelChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static ChannelChat |
createChannelChat(String username,
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
|
String |
getUsername()
Gets the Username of the Channel that this ChannelChat object refers to
|
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 ChannelChat createChannelChat(org.json.JSONObject jsonObject, TelegramBot telegramBot)
public static ChannelChat createChannelChat(String username, TelegramBot telegramBot)
public String getUsername()
ChannelChatgetUsername in interface ChannelChatpublic 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.