Class AbilityWebhookBot
Object
BaseAbilityBot
AbilityWebhookBot
- All Implemented Interfaces:
AbilityExtension,LongPollingUpdateConsumer,LongPollingSingleThreadUpdateConsumer,TelegramWebhookBot
A
TelegramWebhookBot-flavor AbilityBot.- Author:
- Abbas Abou Daya
-
Field Summary
Fields inherited from class BaseAbilityBot
ADMINS, BLACKLIST, db, DEFAULT, silent, STATS, telegramClient, USER_ID, USERSFields inherited from interface LongPollingSingleThreadUpdateConsumer
updatesProcessorExecutor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbilityWebhookBot(TelegramClient telegramClient, String botUsername, String botPath) protectedAbilityWebhookBot(TelegramClient telegramClient, String botUsername, String botPath, DBContext db) protectedAbilityWebhookBot(TelegramClient telegramClient, String botUsername, String botPath, DBContext db, AbilityToggle toggle) protectedAbilityWebhookBot(TelegramClient telegramClient, String botUsername, String botPath, AbilityToggle toggle) -
Method Summary
Methods inherited from class BaseAbilityBot
addExtension, addExtensions, addExtensions, admins, allowContinuousText, blacklist, checkGlobalFlags, consume, creatorId, getCommandPrefix, getCommandRegexSplit, getPrivacy, isAdmin, isCreator, isGroupAdmin, isGroupAdmin, onRegister, userIds, usersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LongPollingSingleThreadUpdateConsumer
consumeMethods inherited from interface TelegramWebhookBot
runDeleteWebhook, runSetWebhook
-
Constructor Details
-
AbilityWebhookBot
protected AbilityWebhookBot(TelegramClient telegramClient, String botUsername, String botPath, DBContext db, AbilityToggle toggle) -
AbilityWebhookBot
protected AbilityWebhookBot(TelegramClient telegramClient, String botUsername, String botPath, AbilityToggle toggle) -
AbilityWebhookBot
-
AbilityWebhookBot
-
-
Method Details
-
consumeUpdate
public BotApiMethod<?> consumeUpdate(Update update) - Specified by:
consumeUpdatein interfaceTelegramWebhookBot
-
getBotPath
- Specified by:
getBotPathin interfaceTelegramWebhookBot
-