public abstract class AbilityWebhookBot extends BaseAbilityBot implements org.telegram.telegrambots.meta.generics.WebhookBot
WebhookBot-flavor AbilityBot. It delegates all updates to a TelegramWebhookBot instance.ADMINS, BACKUP, BAN, BLACKLIST, CLAIM, COMMANDS, db, DEFAULT, DEMOTE, PROMOTE, RECOVER, REPORT, sender, silent, UNBAN, USER_ID, USERSexe| Modifier | Constructor and Description |
|---|---|
protected |
AbilityWebhookBot(String botToken,
String botUsername,
String botPath) |
protected |
AbilityWebhookBot(String botToken,
String botUsername,
String botPath,
DBContext db) |
protected |
AbilityWebhookBot(String botToken,
String botUsername,
String botPath,
DBContext db,
DefaultBotOptions botOptions) |
protected |
AbilityWebhookBot(String botToken,
String botUsername,
String botPath,
DefaultBotOptions botOptions) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBotPath() |
org.telegram.telegrambots.meta.api.methods.BotApiMethod |
onWebhookUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update) |
void |
setWebhook(String url,
String publicCertificatePath) |
abilities, admins, backupDB, banUser, blacklist, checkGlobalFlags, claimCreator, commands, creatorId, demoteAdmin, getBotToken, getBotUsername, getUser, getUser, getUserIdSendError, onUpdateReceived, promoteAdmin, recoverDB, replies, reportCommands, unbanUser, userIds, usersdownloadFile, downloadFile, downloadFileAsync, downloadFileAsync, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, getBaseUrl, getOptions, sendApiMethod, sendApiMethodAsyncexecute, executeAsync, getMe, getMeAsync, getWebhookInfo, getWebhookInfoAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBotToken, getBotUsernameprotected AbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db, DefaultBotOptions botOptions)
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db)
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, DefaultBotOptions botOptions)
public org.telegram.telegrambots.meta.api.methods.BotApiMethod onWebhookUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update)
onWebhookUpdateReceived in interface org.telegram.telegrambots.meta.generics.WebhookBotpublic void setWebhook(String url, String publicCertificatePath) throws org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException
setWebhook in interface org.telegram.telegrambots.meta.generics.WebhookBotorg.telegram.telegrambots.meta.exceptions.TelegramApiRequestExceptionpublic String getBotPath()
getBotPath in interface org.telegram.telegrambots.meta.generics.WebhookBotCopyright © 2019. All rights reserved.