Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit 3dc62f5

Browse files
author
Marian ANDRE
committed
[UPD] Improvement
1 parent 69f74a6 commit 3dc62f5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/apis/resources/Conversation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct($token, $responseBody)
1818
$this->source = $responseBody->source;
1919
$this->replies = $responseBody->replies;
2020
$this->action = $responseBody->action;
21-
$this->nextActions = $responseBody->next_actions;
21+
$this->next_actions = $responseBody->next_actions;
2222
$this->memory = $responseBody->memory;
2323
$this->entities = $responseBody->entities;
2424
$this->intents = $responseBody->intents;

src/apis/resources/Message.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ public function __construct($token, $body)
1818
$this->content = $response->message->attachment->content;
1919
$this->type = $response->message->attachment->type;
2020
$this->conversationId = $response->message->conversation;
21+
$this->recastToken = $token;
22+
$this->chatId = $response->chatId;
2123
$this->senderId = $response->senderId;
24+
$this->attachment = $response->message->attachment;
2225

2326
$this->_messageStack = [];
2427
}

0 commit comments

Comments
 (0)