tencent cloud

Feedback

JavaScript

Last updated: 2024-10-30 11:43:57

    Feature Description

    You can call findMessages to query a local message by messageID.
    1. Only local messages can be queried, for example, received messages or historical messages pulled by API.
    2. Audio-video group (AVChatRoom) messages cannot be queried, as they are not saved locally.

    Find A Message

    API
    chat.findMessage(messageID);
    Parameter
    Name
    Type
    Description
    messageID
    String
    Message ID
    Returned value
    Message or null.
    Sample
    let message = chat.findMessage('144115217363870632-1647417469-77069006');
    if (message) {
    // Read the attributes of `message`, such as `readReceiptInfo`
    }
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support