[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-09 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16468568#comment-16468568
 ] 

ASF GitHub Bot commented on CAMEL-12478:


oscerd commented on issue #2318: CAMEL-12478: Allow use of custom keyboard
URL: https://github.com/apache/camel/pull/2318#issuecomment-387670017
 
 
   Thanks, this has been merged on master.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Assignee: Andrea Cosentino
>Priority: Major
>  Labels: features
> Fix For: 2.22.0
>
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-09 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16468569#comment-16468569
 ] 

ASF GitHub Bot commented on CAMEL-12478:


oscerd closed pull request #2318: CAMEL-12478: Allow use of custom keyboard
URL: https://github.com/apache/camel/pull/2318
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/components/camel-telegram/src/main/docs/telegram-component.adoc 
b/components/camel-telegram/src/main/docs/telegram-component.adoc
index b90f06c13e8..3ce6891e363 100644
--- a/components/camel-telegram/src/main/docs/telegram-component.adoc
+++ b/components/camel-telegram/src/main/docs/telegram-component.adoc
@@ -310,3 +310,60 @@ 
to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq
 -
 
 Note that the corresponding URI parameter is simply `chatId`.
+
+### Customizing keyboard
+
+You can customize the user keyboard instead of asking him to write an option. 
`OutgoingTextMessage` has the property `ReplyKeyboardMarkup` which can be used 
for such thing.
+
+[source,java]
+-
+from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
+.process(exchange -> {
+
+OutgoingTextMessage msg = new OutgoingTextMessage();
+msg.setText("Choose one option!");
+
+InlineKeyboardButton buttonOptionOneI = InlineKeyboardButton.builder()
+.text("Option One - I").build();
+
+InlineKeyboardButton buttonOptionOneII = InlineKeyboardButton.builder()
+.text("Option One - II").build();
+
+InlineKeyboardButton buttonOptionTwoI = InlineKeyboardButton.builder()
+.text("Option Two - I").build();
+
+ReplyKeyboardMarkup replyMarkup = ReplyKeyboardMarkup.builder()
+.keyboard()
+.addRow(Arrays.asList(buttonOptionOneI, buttonOptionOneII))
+.addRow(Arrays.asList(buttonOptionTwoI))
+.close()
+.oneTimeKeyboard(true)
+.build();
+
+msg.setReplyKeyboardMarkup(replyMarkup);
+
+exchange.getIn().setBody(msg);
+})
+
.to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L");
+-
+
+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")
+.process(exchange -> {
+
+OutgoingTextMessage msg = new OutgoingTextMessage();
+msg.setText("Your answer was accepted!");
+
+ReplyKeyboardMarkup replyMarkup = ReplyKeyboardMarkup.builder()
+.removeKeyboard(true)
+.build();
+
+msg.setReplyKeyboardMarkup(replyMarkup);
+
+exchange.getIn().setBody(msg);
+})
+
.to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L");
+-
\ No newline at end of file
diff --git 
a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/InlineKeyboardButton.java
 
b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/InlineKeyboardButton.java
new file mode 100644
index 000..f3f2b4fa9f9
--- /dev/null
+++ 
b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/InlineKeyboardButton.java
@@ -0,0 +1,69 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package 

[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-09 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16468570#comment-16468570
 ] 

ASF GitHub Bot commented on CAMEL-12478:


Github user oscerd closed the pull request at:

https://github.com/apache/camel/pull/2318


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Assignee: Andrea Cosentino
>Priority: Major
>  Labels: features
> Fix For: 2.22.0
>
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-08 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16467090#comment-16467090
 ] 

ASF GitHub Bot commented on CAMEL-12478:


oscerd commented on issue #2318: CAMEL-12478: Allow use of custom keyboard
URL: https://github.com/apache/camel/pull/2318#issuecomment-387330367
 
 
   LGTM now, @WillemJiang would you like to merge?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-07 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16465859#comment-16465859
 ] 

ASF GitHub Bot commented on CAMEL-12478:


nicolaferraro commented on a change in pull request #2318: CAMEL-12478: Allow 
use of custom keyboard
URL: https://github.com/apache/camel/pull/2318#discussion_r186410755
 
 

 ##
 File path: components/camel-telegram/src/main/docs/telegram-component.adoc
 ##
 @@ -310,3 +310,60 @@ 
to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq
 -
 
 Note that the corresponding URI parameter is simply `chatId`.
+
+### Customizing keyboard
+
+You can customize the user keyboard instead of asking him to write an option. 
`OutgoingTextMessage` has the property `ReplyKeyboardMarkup` which can be used 
for such thing.
+
+[source,java]
+-
+from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
 
 Review comment:
   So it should be a random one I've generated (I hope :smile:)


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-07 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16465679#comment-16465679
 ] 

ASF GitHub Bot commented on CAMEL-12478:


willianantunes commented on a change in pull request #2318: CAMEL-12478: Allow 
use of custom keyboard
URL: https://github.com/apache/camel/pull/2318#discussion_r186374218
 
 

 ##
 File path: components/camel-telegram/src/main/docs/telegram-component.adoc
 ##
 @@ -310,3 +310,60 @@ 
to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq
 -
 
 Note that the corresponding URI parameter is simply `chatId`.
+
+### Customizing keyboard
+
+You can customize the user keyboard instead of asking him to write an option. 
`OutgoingTextMessage` has the property `ReplyKeyboardMarkup` which can be used 
for such thing.
+
+[source,java]
+-
+from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
 
 Review comment:
   I used the same access key available in the documentation. See other 
examples on it. This key is not mine.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-07 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16465673#comment-16465673
 ] 

ASF GitHub Bot commented on CAMEL-12478:


WillemJiang commented on a change in pull request #2318: CAMEL-12478: Allow use 
of custom keyboard
URL: https://github.com/apache/camel/pull/2318#discussion_r186372706
 
 

 ##
 File path: components/camel-telegram/src/main/docs/telegram-component.adoc
 ##
 @@ -310,3 +310,60 @@ 
to("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq
 -
 
 Note that the corresponding URI parameter is simply `chatId`.
+
+### Customizing keyboard
+
+You can customize the user keyboard instead of asking him to write an option. 
`OutgoingTextMessage` has the property `ReplyKeyboardMarkup` which can be used 
for such thing.
+
+[source,java]
+-
+from("telegram:bots/123456789:AAE_dLq5C19xwGjw3yiC2NvEUrZcejK21-Q987654321:AAE_dLq5C19xwOmg5yiC2NvSrkT3wj5Q1-L")
 
 Review comment:
   Please make sure you don't use a private bots, as the access key may be 
abused.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-06 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16465019#comment-16465019
 ] 

ASF GitHub Bot commented on CAMEL-12478:


WillemJiang commented on a change in pull request #2318: CAMEL-12478: Allow use 
of custom keyboard
URL: https://github.com/apache/camel/pull/2318#discussion_r186275875
 
 

 ##
 File path: 
components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/InlineKeyboardButton.java
 ##
 @@ -0,0 +1,53 @@
+package org.apache.camel.component.telegram.model;
 
 Review comment:
   Please add the License header here.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-06 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16465020#comment-16465020
 ] 

ASF GitHub Bot commented on CAMEL-12478:


WillemJiang commented on a change in pull request #2318: CAMEL-12478: Allow use 
of custom keyboard
URL: https://github.com/apache/camel/pull/2318#discussion_r186275882
 
 

 ##
 File path: 
components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/ReplyKeyboardMarkup.java
 ##
 @@ -0,0 +1,121 @@
+package org.apache.camel.component.telegram.model;
 
 Review comment:
   License header please.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-05 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16464775#comment-16464775
 ] 

ASF GitHub Bot commented on CAMEL-12478:


GitHub user willianantunes opened a pull request:

https://github.com/apache/camel/pull/2318

CAMEL-12478: Allow use of custom keyboard

As described [here](https://issues.apache.org/jira/browse/CAMEL-12478), it 
will permit the usage of custom keyboard in order to increase the interaction 
with the user as it's a lot easier to select an option instead of ask the user 
writing one.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/willianantunes/camel telegram-custom-keyboard

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/camel/pull/2318.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2318


commit 745f15f33158a9e57f8c5cacd97dfd8ebef2d62b
Author: Willian Antunes 
Date:   2018-05-01T23:16:58Z

Test to cover custom keyboard

commit 0c2a18ad55ad37d79caee29561e95e76e9b2b961
Author: Willian Antunes 
Date:   2018-05-01T23:17:55Z

Updated client to be more dynamic (JSON instead of FORM)

commit 11dfa490dadc8401f758487db24436b56497011a
Author: Willian Antunes 
Date:   2018-05-01T23:18:38Z

New/updated models to comply with JSON/API requirements

commit 98fe1d38703f2f076ebbffbdb91f96bd2bcb091a
Author: Willian Antunes 
Date:   2018-05-01T23:46:49Z

In order to disable custom keyboard if it's activated

commit 70d81f9f0e3059883bac578295c4d8561173c47d
Author: Willian Antunes 
Date:   2018-05-05T13:18:47Z

OutgoingTextMessage builder and a test considering producer situation




> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-05 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16464774#comment-16464774
 ] 

ASF GitHub Bot commented on CAMEL-12478:


willianantunes opened a new pull request #2318: CAMEL-12478: Allow use of 
custom keyboard
URL: https://github.com/apache/camel/pull/2318
 
 
   As described [here](https://issues.apache.org/jira/browse/CAMEL-12478), it 
will permit the usage of custom keyboard in order to increase the interaction 
with the user as it's a lot easier to select an option instead of ask the user 
writing one.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12478) camel-telegram - Allow use of custom keyboard

2018-05-05 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16464776#comment-16464776
 ] 

ASF GitHub Bot commented on CAMEL-12478:


willianantunes commented on issue #2318: CAMEL-12478: Allow use of custom 
keyboard
URL: https://github.com/apache/camel/pull/2318#issuecomment-386806911
 
 
   I separated in 5 commits, but when the review is done I should probably 
squash them up in one, right?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> camel-telegram - Allow use of custom keyboard
> -
>
> Key: CAMEL-12478
> URL: https://issues.apache.org/jira/browse/CAMEL-12478
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-telegram
>Reporter: Willian Antunes
>Priority: Major
>  Labels: features
> Attachments: SNAG-0180.jpg
>
>
> The component as we have nowadays does not support configuration of custom 
> keyboard, it only makes use of the standard one.
> The method [sendMessage|https://core.telegram.org/bots/api#sendmessage] has 
> the field _reply_markup_ which allow the use of 
> [ReplyKeyboardMarkup|https://core.telegram.org/bots/api#replykeyboardmarkup] 
> to customize the standard keyboard.
> Acceptance Criteria:
>  * Send message with custom keyboard to interact with the bot using its 
> buttons.
>  * Disable custom keyboard when is required during chat conversation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)