Class ServerlessWebhook
java.lang.Object
org.telegram.telegrambots.updatesreceivers.ServerlessWebhook
- All Implemented Interfaces:
Webhook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerWebhook
(WebhookBot callback) void
setInternalUrl
(String internalUrl) void
setKeyStore
(String keyStore, String keyStorePassword) void
BotApiMethod<?>
updateReceived
(String botPath, Update update)
-
Constructor Details
-
ServerlessWebhook
public ServerlessWebhook()
-
-
Method Details
-
updateReceived
public BotApiMethod<?> updateReceived(String botPath, Update update) throws TelegramApiValidationException - Throws:
TelegramApiValidationException
-
startServer
- Specified by:
startServer
in interfaceWebhook
- Throws:
TelegramApiException
-
registerWebhook
- Specified by:
registerWebhook
in interfaceWebhook
-
setInternalUrl
- Specified by:
setInternalUrl
in interfaceWebhook
-
setKeyStore
- Specified by:
setKeyStore
in interfaceWebhook
- Throws:
TelegramApiException
-