From d12326b236b759460e70eb249dcdf859a16cac17 Mon Sep 17 00:00:00 2001 From: Nguyen Dat Date: Sat, 9 Sep 2017 13:07:11 +0700 Subject: [PATCH] Fix phone_number button template (#21) * Fix phone_number button template * update styleCI --- src/Extensions/ElementButton.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extensions/ElementButton.php b/src/Extensions/ElementButton.php index 3a91b50..94f89f6 100644 --- a/src/Extensions/ElementButton.php +++ b/src/Extensions/ElementButton.php @@ -150,7 +150,7 @@ public function toArray() $buttonArray['title'] = $this->title; } - if ($this->type === self::TYPE_POSTBACK) { + if ($this->type === self::TYPE_POSTBACK || $this->type === self::TYPE_CALL) { $buttonArray['payload'] = $this->payload; } else { $buttonArray['url'] = $this->url;