Mega icon

Mega

Work with Mega API

Chat Room → Get Messages

AI-generated

Summary

Retrieve messages from a specified chat room with pagination support.

Inputs

  • Chat Room ID (required) — The numeric identifier of the chat room from which messages will be fetched.
  • Page — The page number for paginating through chat room messages; defaults to 1.
  • Per Page — Number of messages to retrieve per page, with a maximum of 50; defaults to 20.

Output shape

a list of chat room messages corresponding to the requested page and count

The operation returns paginated chat messages based on the provided 'Page' and 'Per Page' inputs. If pagination inputs are omitted, defaults apply (page=1, perPage=20). Messages include all typical message data as returned by the Mega API.

Links

Discussion