We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, Could you please help me to know how to add subtitle for generictemplate?
The text was updated successfully, but these errors were encountered:
Hi, Subtitle is in new Element($title, $subtitle) or $generic->addElement($title, $subtitle)
new Element($title, $subtitle)
$generic->addElement($title, $subtitle)
description equal to subtitle.
$generic = new GenericTemplate($message->getSender()); $defaultButton = new UrlButton(null, 'https://developers.facebook.com/docs/messenger-platform/send-api-reference/list-template'); $generic ->addElement('First item', 'description') ->buttons() ->addPostBackButton('First Button') ->addWebButton('facebook', 'https://facebook.com'); $generic->addElement('Second item', 'description') ->buttons() ->addPostBackButton('Second Button') ->addWebButton('google', 'http://www.google.com') ->addShareButton(); $this->send($generic);
Sorry, something went wrong.
No branches or pull requests
Hi, Could you please help me to know how to add subtitle for generictemplate?
The text was updated successfully, but these errors were encountered: