public class DefaultTelegramUpdatesHandler extends Object implements TelegramUpdatesHandler
| Constructor and Description |
|---|
DefaultTelegramUpdatesHandler(@NotNull RequestDispatcher botRequestDispatcher,
@NotNull TelegramBotGlobalProperties globalProperties,
@NotNull MetricsService metricsService) |
| Modifier and Type | Method and Description |
|---|---|
void |
processUpdates(@NotNull String token,
@NotNull com.pengrad.telegrambot.TelegramBot bot,
@NotNull List<com.pengrad.telegrambot.model.Update> updates)
Processes updates with
RequestDispatcher. |
public DefaultTelegramUpdatesHandler(@NotNull
@NotNull RequestDispatcher botRequestDispatcher,
@NotNull
@NotNull TelegramBotGlobalProperties globalProperties,
@NotNull
@NotNull MetricsService metricsService)
public void processUpdates(@NotNull
@NotNull String token,
@NotNull
@NotNull com.pengrad.telegrambot.TelegramBot bot,
@NotNull
@NotNull List<com.pengrad.telegrambot.model.Update> updates)
RequestDispatcher. Sends the processing result to the Telegram.processUpdates in interface TelegramUpdatesHandlertoken - tokenbot - botupdates - telegram updatesCopyright © 2022. All rights reserved.