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

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

commit 99d5cd18e8a66410f5c0697b6e7aa78f866507b2
Author: Willian Antunes <willian.lima.antu...@gmail.com>
AuthorDate: Tue May 1 16:46:49 2018 -0700

    In order to disable custom keyboard if it's activated
---
 .../telegram/integration/TelegramServiceTest.java       | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git 
a/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/integration/TelegramServiceTest.java
 
b/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/integration/TelegramServiceTest.java
index 4afbdb0..fcd4e43 100644
--- 
a/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/integration/TelegramServiceTest.java
+++ 
b/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/integration/TelegramServiceTest.java
@@ -131,6 +131,23 @@ public class TelegramServiceTest {
         
         service.sendMessage(authorizationToken, msg);        
     }
+    
+    @Test
+    public void testSendMessageDisablingCustomKeyboard() {
+        TelegramService service = TelegramServiceProvider.get().getService();
+        
+        OutgoingTextMessage msg = new OutgoingTextMessage();
+        msg.setChatId(chatId);
+        msg.setText("Your answer was accepted!");
+        
+        ReplyKeyboardMarkup replyMarkup = ReplyKeyboardMarkup.builder()
+                .removeKeyboard(true)
+                .build();
+        
+        msg.setReplyKeyboardMarkup(replyMarkup);
+        
+        service.sendMessage(authorizationToken, msg);        
+    }    
 
     @Test
     public void testSendFull() {

-- 
To stop receiving notification emails like this one, please contact
acosent...@apache.org.

Reply via email to