Last message in chat

how to get last message in chat

Hello, you can query last messages by applying the lastCreated sort order.

For more details, please refer to the documentation: https://docs.amity.co/amity-sdk/chat/messaging/query-and-filter-messages

Please let us know if this isn’t what you were looking for.