camel-telegram-sink-kafka-connector sink configuration
Connector Description: Send a message to a Telegram chat by using your Telegram bot as sender. To create a bot, use your Telegram app to contact the @botfather account. This sink supports the following message types: - Standard text messages - PNG images (`Content-Type` must be set to `image/png`) - JPEG images (`Content-Type` must be set to `image/jpeg`) This sink also supports the following message headers: - `text` / `ce-text`: when sending an image, the image caption - `chat-id` / `ce-chatid`: overrides the default chat where messages are sent to
When using camel-telegram-sink-kafka-connector as sink make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-telegram-sink-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this sink connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.telegramsink.CamelTelegramsinkSinkConnector
The camel-telegram-sink sink connector supports 2 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required The token to access your bot on Telegram. You you can obtain it from the Telegram @botfather. |
HIGH |
||
The Chat ID to where you want to send messages by default. |
MEDIUM |
The camel-telegram-sink sink connector has no converters out of the box.
The camel-telegram-sink sink connector has no transforms out of the box.
The camel-telegram-sink sink connector has no aggregation strategies out of the box.