Merge pull request #937 from addo47/fix-force-reply

Set the proper fields for forceReply method in silent sender
This commit is contained in:
Ruben Bermudez 2021-07-04 12:39:06 +01:00 committed by GitHub
commit 96d3cf187f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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