Set the proper fields for forceReply

This commit is contained in:
Abbas Abou Daya 2021-07-03 11:20:42 -07:00
parent 02fdbec4cc
commit c453b54bd4

View File

@ -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);
}