Open vsviridov opened 7 years ago
I'm trying to use the ForceReply object in my reply_markup of the sendMessage options. I have to manually do something like
ForceReply
reply_markup
sendMessage
$.sendMessage("Message text...", { reply_markup: JSON.stringify(new ForceReply(true).toJSON()) });
which is pretty silly. either toJSON should serialize correctly (documentation says that return type for this method is string), or sendMessage should correctly serialize provided options.
toJSON
string
I'm trying to use the
ForceReply
object in myreply_markup
of thesendMessage
options. I have to manually do something likewhich is pretty silly. either
toJSON
should serialize correctly (documentation says that return type for this method isstring
), orsendMessage
should correctly serialize provided options.