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 void
registerWebhook(WebhookBot callback)
void
setInternalUrl(String internalUrl)
void
setKeyStore(String keyStore, String keyStorePassword)
void
startServer()
-
-
-
Method Detail
-
setInternalUrl
public void setInternalUrl(String internalUrl)
- Specified by:
setInternalUrl
in interfaceWebhook
-
setKeyStore
public void setKeyStore(String keyStore, String keyStorePassword) throws TelegramApiException
- Specified by:
setKeyStore
in interfaceWebhook
- Throws:
TelegramApiException
-
registerWebhook
public void registerWebhook(WebhookBot callback)
- Specified by:
registerWebhook
in interfaceWebhook
-
startServer
public void startServer() throws TelegramApiException
- Specified by:
startServer
in interfaceWebhook
- Throws:
TelegramApiException
-
-