• Preparing search index...
  • The search index is not available
Documentation - v0.25.7
  • Documentation
  • @mtcute/bun
  • methods
  • searchPostsGlobal

Function searchPostsGlobal

  • searchPostsGlobal(
        client: ITelegramClient,
        query: string,
        params?: {
            limit?: number;
            offset?: SearchPostsGlobalOffset;
            payStars?: Long;
        },
    ): Promise<
        ArrayPaginatedWithMeta<
            Message,
            SearchPostsGlobalOffset,
            { limits?: tl.TypeSearchPostsFlood },
        >,
    >
  • Search for posts globally across all public channels in Telegram

    Parameters

    • client: ITelegramClient
    • query: string

      Keyword to search for

    • Optionalparams: { limit?: number; offset?: SearchPostsGlobalOffset; payStars?: Long }

      Additional parameters

      • Optionallimit?: number

        Limit the number of results

      • Optionaloffset?: SearchPostsGlobalOffset

        Offset for the search

      • OptionalpayStars?: Long

        The amount of stars you are willing to pay for the search

    Returns Promise<
        ArrayPaginatedWithMeta<
            Message,
            SearchPostsGlobalOffset,
            { limits?: tl.TypeSearchPostsFlood },
        >,
    >

    • Defined in packages/core/src/highlevel/methods/messages/search-posts-global.ts:29

Settings

Member Visibility
Documentation - v0.25.7
  • Loading...

Generated using TypeDoc