public class TelegramBot
extends org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
| Constructor and Description |
|---|
TelegramBot(String token,
String name) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Serializable,Method extends org.telegram.telegrambots.api.methods.BotApiMethod<T>> |
execute(Method method) |
String |
getBotToken() |
void |
processNonCommandUpdate(org.telegram.telegrambots.api.objects.Update update) |
protected <T extends Serializable,Method extends org.telegram.telegrambots.api.methods.BotApiMethod<T>> |
sendApiMethodWithProxy(Method method) |
void |
sendMessage(Long chatId,
String message) |
String |
toString() |
deregister, deregisterAll, filter, getBotUsername, getRegisteredCommand, getRegisteredCommands, onUpdateReceived, processInvalidCommandUpdate, register, registerAll, registerDefaultActionclearWebhook, onClosingaddStickerToSet, createNewStickerSet, downloadFile, downloadFile, downloadFileAsync, downloadFileAsync, getBaseUrl, sendApiMethod, sendApiMethodAsync, sendAudio, sendDocument, sendMediaGroup, sendPhoto, sendSticker, sendVideo, sendVideoNote, sendVoice, setChatPhoto, uploadStickerFileanswerCallbackQuery, answerCallbackQueryAsync, answerInlineQuery, answerInlineQueryAsync, answerPreCheckoutQuery, answerPreCheckoutQuery, answerShippingQuery, answerShippingQuery, deleteChatPhoto, deleteChatPhoto, deleteMessage, deleteMessage, deleteWebhook, deleteWebhook, editMessageCaption, editMessageCaptionAsync, editMessageReplyMarkup, editMessageReplyMarkup, editMessageText, editMessageTextAsync, executeAsync, exportChatInviteLink, exportChatInviteLinkAsync, forwardMessage, forwardMessageAsync, getChat, getChatAdministrators, getChatAdministratorsAsync, getChatAsync, getChatMember, getChatMemberAsync, getChatMemberCount, getChatMemberCountAsync, getFile, getFileAsync, getGameHighScores, getGameHighScoresAsync, getMe, getMeAsync, getUserProfilePhotos, getUserProfilePhotosAsync, getWebhookInfo, getWebhookInfoAsync, kickMember, kickMemberAsync, leaveChat, leaveChatAsync, pinChatMessage, pinChatMessage, promoteChatMember, promoteChatMember, restrictChatMember, restrictChatMember, sendChatAction, sendChatActionAsync, sendContact, sendContactAsync, sendGame, sendGameAsync, sendInvoice, sendInvoice, sendLocation, sendLocationAsync, sendMessage, sendMessageAsync, sendVenue, sendVenueAsync, setChatDescription, setChatDescription, setChatTitle, setChatTitle, setGameScore, setGameScoreAsync, unbanMember, unbanMemberAsync, unpinChatMessage, unpinChatMessagepublic void processNonCommandUpdate(org.telegram.telegrambots.api.objects.Update update)
processNonCommandUpdate in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBotpublic String getBotToken()
getBotToken in interface org.telegram.telegrambots.generics.LongPollingBotgetBotToken in class org.telegram.telegrambots.bots.DefaultAbsSenderpublic <T extends Serializable,Method extends org.telegram.telegrambots.api.methods.BotApiMethod<T>> T execute(Method method) throws org.telegram.telegrambots.exceptions.TelegramApiException
execute in class org.telegram.telegrambots.bots.AbsSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionprotected final <T extends Serializable,Method extends org.telegram.telegrambots.api.methods.BotApiMethod<T>> T sendApiMethodWithProxy(Method method) throws org.telegram.telegrambots.exceptions.TelegramApiException
org.telegram.telegrambots.exceptions.TelegramApiExceptionCopyright © 2016–2018. All rights reserved.