[ 
https://issues.apache.org/jira/browse/CAMEL-12478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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:
[email protected]


> 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)

Reply via email to