package org.telegram.telegrambots.bots; import org.telegram.telegrambots.meta.api.methods.updates.SetWebhook; import org.telegram.telegrambots.meta.exceptions.TelegramApiException; import org.telegram.telegrambots.meta.generics.WebhookBot; import org.telegram.telegrambots.util.WebhookUtils; /** * @author Ruben Bermudez * @version 1.0 * Base abstract class for a bot that will receive updates using a * webhook */ @SuppressWarnings("WeakerAccess") public abstract class TelegramWebhookBot extends DefaultAbsSender implements WebhookBot { public TelegramWebhookBot() { this(new DefaultBotOptions()); } public TelegramWebhookBot(DefaultBotOptions options) { super(options); } @Override public void setWebhook(SetWebhook setWebhook) throws TelegramApiException { WebhookUtils.setWebhook(this, setWebhook); } }