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) boolean
void
sendMessage
(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, OutgoingMessage message) boolean
setWebhook
(String url)
-
Constructor Details
-
TelegramServiceRestBotAPIAdapter
public TelegramServiceRestBotAPIAdapter(HttpClient client, String telegramBaseUri, String authorizationToken, int bufferSize)
-
-
Method Details
-
getUpdates
- Specified by:
getUpdates
in interfaceTelegramService
-
setWebhook
- Specified by:
setWebhook
in interfaceTelegramService
-
removeWebhook
public boolean removeWebhook()- Specified by:
removeWebhook
in interfaceTelegramService
-
sendMessage
public void sendMessage(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, OutgoingMessage message) - Specified by:
sendMessage
in interfaceTelegramService
-