Class ServerlessWebhook
java.lang.Object
org.telegram.telegrambots.updatesreceivers.ServerlessWebhook
- All Implemented Interfaces:
Webhook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterWebhook(WebhookBot callback) voidsetInternalUrl(String internalUrl) voidsetKeyStore(String keyStore, String keyStorePassword) voidBotApiMethod<?>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:
startServerin interfaceWebhook- Throws:
TelegramApiException
-
registerWebhook
- Specified by:
registerWebhookin interfaceWebhook
-
setInternalUrl
- Specified by:
setInternalUrlin interfaceWebhook
-
setKeyStore
- Specified by:
setKeyStorein interfaceWebhook- Throws:
TelegramApiException
-