| Modifier and Type | Method and Description |
|---|---|
static TelegramBot |
TelegramBot.login(String authToken)
Use this method to get a new TelegramBot instance with the selected auth token
|
| Modifier and Type | Method and Description |
|---|---|
TelegramBot |
CallbackQuery.getBotInstance()
Gets the TelegramBot instance associated with this CallbackQuery
|
TelegramBot |
Chat.getBotInstance()
Gets the TelegramBot instance associated with this Chat object
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
InlineQuery.answer(TelegramBot telegramBot,
InlineQueryResponse response)
This method allows you to directly answer the Inline Query from this object.
|
default boolean |
InlineQuery.answer(TelegramBot telegramBot,
InlineQueryResult... results)
This method allows you to directly answer the Inline Query from this object.
|
| Modifier and Type | Method and Description |
|---|---|
TelegramBot |
Message.getBotInstance()
Gets the TelegramBot instance associated with this Message object
|
| Modifier and Type | Method and Description |
|---|---|
default File |
File.downloadFile(TelegramBot telegramBot,
File downloadLocation)
Downloads the file to a set location on disk
|
default String |
File.getFileDownloadLink(TelegramBot telegramBot)
Gets the download link for this file
|
| Modifier and Type | Method and Description |
|---|---|
T |
Extension.Provider.create(TelegramBot bot) |
static <T extends Extension> |
Extensions.get(TelegramBot bot,
Class<T> cls) |
| Modifier and Type | Method and Description |
|---|---|
TelegramBot |
ChannelChatImpl.getBotInstance() |
TelegramBot |
SuperGroupChatImpl.getBotInstance() |
TelegramBot |
GroupChatImpl.getBotInstance() |
TelegramBot |
CallbackQueryImpl.getBotInstance() |
TelegramBot |
IndividualChatImpl.getBotInstance() |
| Modifier and Type | Method and Description |
|---|---|
static CallbackQuery |
CallbackQueryImpl.createCallbackQuery(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static ChannelChat |
ChannelChatImpl.createChannelChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static ChannelChat |
ChannelChatImpl.createChannelChat(String username,
TelegramBot telegramBot) |
static Chat |
ChatImpl.createChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static GroupChat |
GroupChatImpl.createGroupChat(int chatID,
TelegramBot telegramBot) |
static GroupChat |
GroupChatImpl.createGroupChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static Chat |
IndividualChatImpl.createIndividualChat(int chatID,
TelegramBot telegramBot) |
static IndividualChat |
IndividualChatImpl.createIndividualChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static SuperGroupChat |
SuperGroupChatImpl.createSuperGroupChat(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static SuperGroupChat |
SuperGroupChatImpl.createSuperGroupChat(long chatID,
TelegramBot telegramBot) |
| Constructor and Description |
|---|
CallbackQueryImpl(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
static GameScoreEditResponse |
GameScoreEditResponseImpl.createGameScoreEditResponse(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
static GameInlineCallbackQuery |
GameInlineCallbackQueryImpl.createGameInlineCallbackQuery(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static InlineCallbackQuery |
InlineCallbackQueryImpl.createInlineCallbackQuery(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
| Constructor and Description |
|---|
GameInlineCallbackQueryImpl(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
InlineCallbackQueryImpl(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
TelegramBot |
MessageImpl.getBotInstance() |
| Modifier and Type | Method and Description |
|---|---|
static GameMessageCallbackQuery |
GameMessageMessageCallbackQueryImpl.createGameCallbackQuery(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static Message |
MessageImpl.createMessage(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static MessageCallbackQuery |
MessageCallbackQueryImpl.createMessageCallbackQuery(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
static Content |
ContentImpl.createContent(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
static PinnedMessageContent |
PinnedMessageContentImpl.createPinnedMessageContent(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
TelegramBot |
UpdateImpl.getBotInstance() |
| Modifier and Type | Method and Description |
|---|---|
static Update |
UpdateImpl.createUpdate(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
| Constructor and Description |
|---|
RequestUpdatesManager(TelegramBot telegramBot,
boolean getPreviousUpdates) |
| Modifier and Type | Method and Description |
|---|---|
static UserProfilePhotos |
UserProfilePhotosImpl.createUserProfilePhotos(long user_id,
TelegramBot telegramBot) |
UserProfilePhotos |
UserImpl.getProfilePhotos(TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
TelegramBot |
UpdateManager.getBotInstance()
Gets the TelegramBot instance that this UpdateManager is responsible for
|
TelegramBot |
Update.getBotInstance()
Gets the TelegramBot instance that is responsible for this Update
|
| Constructor and Description |
|---|
UpdateManager(TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
UserProfilePhotos |
User.getProfilePhotos(TelegramBot telegramBot)
Gets the profile photos for the User
|
Copyright © 2017. All rights reserved.