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, registerDefaultAction
clearWebhook, onClosing
downloadFile, downloadFile, downloadFileAsync, downloadFileAsync, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, getBaseUrl, sendApiMethod, sendApiMethodAsync
executeAsync, getMe, getMeAsync, getWebhookInfo, getWebhookInfoAsync
public void sendMessage(Long chatId, String message, hudson.model.Run<?,?> run, hudson.FilePath filePath, hudson.model.TaskListener taskListener) throws IOException, InterruptedException
IOException
InterruptedException
public void sendMessage(String message, hudson.model.Run<?,?> run, hudson.FilePath filePath, hudson.model.TaskListener taskListener) throws IOException, InterruptedException
IOException
InterruptedException
public void processNonCommandUpdate(org.telegram.telegrambots.meta.api.objects.Update update)
processNonCommandUpdate
in class org.telegram.telegrambots.extensions.bots.commandbot.TelegramLongPollingCommandBot
public String getBotToken()
getBotToken
in interface org.telegram.telegrambots.meta.generics.LongPollingBot
getBotToken
in class org.telegram.telegrambots.bots.DefaultAbsSender
public <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.AbsSender
org.telegram.telegrambots.meta.exceptions.TelegramApiException
Copyright © 2016–2019. All rights reserved.