This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


The following commit(s) were added to refs/heads/master by this push:
     new 61a9fc2  chore: add headers to telegram-source for symmetry with sink
61a9fc2 is described below

commit 61a9fc2f5b8de7b3c0fcac28f03f9df9120beb0b
Author: nicolaferraro <[email protected]>
AuthorDate: Thu Apr 8 12:00:47 2021 +0200

    chore: add headers to telegram-source for symmetry with sink
---
 telegram-source.kamelet.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/telegram-source.kamelet.yaml b/telegram-source.kamelet.yaml
index c60015f..c438ff9 100644
--- a/telegram-source.kamelet.yaml
+++ b/telegram-source.kamelet.yaml
@@ -35,6 +35,12 @@ spec:
       parameters:
         authorizationToken: "{{authorizationToken}}"
       steps:
+      - set-header:
+          name: chat-id
+          simple: "${header[CamelTelegramChatId]}"
+      - set-header:
+          name: ce-chat-id
+          simple: "${header[CamelTelegramChatId]}"
       - marshal:
           json: {}
       - to: "kamelet:sink"

Reply via email to