Skip to content

searchChats

Sahri Riza Umami edited this page Mar 14, 2017 · 3 revisions

Searches for specified query in the title and username of known chats, offline request.

searchChats(query, limit)

Returns chats in the order of them in the chat list.

Option Description
query Query to search for, if query is empty, returns up to 20 recently found chats.
limit Maximum number of chats to be returned.

Example

  • Search "pegel" in title or username of known chats, and limit the results to 17.
searchChats("pegel", 17)

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally