Merge pull request #937 from addo47/fix-force-reply
Set the proper fields for forceReply method in silent sender
This commit is contained in:
commit
96d3cf187f
@ -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