Skip to content

searchPublicChats

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

Searches public chats by prefix of their username.

searchPublicChats(username_prefix)

Currently only private and channel (including supergroup) chats can be public.
Returns meaningful number of results.
Returns nothing if length of the searched username prefix is less than 5.
Excludes private chats with contacts from the results.

Option Description
username_prefix Prefix of the username to search.

Example

  • Search public chats wich its username prefixed by "pegel"

    searchPublicChats("pegel")

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally