Skip to content

Instantly share code, notes, and snippets.

@flexgrip
Created October 4, 2018 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flexgrip/1b544def8c6a23af4f93abc1441f6477 to your computer and use it in GitHub Desktop.
Save flexgrip/1b544def8c6a23af4f93abc1441f6477 to your computer and use it in GitHub Desktop.
Botman Messenger Webview
<?php
$template = ButtonTemplate::create($message->attachment->payload->text);
Log::info('Inside the button template1';
$template->addButton(
ElementButton::create($btn->title)
->url(
$webview_url.'/adAudit/'.$this->optin->id.'/'.$delivery->fresh()->uuid
)
->heightRatio(ElementButton::RATIO_FULL)
->enableExtensions());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment