From c453b54bd41b1c7c349171c9baa996d4ba983b8e Mon Sep 17 00:00:00 2001 From: Abbas Abou Daya Date: Sat, 3 Jul 2021 11:20:42 -0700 Subject: [PATCH] Set the proper fields for forceReply --- .../org/telegram/abilitybots/api/sender/SilentSender.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/sender/SilentSender.java b/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/sender/SilentSender.java index 4c677875..62eef398 100644 --- a/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/sender/SilentSender.java +++ b/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/sender/SilentSender.java @@ -39,7 +39,10 @@ public class SilentSender { SendMessage msg = new SendMessage(); msg.setText(message); msg.setChatId(Long.toString(id)); - msg.setReplyMarkup(new ForceReplyKeyboard()); + ForceReplyKeyboard kb = new ForceReplyKeyboard(); + kb.setForceReply(true); + kb.setSelective(true); + msg.setReplyMarkup(kb); return execute(msg); }