Class DefaultTelegramBot
java.lang.Object
com.github.unafraid.telegrambot.bots.AbstractTelegramBot
com.github.unafraid.telegrambot.bots.DefaultTelegramBot
- All Implemented Interfaces:
org.telegram.telegrambots.longpolling.interfaces.LongPollingUpdateConsumer,org.telegram.telegrambots.meta.generics.TelegramClient
Default Telegram bot implementation, handles all updates and sends notification to registered handlers.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTelegramBot(org.telegram.telegrambots.meta.generics.TelegramClient telegramClient) -
Method Summary
Methods inherited from class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
addHandler, consume, downloadFile, downloadFileAsStream, downloadFileAsStreamAsync, downloadFileAsync, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, getAccessLevelValidator, getAvailableHandlers, getAvailableHandlersForUser, getHandler, getHandlers, processText, removeHandler, setAccessLevelValidator, validateAccessLevelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.telegram.telegrambots.meta.generics.TelegramClient
downloadFile, downloadFileAsStream, downloadFileAsStreamAsync, downloadFileAsync
-
Constructor Details
-
DefaultTelegramBot
public DefaultTelegramBot(org.telegram.telegrambots.meta.generics.TelegramClient telegramClient)
-