Package org.telegram.abilitybots.api.bot
Class AbilityWebhookBot
- java.lang.Object
-
- org.telegram.telegrambots.meta.bots.AbsSender
-
- org.telegram.telegrambots.bots.DefaultAbsSender
-
- org.telegram.abilitybots.api.bot.BaseAbilityBot
-
- org.telegram.abilitybots.api.bot.AbilityWebhookBot
-
- All Implemented Interfaces:
AbilityExtension,org.telegram.telegrambots.meta.generics.WebhookBot
public abstract class AbilityWebhookBot extends BaseAbilityBot implements org.telegram.telegrambots.meta.generics.WebhookBot
AWebhookBot-flavor AbilityBot. It delegates all updates to aTelegramWebhookBotinstance.- Author:
- Abbas Abou Daya
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbilityWebhookBot(String botToken, String botUsername, String botPath)protectedAbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db)protectedAbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db, AbilityToggle toggle)protectedAbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db, AbilityToggle toggle, DefaultBotOptions botOptions)protectedAbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db, DefaultBotOptions options)protectedAbilityWebhookBot(String botToken, String botUsername, String botPath, AbilityToggle toggle)protectedAbilityWebhookBot(String botToken, String botUsername, String botPath, AbilityToggle toggle, DefaultBotOptions options)protectedAbilityWebhookBot(String botToken, String botUsername, String botPath, DefaultBotOptions botOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBotPath()org.telegram.telegrambots.meta.api.methods.BotApiMethodonWebhookUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update)voidsetWebhook(String url, String publicCertificatePath)-
Methods inherited from class org.telegram.abilitybots.api.bot.BaseAbilityBot
abilities, admins, blacklist, checkGlobalFlags, creatorId, getBotToken, getBotUsername, onUpdateReceived, replies, userIds, users
-
Methods inherited from class org.telegram.telegrambots.bots.DefaultAbsSender
downloadFile, downloadFile, downloadFile, downloadFile, downloadFileAsStream, downloadFileAsStream, downloadFileAsync, downloadFileAsync, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, getBaseUrl, getOptions, sendApiMethod, sendApiMethodAsync
-
Methods inherited from class org.telegram.telegrambots.meta.bots.AbsSender
execute, executeAsync, getMe, getMeAsync, getWebhookInfo, getWebhookInfoAsync
-
-
-
-
Constructor Detail
-
AbilityWebhookBot
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db, AbilityToggle toggle, DefaultBotOptions botOptions)
-
AbilityWebhookBot
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, AbilityToggle toggle, DefaultBotOptions options)
-
AbilityWebhookBot
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db, AbilityToggle toggle)
-
AbilityWebhookBot
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db, DefaultBotOptions options)
-
AbilityWebhookBot
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, DefaultBotOptions botOptions)
-
AbilityWebhookBot
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, AbilityToggle toggle)
-
AbilityWebhookBot
protected AbilityWebhookBot(String botToken, String botUsername, String botPath, DBContext db)
-
-
Method Detail
-
onWebhookUpdateReceived
public org.telegram.telegrambots.meta.api.methods.BotApiMethod onWebhookUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update)
- Specified by:
onWebhookUpdateReceivedin interfaceorg.telegram.telegrambots.meta.generics.WebhookBot
-
setWebhook
public void setWebhook(String url, String publicCertificatePath) throws org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException
- Specified by:
setWebhookin interfaceorg.telegram.telegrambots.meta.generics.WebhookBot- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException
-
getBotPath
public String getBotPath()
- Specified by:
getBotPathin interfaceorg.telegram.telegrambots.meta.generics.WebhookBot
-
-