# Read group/channel messages

### Get group or channel messages

To read latest chat messages, send request to [The Graph node URL](https://chatme.gitbook.io/chatme/network-info):

<pre><code><strong>{
</strong>  groupMessages(
    last: 100, 
    skip: 0,
    orderBy: created_at,
    orderDirection: desc,
    where: {
      group_id: "${groupId}",
    }) {
      id
      inner_id
      text
      image
      from_address
      created_at
      reply_message {id, from_address, text, image}
    }
}
</code></pre>

NOTE: Set your *groupId* parameter.

You can modify this query for filter, sort or paginate results. \
Read [GraphQL API documentation](https://thegraph.com/docs/en/querying/graphql-api/) for more details.
