Skip to content

Commit

Permalink
correct issue #69
Browse files Browse the repository at this point in the history
  • Loading branch information
Khodl committed Aug 28, 2017
1 parent 1a498fd commit 7a00cfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Model/Callback/MessageEcho.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ public function getMetadata()
*/
public static function create(array $payload)
{
$appId = $payload['app_id'] ?? null;
$metadata = $payload['metadata'] ?? null;
$text = $payload['text'] ?? null;
$quickReply = $payload['quick_reply']['payload'] ?? null;
$attachments = $payload['attachments'] ?? [];

return new static(true, $payload['app_id'], $payload['mid'], $payload['seq'], $metadata, $text, $quickReply, $attachments);
return new static(true, $appId, $payload['mid'], $payload['seq'], $metadata, $text, $quickReply, $attachments);
}
}

0 comments on commit 7a00cfb

Please sign in to comment.