ChatMe
  • Introduction
  • ChatMe Web Interface
    • Get Started
    • Dashboard
    • Direct Messages
    • Groups & Channels
    • User Account
    • ChatBot
  • Dev Documentation
    • Overview
    • Get Started
    • Direct Messages
      • Read direct messages
      • Send direct messages
    • Groups & Channels
      • Get groups & channels
      • Manage groups & channels
      • Read group/channel messages
      • Send group/channel message
    • User Account
      • Get user account info
      • Update user account
    • Frontend Widgets
    • ChatBot Development
  • Network Info
  • Roadmap
  • Use Cases & Benefits
  • External Links
Powered by GitBook
On this page
  1. Dev Documentation
  2. Groups & Channels

Read group/channel messages

PreviousManage groups & channelsNextSend group/channel message

Last updated 2 years ago

Get group or channel messages

To read latest chat messages, send request to :

{
  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}
    }
}

NOTE: Set your groupId parameter.

You can modify this query for filter, sort or paginate results. Read for more details.

The Graph node URL
GraphQL API documentation