Class TelegramServiceRestBotAPIAdapter
- java.lang.Object
-
- org.apache.camel.component.telegram.service.TelegramServiceRestBotAPIAdapter
-
- All Implemented Interfaces:
TelegramService
public class TelegramServiceRestBotAPIAdapter extends Object implements TelegramService
Adapts theRestBotAPI
to theTelegramService
interface.
-
-
Constructor Summary
Constructors Constructor Description TelegramServiceRestBotAPIAdapter(org.asynchttpclient.AsyncHttpClient asyncHttpClient, int bufferSize, String telegramBaseUri, String authorizationToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateResult
getUpdates(Long offset, Integer limit, Integer timeoutSeconds)
boolean
removeWebhook()
void
sendMessage(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, OutgoingMessage message)
boolean
setWebhook(String url)
-
-
-
Method Detail
-
getUpdates
public UpdateResult getUpdates(Long offset, Integer limit, Integer timeoutSeconds)
- Specified by:
getUpdates
in interfaceTelegramService
-
setWebhook
public boolean setWebhook(String url)
- 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
-
-