Commit 20cc1b9c authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Merge pull request #348 from arassypnov/patch-1

If the reply_markup isn't a Keyboard object, this fixes it!

Thanks @arassypnov 
parents 904d42d3 ae6c3ef2
......@@ -204,7 +204,7 @@ class Request
{
//Fix so that the keyboard markup is a string, not an object
if (isset($data['reply_markup'])) {
$data['reply_markup'] = (string)$data['reply_markup'];
$data['reply_markup'] = json_encode($data['reply_markup']);
}
$request_params = self::setUpRequestParams($data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment