public class TelegramBot
extends org.telegram.telegrambots.extensions.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.meta.api.methods.BotApiMethod<T>> |
execute(Method method) |
String |
getBotToken() |
void |
processNonCommandUpdate(org.telegram.telegrambots.meta.api.objects.Update update) |
void |
sendMessage(Long chatId,
String message) |
void |
sendMessage(Long chatId,
String message,
hudson.model.Run<?,?> run,
hudson.FilePath filePath,
hudson.model.TaskListener taskListener) |
void |
sendMessage(String message,
hudson.model.Run<?,?> run,
hudson.FilePath filePath,
hudson.model.TaskListener taskListener) |
String |
toString() |
deregister, deregisterAll, filter, getBotUsername, getRegisteredCommand, getRegisteredCommands, onUpdateReceived, processInvalidCommandUpdate, register, registerAll, registerDefaultActionclearWebhook, onClosingdownloadFile, downloadFile, downloadFileAsync, downloadFileAsync, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, getBaseUrl, sendApiMethod, sendApiMethodAsyncexecuteAsync, getMe, getMeAsync, getWebhookInfo, getWebhookInfoAsyncpublic void sendMessage(Long chatId, String message, hudson.model.Run<?,?> run, hudson.FilePath filePath, hudson.model.TaskListener taskListener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void sendMessage(String message, hudson.model.Run<?,?> run, hudson.FilePath filePath, hudson.model.TaskListener taskListener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void processNonCommandUpdate(org.telegram.telegrambots.meta.api.objects.Update update)
processNonCommandUpdate in class org.telegram.telegrambots.extensions.bots.commandbot.TelegramLongPollingCommandBotpublic String getBotToken()
getBotToken in interface org.telegram.telegrambots.meta.generics.LongPollingBotgetBotToken in class org.telegram.telegrambots.bots.DefaultAbsSenderpublic <T extends Serializable,Method extends org.telegram.telegrambots.meta.api.methods.BotApiMethod<T>> T execute(Method method) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
execute in class org.telegram.telegrambots.meta.bots.AbsSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionCopyright © 2016–2019. All rights reserved.