Skip to content

searchPublicPosts

Function · TDLib 1.8.67 · d1085f9c

Searches for public channel posts using the given query. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit

searchPublicPosts(
  query: string,
  offset: string,
  limit: int32,
  star_count: int53
) → FoundPublicPosts

query

string

Query to search for

offset

string

Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results

limit

int32

The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit

star_count

int53

The Telegram Star amount the user agreed to pay for the search; pass 0 for free searches