public interface WebhookBot
| Modifier and Type | Method and Description |
|---|---|
String |
getBotPath()
Gets in the url for the webhook
|
String |
getBotToken()
Gets bot token to access Telegram API
|
String |
getBotUsername()
Gets bot username of this bot
|
BotApiMethod |
onWebhookUpdateReceived(Update update)
This method is called when receiving updates via webhook
|
void |
setWebhook(String url,
String publicCertificatePath)
Execute setWebhook method to set up the url of the webhook
|
BotApiMethod onWebhookUpdateReceived(Update update)
update - Update receivedString getBotUsername()
String getBotToken()
void setWebhook(String url, String publicCertificatePath) throws TelegramApiRequestException
url - Url for the webhookpublicCertificatePath - Path to the public key certificate of the webhookTelegramApiRequestException - In case of error executing the requestString getBotPath()
Copyright © 2018. All rights reserved.