Skip to content

SearchMessages misses the latest message #3510

@Nevershot

Description

@Nevershot

Why the SearchMessages method returns one less message than expected. I sent Q1, Q2, Q3. FoundMessages.totalCount = 3, message[Q2, Q1]. If I send a message Q4 FoundMessages.totalCount = 4, message[Q3, Q2, Q1]. If I send a message Q5 FoundMessages.totalCount = 5, message is[Q4, Q3, Q2, Q1]. The problem is not the limits. Can you please tell me how to solve the problem and how the "query" works? I always send a string with a space " ", but if I send an empty string "" it stops matching.

        TdApi.FoundMessages foundMessages = client.sendSync(new TdApi.SearchMessages(
                new TdApi.ChatListMain(),
                " ",
                "",
                10,
                new TdApi.SearchMessagesFilterEmpty(),
                null,
                0,
                0
        ));

Version: 1.8.50

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