Set the proper fields for forceReply
This commit is contained in:
parent
02fdbec4cc
commit
c453b54bd4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user