From ae6c3ef2066abeec233fac951cc0b6fbef56c5c0 Mon Sep 17 00:00:00 2001 From: arassypnov Date: Fri, 16 Dec 2016 15:54:52 +0300 Subject: [PATCH] Update Request.php --- src/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Request.php b/src/Request.php index 79ebf42ee..5a076c8de 100644 --- a/src/Request.php +++ b/src/Request.php @@ -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);