Skip to content

searchChatsOnServer

Sahri Riza Umami edited this page Jul 1, 2018 · 1 revision

Searches for the specified query in the title and username of already known chats via request to the server.
Returns chats in the order seen in the chat list.

searchChatsOnServer(query, limit, callback, data)
Field Type Description
query string Query to search for.
limit int32 Maximum number of chats to be returned.

Example

  • Searches for "kuncen" in the title and username of already known chats via request to the server.

    searchChatsOnServer('kuncen', 3)

    Response:

    {
      ["@type"] = "chats",
      chat_ids = {
        24904272
      }
    }

Frequently Asked Questions
The Functions

Clone this wiki locally