Skip to content

Commit

Permalink
Merge pull request #348 from arassypnov/patch-1
Browse files Browse the repository at this point in the history
If the reply_markup isn't a Keyboard object, this fixes it!

Thanks @arassypnov
  • Loading branch information
noplanman authored Dec 18, 2016
2 parents 904d42d + ae6c3ef commit 20cc1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static function execute($action, array $data = [])
{
//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);
Expand Down

0 comments on commit 20cc1b9

Please sign in to comment.