Class TelegramServiceRestBotAPIAdapter
java.lang.Object
org.apache.camel.component.telegram.service.TelegramServiceRestBotAPIAdapter
- All Implemented Interfaces:
TelegramService
Adapts the
RestBotAPI to the TelegramService interface.-
Constructor Summary
ConstructorsConstructorDescriptionTelegramServiceRestBotAPIAdapter(HttpClient client, String telegramBaseUri, String authorizationToken, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptiongetUpdates(Long offset, Integer limit, Integer timeoutSeconds) booleanvoidsendMessage(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, OutgoingMessage message) booleansetWebhook(String url)
-
Constructor Details
-
TelegramServiceRestBotAPIAdapter
public TelegramServiceRestBotAPIAdapter(HttpClient client, String telegramBaseUri, String authorizationToken, int bufferSize)
-
-
Method Details
-
getUpdates
- Specified by:
getUpdatesin interfaceTelegramService
-
setWebhook
- Specified by:
setWebhookin interfaceTelegramService
-
removeWebhook
public boolean removeWebhook()- Specified by:
removeWebhookin interfaceTelegramService
-
sendMessage
public void sendMessage(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, OutgoingMessage message) - Specified by:
sendMessagein interfaceTelegramService
-