mirror of
https://github.com/openvk/openvk
synced 2024-11-14 02:59:12 +03:00
parent
c8b154d87a
commit
4482661848
2 changed files with 5 additions and 0 deletions
|
@ -49,10 +49,12 @@ final class Messages extends VKAPIRequestHandler
|
||||||
$rMsg->read_state = 1;
|
$rMsg->read_state = 1;
|
||||||
$rMsg->out = (int) ($message->getSender()->getId() === $this->getUser()->getId());
|
$rMsg->out = (int) ($message->getSender()->getId() === $this->getUser()->getId());
|
||||||
$rMsg->body = $message->getText(false);
|
$rMsg->body = $message->getText(false);
|
||||||
|
$rMsg->text = $message->getText(false);
|
||||||
$rMsg->emoji = true;
|
$rMsg->emoji = true;
|
||||||
|
|
||||||
if($preview_length > 0)
|
if($preview_length > 0)
|
||||||
$rMsg->body = ovk_proc_strtr($rMsg->body, $preview_length);
|
$rMsg->body = ovk_proc_strtr($rMsg->body, $preview_length);
|
||||||
|
$rMsg->text = ovk_proc_strtr($rMsg->text, $preview_length);
|
||||||
|
|
||||||
$items[] = $rMsg;
|
$items[] = $rMsg;
|
||||||
}
|
}
|
||||||
|
@ -192,6 +194,7 @@ final class Messages extends VKAPIRequestHandler
|
||||||
$lastMessagePreview->read_state = 1;
|
$lastMessagePreview->read_state = 1;
|
||||||
$lastMessagePreview->out = (int) ($lastMessage->getSender()->getId() === $this->getUser()->getId());
|
$lastMessagePreview->out = (int) ($lastMessage->getSender()->getId() === $this->getUser()->getId());
|
||||||
$lastMessagePreview->body = $lastMessage->getText(false);
|
$lastMessagePreview->body = $lastMessage->getText(false);
|
||||||
|
$lastMessagePreview->text = $lastMessage->getText(false);
|
||||||
$lastMessagePreview->emoji = true;
|
$lastMessagePreview->emoji = true;
|
||||||
|
|
||||||
if($extended == 1) {
|
if($extended == 1) {
|
||||||
|
@ -248,6 +251,7 @@ final class Messages extends VKAPIRequestHandler
|
||||||
$rMsg->read_state = 1;
|
$rMsg->read_state = 1;
|
||||||
$rMsg->out = (int) ($msgU->sender_id === $this->getUser()->getId());
|
$rMsg->out = (int) ($msgU->sender_id === $this->getUser()->getId());
|
||||||
$rMsg->body = $message->getText(false);
|
$rMsg->body = $message->getText(false);
|
||||||
|
$rMsg->text = $message->getText(false);
|
||||||
$rMsg->emoji = true;
|
$rMsg->emoji = true;
|
||||||
|
|
||||||
$results[] = $rMsg;
|
$results[] = $rMsg;
|
||||||
|
|
|
@ -11,6 +11,7 @@ final class Message
|
||||||
public $out;
|
public $out;
|
||||||
public $title = "";
|
public $title = "";
|
||||||
public $body;
|
public $body;
|
||||||
|
public $text;
|
||||||
public $attachments = [];
|
public $attachments = [];
|
||||||
public $fwd_messages = [];
|
public $fwd_messages = [];
|
||||||
public $emoji;
|
public $emoji;
|
||||||
|
|
Loading…
Reference in a new issue