| Modifier and Type | Method and Description |
|---|---|
Chat |
TelegramBot.getChat(long chatID)
A method used to get a Chat object via the chats ID
|
Chat |
TelegramBot.getChat(String chatID)
A method used to get a Chat object via the chats ID
|
| Modifier and Type | Method and Description |
|---|---|
Message |
TelegramBot.sendMessage(Chat chat,
SendableMessage message)
This will send the provided SendableMessage object to the Chat that the Chat object represents
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ChannelChat |
interface |
GroupChat |
interface |
IndividualChat |
interface |
SuperGroupChat |
| Modifier and Type | Method and Description |
|---|---|
Chat |
Message.getChat()
Get the chat this message was sent in
|
Chat |
Message.getChatForwardedFrom()
Gets the chat the message was forwarded from
|
| Modifier and Type | Method and Description |
|---|---|
default Message |
Message.forwardMessage(Chat chat)
A simple method which allows you to forward this Message to another chat simply by providing a Chat object
|
| Modifier and Type | Method and Description |
|---|---|
Chat |
MigrateFromChatEvent.fromChat()
Gets the Chat that was migrated from that triggered this Event
|
Chat |
ParticipantJoinGroupChatEvent.getChat()
Gets the Chat that the User joined that triggered this Event
|
Chat |
ParticipantLeaveGroupChatEvent.getChat()
Gets the Chat that the User left that triggered this Event
|
| Modifier and Type | Method and Description |
|---|---|
Chat |
MessageEvent.getChat()
Gets the Chat that this Message is related to
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChannelChatImpl |
class |
GroupChatImpl |
class |
IndividualChatImpl |
class |
SuperGroupChatImpl |
| Modifier and Type | Method and Description |
|---|---|
static Chat |
ChatImpl.createChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static Chat |
IndividualChatImpl.createIndividualChat(int chatID,
TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
Chat |
MessageImpl.getChat()
Get the chat this message was sent in
|
Chat |
MessageImpl.getChatForwardedFrom()
Gets the chat the message was forwarded from
|
Copyright © 2017. All rights reserved.