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

davsclaus pushed a commit to branch camel-2.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.22.x by this push:
     new 0edb7d2  Removed telegram bot key from doc
0edb7d2 is described below

commit 0edb7d2bdab711ea69439a02c0f1852893ad8839
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jul 18 12:42:32 2018 +0200

    Removed telegram bot key from doc
---
 .../src/main/docs/telegram-component.adoc          | 30 +++++++++++-----------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/components/camel-telegram/src/main/docs/telegram-component.adoc 
b/components/camel-telegram/src/main/docs/telegram-component.adoc
index 8bd6eea..21282d6 100644
--- a/components/camel-telegram/src/main/docs/telegram-component.adoc
+++ b/components/camel-telegram/src/main/docs/telegram-component.adoc
@@ -148,7 +148,7 @@ in Java DSL
 
 [source,java]
 ---------------------------------------------------------
-from("direct:start").to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L");
+from("direct:start").to("telegram:bots/123456789:insertAuthorizationTokenHere");
 ---------------------------------------------------------
 
 or in Spring XML
@@ -157,11 +157,11 @@ or in Spring XML
 ---------------------------------------------
 <route>
     <from uri="direct:start"/>
-    <to 
uri="telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L"/>
+    <to uri="telegram:bots/123456789:insertAuthorizationTokenHere"/>
 <route>
 ---------------------------------------------
 
-The code 
`123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L`
 is the *authorization token* corresponding to the Bot.
+The code `123456789:insertAuthorizationTokenHere` is the *authorization token* 
corresponding to the Bot.
 
 When using the producer endpoint without specifying the *chat id* option, the 
target chat will be identified using information contained in the body or 
headers of the message.
 The following message bodies are allowed for a producer endpoint (messages of 
type `OutgoingXXXMessage` belong to the package 
`org.apache.camel.component.telegram.model`)
@@ -188,7 +188,7 @@ In Java DSL
 
 [source,java]
 ---------------------------------------------------------
-from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
+from("telegram:bots/123456789:insertAuthorizationTokenHere")
 .bean(ProcessorBean.class)
 ---------------------------------------------------------
 
@@ -197,7 +197,7 @@ or in Spring XML
 [source,xml]
 ---------------------------------------------
 <route>
-    <from 
uri="telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L"/>
+    <from uri="telegram:bots/123456789:insertAuthorizationTokenHere"/>
     <bean ref="myBean" />
 <route>
 
@@ -243,9 +243,9 @@ The following is a basic configuration of the chat-bot in 
Java DSL
 
 [source,java]
 ---------------------------------------------------------
-from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
+from("telegram:bots/123456789:insertAuthorizationTokenHere")
 .bean(ChatBotLogic.class)
-.to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L");
+.to("telegram:bots/123456789:insertAuthorizationTokenHere");
 ---------------------------------------------------------
 
 or in Spring XML
@@ -253,9 +253,9 @@ or in Spring XML
 [source,xml]
 ---------------------------------------------
 <route>
-    <from 
uri="telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L"/>
+    <from uri="telegram:bots/123456789:insertAuthorizationTokenHere"/>
     <bean ref="chatBotLogic" />
-    <to 
uri="telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L"/>
+    <to uri="telegram:bots/123456789:insertAuthorizationTokenHere"/>
 <route>
 
 <bean id="chatBotLogic" class="com.example.ChatBotLogic"/>
@@ -293,7 +293,7 @@ First, add the bot to the chat where you want to push 
messages, then run a route
 
 [source,java]
 ---------------------------------------------------------
-from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
+from("telegram:bots/123456789:insertAuthorizationTokenHere")
 .to("log:INFO?showHeaders=true");
 ---------------------------------------------------------
 
@@ -306,7 +306,7 @@ Once you get the chat ID, you can use the following sample 
route to push message
 ---------------------------------------------------------
 from("timer:tick")
 .setBody().constant("Hello")
-to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L?chatId=123456")
+to("telegram:bots/123456789:insertAuthorizationTokenHere?chatId=123456")
 ---------------------------------------------------------
 
 Note that the corresponding URI parameter is simply `chatId`.
@@ -317,7 +317,7 @@ You can customize the user keyboard instead of asking him 
to write an option. `O
 
 [source,java]
 ---------------------------------------------------------
-from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
+from("telegram:bots/123456789:insertAuthorizationTokenHere")
     .process(exchange -> {
 
         OutgoingTextMessage msg = new OutgoingTextMessage();
@@ -344,14 +344,14 @@ 
from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_d
 
         exchange.getIn().setBody(msg);
     })
-    
.to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L");
+    .to("telegram:bots/123456789:insertAuthorizationTokenHere");
 ---------------------------------------------------------
 
 If you want to disable it the next message must have the property 
`removeKeyboard` set on `ReplyKeyboardMarkup` object.
 
 [source,java]
 ---------------------------------------------------------
-from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
+from("telegram:bots/123456789:insertAuthorizationTokenHere")
     .process(exchange -> {
 
         OutgoingTextMessage msg = new OutgoingTextMessage();
@@ -365,5 +365,5 @@ 
from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_d
 
         exchange.getIn().setBody(msg);
     })
-    
.to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L");
+    .to("telegram:bots/123456789:insertAuthorizationTokenHere");
 ---------------------------------------------------------
\ No newline at end of file

Reply via email to