Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Replies Error #1

Open
mrka124 opened this issue Mar 23, 2017 · 0 comments
Open

Quick Replies Error #1

mrka124 opened this issue Mar 23, 2017 · 0 comments

Comments

@mrka124
Copy link

mrka124 commented Mar 23, 2017

Hey, I found error at Quick Replies code
Here is your's

public function createQuickReply($text, $quickReplies) {
if (is_array($quickReplies)) {
$this->response['text'] = $text;
$this->response['quick_replies'] = $quickReplies;
return TRUE;
}

    return FALSE;
}

Here is fixed:

public function createQuickReply($text, $quickReplies) {
if (is_array($quickReplies)) {
$this->response[] = array(
'text' => $text,
'quick_replies' => $quickReplies
);
return TRUE;
}

    return FALSE;
}

Please check this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant