Package org.teleight.teleightbots.bot
Interface LongPollingTelegramBot
- All Superinterfaces:
TelegramBot
Represents a Telegram bot that uses long polling to receive updates.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull LongPollingTelegramBotcreate(@NotNull String token, @NotNull String username, @NotNull LongPollingBotSettings longPollingSettings) @NotNull LongPollingBotSettingsGets the long polling bot settings.Methods inherited from interface org.teleight.teleightbots.bot.TelegramBot
createMenu, createMenu, execute, getBotMethodExecutor, getBotToken, getBotUsername, getCommandManager, getConversationManager, getEventManager, getExtensionManager, getFileDownloader, getMenuManager, getScheduler, getUpdateProcessor, getUser, getUser, getUser, getUser
-
Method Details
-
create
@Internal @NotNull static @NotNull LongPollingTelegramBot create(@NotNull @NotNull String token, @NotNull @NotNull String username, @NotNull @NotNull LongPollingBotSettings longPollingSettings) -
getBotSettings
Gets the long polling bot settings.- Specified by:
getBotSettingsin interfaceTelegramBot- Returns:
- The long polling bot settings. Can't be null.
-