Skip to content

Commit

Permalink
Merge pull request #70 from Khodl/master
Browse files Browse the repository at this point in the history
correct issue #69
  • Loading branch information
ker0x authored Aug 29, 2017
2 parents 1a498fd + 7a00cfb commit 38a4366
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 38a4366

Please sign in to comment.