Retrieve the chat message.

@return array
548172
public function getMessages()
    {
        // replace bot's name for group chats and special characters that might be sent from Web Skype
        $pattern = '/<at id=(.*?)at>[^(\x20-\x7F)\x0A]*\s*/';
        $message = preg_replace($pattern, '', $this->event->get('text'));

        if (empty($this->messages)) {
            $this->messages = [
                new IncomingMessage($message, $this->event->get('from')['id'], $this->event->get('conversation')['id'],
                    $this->payload),
            ];
        }

        return $this->messages;
    }
1035692
public function getChat()
    {
        switch ($this->detectType())
        {
            case 'message':
                return $this->getMessage()->getChat();
            case 'callback_query':
                return $this->getCallbackQuery()->getMessage()->getChat();
            default:
                // nothing to return
                return null;
        }
    }
1188406
public function textMessages()
    {
        $result = [];
        foreach ($this->entries as $entry) {
            foreach ($entry->messages as $entryMessage) {
                if ($entryMessage->isMessage) {
                    if ($entryMessage->message->isText && !$entryMessage->message->isQuickReply) {
                        $result[] = $entryMessage;
                    }
                }
            }
        }
        return collect($result);
    }
687776
public function getParams(): array
    {
        $params = [];

        if ($this->chatId !== null) {
            $params['chat_id'] = $this->chatId;
        }

        if ($this->messageId) {
            $params['message_id'] = $this->messageId;
        }

        if ($this->inlineMessageId !== null) {
            $params['inline_message_id'] = $this->inlineMessageId;
        }

        return $params;
    }
768535
protected function _getApplicationMessages()
    {
        $messages       = $this->_application->getMessageQueue();
        $descriptions   = array();

        foreach($messages as $message)
        {
            if($message['type'] == 'error') {
                $descriptions[] = $message['message'];
            }
        }

        return $descriptions;
    }
950670
public function getParams(): array
    {
        $params = [
            'chat_id' => $this->chatId,
            'video' => $this->video,
        ];

        $params = array_merge($params, $this->buildJsonAttributes([
            'duration' => $this->duration,
            'width' => $this->width,
            'height' => $this->height,
            'disable_notification' => $this->disableNotification,
            'reply_to_message_id' => $this->replyToMessageId
        ]));

        return $params;
    }
591805
public function getParams(): array
    {
        $params = [
            'chat_id' => $this->chatId,
            'from_chat_id' => $this->fromChatId,
            'message_id' => $this->messageId
        ];

        if ($this->disableNotification) {
            $params['disable_notification'] = (int)$this->disableNotification;
        }

        return $params;
    }
575553
public function getChat()
    {
        switch ($this->detectType()) {
            case 'message':
                return $this->getMessage()->getChat();
            case 'edited_message':
                return $this->getEditedMessage()->getChat();
            case 'channel_post':
                return $this->getChannelPost()->getChat();
            case 'callback_query':
                return $this->getCallbackQuery()->getMessage()->getChat();
            default:
                // nothing to return
                return;
        }
    }
53029
public function getMessages()
    {
        $messages = $this->fromPrevious;

        foreach ($this->forNow as $key => $values) {
            if (!isset($messages[$key])) {
                $messages[$key] = [];
            }

            foreach ($values as $value) {
                array_push($messages[$key], $value);
            }
        }

        return $messages;
    }
839287
protected function getMessages()
    {
        if (! $this->_messenger instanceof \MUtil_Controller_Action_Helper_FlashMessenger) {
            $this->_messenger = new \MUtil_Controller_Action_Helper_FlashMessenger();
        }

        return $this->_messenger->getMessagesOnly();
    }
754688
public function getData()
    {
        return [
            'recipient' => $this->user_ref ? ['user_ref' => $this->recipient] : ['id' => $this->recipient],
            'message' => [
                'text' => $this->text
            ],
            'tag'=> $this->tag,
            'notification_type'=> $this->notification_type,
            'messaging_type' => $this->messaging_type
        ];
    }
737860
protected function textMessageToArray()
    {
        $message = [];
        $message['recipient'] = $this->recipient;
        $message['notification_type'] = $this->notificationType;
        $message['message']['text'] = $this->text;

        return $message;
    }
83811
private function getMessages()
    {
        $messages = [];
        $content = '';
        fseek($this->fh, 0);
        while (!feof($this->fh)) {
            $content .= fgets($this->fh);
        }
        if ($content) {
            $messages = json_decode($content, true);
        }
        return $messages;
    }
951931
public function getAll() {
		if ($this->hasAny()) {
			$messages = $_SESSION[self::SESSION_KEY_FLASH];

			$_SESSION[self::SESSION_KEY_FLASH] = [];

			return $messages;
		}
		else {
			return [];
		}
	}
1277551
public function getMessages()
    {
        if ($this->event->get('MsgType') === 'text') {
            $text = $this->event->get('Content');
        } else {
            $text = $this->event->get('Url');
        }

        return [
            new IncomingMessage($text, $this->event->get('FromUserName'),
                $this->event->get('ToUserName'), $this->event),
        ];
    }
422631
public function getMessages()
    {
        $messages = $this->messages;

        foreach ($this->renderers as $renderer) {
            $messages = array_merge($messages, $renderer->getMessages());
        }

        return $messages;
    }
1352842
public function getParams(): array
    {
        $params = [
            'chat_id' => $this->chatId,
            'audio' => $this->audio,
        ];

        if ($this->disableNotification !== null) {
            $params['disable_notification'] = (int)$this->disableNotification;
        }

        if ($this->replyToMessageId) {
            $params['reply_to_message_id'] = $this->replyToMessageId;
        }

        return $params;
    }