From 8dc0d6f6d186723da86610807ce0e7ffd698fef6 Mon Sep 17 00:00:00 2001 From: Michael Anstis Date: Tue, 28 Feb 2023 14:13:17 +0000 Subject: [PATCH] Restore required setting for chatId and made documentation clearer. --- kamelets/telegram-sink.kamelet.yaml | 6 ++++-- .../src/main/resources/kamelets/telegram-sink.kamelet.yaml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/kamelets/telegram-sink.kamelet.yaml b/kamelets/telegram-sink.kamelet.yaml index 4a69bdfaa..3ef78f48c 100644 --- a/kamelets/telegram-sink.kamelet.yaml +++ b/kamelets/telegram-sink.kamelet.yaml @@ -47,7 +47,6 @@ spec: - `chat-id` / `ce-chatid`: overrides the default chat where messages are sent to required: - authorizationToken - - chatId type: object properties: authorizationToken: @@ -60,7 +59,10 @@ spec: - urn:camel:group:credentials chatId: title: Chat ID - description: The Chat ID to where you want to send messages by default. Optional if the `chat-id` / `ce-chatid` header is used. + description: |- + The Chat ID to where you want to send messages by default. + + Whilst the Chat ID is not a required Configuration Option it must be provided for every message; either as a Configuration Option or a `chat-id` / `ce-chatid` header. type: string types: out: diff --git a/library/camel-kamelets/src/main/resources/kamelets/telegram-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/telegram-sink.kamelet.yaml index 4a69bdfaa..3ef78f48c 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/telegram-sink.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/telegram-sink.kamelet.yaml @@ -47,7 +47,6 @@ spec: - `chat-id` / `ce-chatid`: overrides the default chat where messages are sent to required: - authorizationToken - - chatId type: object properties: authorizationToken: @@ -60,7 +59,10 @@ spec: - urn:camel:group:credentials chatId: title: Chat ID - description: The Chat ID to where you want to send messages by default. Optional if the `chat-id` / `ce-chatid` header is used. + description: |- + The Chat ID to where you want to send messages by default. + + Whilst the Chat ID is not a required Configuration Option it must be provided for every message; either as a Configuration Option or a `chat-id` / `ce-chatid` header. type: string types: out: