Skip to content

fetchMessages(searchOptions) -> parameters before (lastMessageID) #3821

@bijoaja

Description

@bijoaja

Is the feature you are looking for already implemented in the library?

  • I have reviewed the implemented features.

Is your "solution" already implemented in an opened pull request?

  • I have reviewed the existing pull requests.

Is your feature request related to a problem? Please describe.

Is this function not working with a "Before" || lastMessageID Parameter?
My goal is to take a message with a limit before the ID message ID that has been determined.

Describe the solution you'd like.

I want to take a message before the last message id.
My code:

const options = {limit: limit || 50};
if (cursor) options. BEFORE = CURSOR; // lastMessagesID

const messages = await chat.fetchmessages (options);

Describe an alternate solution if you have one.

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions