Skip to content

Commit

Permalink
Update Request.php
Browse files Browse the repository at this point in the history
  • Loading branch information
arassypnov authored Dec 16, 2016
1 parent 904d42d commit ae6c3ef
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 ae6c3ef

Please sign in to comment.