Class DefaultWebhook
- java.lang.Object
-
- org.telegram.telegrambots.updatesreceivers.DefaultWebhook
-
-
Constructor Summary
Constructors Constructor Description DefaultWebhook()
-
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()
-
-
-
Method Detail
-
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
-
registerWebhook
public void registerWebhook(WebhookBot callback)
- Specified by:
registerWebhookin interfaceWebhook
-
startServer
public void startServer() throws TelegramApiException- Specified by:
startServerin interfaceWebhook- Throws:
TelegramApiException
-
-