Class ServerlessWebhook
- java.lang.Object
-
- org.telegram.telegrambots.updatesreceivers.ServerlessWebhook
-
-
Constructor Summary
Constructors Constructor Description ServerlessWebhook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterWebhook(WebhookBot callback)voidsetInternalUrl(String internalUrl)voidsetKeyStore(String keyStore, String keyStorePassword)voidstartServer()BotApiMethod<?>updateReceived(String botPath, Update update)
-
-
-
Method Detail
-
updateReceived
public BotApiMethod<?> updateReceived(String botPath, Update update) throws TelegramApiValidationException
- Throws:
TelegramApiValidationException
-
startServer
public void startServer() throws TelegramApiException- Specified by:
startServerin interfaceWebhook- Throws:
TelegramApiException
-
registerWebhook
public void registerWebhook(WebhookBot callback)
- Specified by:
registerWebhookin interfaceWebhook
-
setInternalUrl
public void setInternalUrl(String internalUrl)
- Specified by:
setInternalUrlin interfaceWebhook
-
setKeyStore
public void setKeyStore(String keyStore, String keyStorePassword) throws TelegramApiException
- Specified by:
setKeyStorein interfaceWebhook- Throws:
TelegramApiException
-
-