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);
    }
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);
    }
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 ) ; }
Not Quick Replies
Not Quick Replies