Skip to content

Commit

Permalink
fix carusel payload
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Nov 23, 2022
1 parent 296f92b commit f89c238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -845,11 +845,11 @@ public static function parseMessageForFB($ret, $metaMessageData = array(), $mess
if ($button['type'] == 'url') {
$buttons[] = new Tgallice\FBMessenger\Model\Button\WebUrl($button['content']['name'], $button['content']['payload']);
} elseif ($button['type'] == 'trigger') {
$buttons[] = new Tgallice\FBMessenger\Model\Button\Postback($button['content']['name'], 'trigger__'.$item['content']['payload']. '__' . md5($item['content']['name']) . '__' . $messageId);
$buttons[] = new Tgallice\FBMessenger\Model\Button\Postback($button['content']['name'], 'trigger__'.$button['content']['payload']. '__' . md5($button['content']['name']) . '__' . $messageId);
} elseif ($item['type'] == 'updatechat') {
// This scenario is not supported in general
} else {
$elements[] = new Tgallice\FBMessenger\Model\Button\Postback($item['content']['name'], 'bpayload__'.$item['content']['payload']. '__' . md5($item['content']['name']) . '__' . $messageId );
$elements[] = new Tgallice\FBMessenger\Model\Button\Postback($item['content']['name'], 'bpayload__'.$button['content']['payload']. '__' . md5($button['content']['name']) . '__' . $messageId );
}
}

Expand Down

0 comments on commit f89c238

Please sign in to comment.