Skip to content

searchInstalledStickerSets

Sahri Riza Umami edited this page Jun 25, 2018 · 1 revision

Searches for installed sticker sets by looking for specified query in their title and name.

searchInstalledStickerSets(is_masks, query, limit, callback, data)
Field Type Description
is_masks Bool Pass true to return mask sticker sets; pass false to return ordinary sticker sets.
query string Query to search for.
limit int32 Maximum number of sticker sets to return.

Example

  • Searches for installed sticker sets by looking for query 'kabayan' in their title and name.

    searchInstalledStickerSets(0, 'kabayan', 2)

    Response:

    {
      ["@type"] = "stickerSets",
      sets = {
        {
          ["@type"] = "stickerSetInfo",
          covers = {
            {
              ["@type"] = "sticker",
              emoji = "🤔",
              height = 512,
              is_mask = false,
              set_id = "106963033770688513",
              sticker = {
                ["@type"] = "file",
                expected_size = 31946,
                id = 56,
                ["local"] = {
                  ["@type"] = "localFile",
                  can_be_deleted = false,
                  can_be_downloaded = true,
                  downloaded_prefix_size = 0,
                  downloaded_size = 0,
                  is_downloading_active = false,
                  is_downloading_completed = false,
                  path = ""
                },
                remote = {
                  ["@type"] = "remoteFile",
                  id = "CAADBQADfAMAAlACfAEv6rD_7YKNPAI",
                  is_uploading_active = false,
                  is_uploading_completed = true,
                  uploaded_size = 31946
                },
                size = 31946
              },
              thumbnail = {
                ["@type"] = "photoSize",
                height = 128,
                photo = {
                  ["@type"] = "file",
                  expected_size = 5360,
                  id = 55,
                  ["local"] = {
                    ["@type"] = "localFile",
                    can_be_deleted = false,
                    can_be_downloaded = true,
                    downloaded_prefix_size = 0,
                    downloaded_size = 0,
                    is_downloading_active = false,
                    is_downloading_completed = false,
                    path = ""
                  },
                  remote = {
                    ["@type"] = "remoteFile",
                    id = "AAQFABMH98syAASVtpnZW0dNyk0fAAIC",
                    is_uploading_active = false,
                    is_uploading_completed = true,
                    uploaded_size = 5360
                  },
                  size = 5360
                },
                type = "m",
                width = 128
              },
              width = 512
            },
            {
              ["@type"] = "sticker",
              emoji = "☺️",
              height = 512,
              is_mask = false,
              set_id = "106963033770688513",
              sticker = {
                ["@type"] = "file",
                expected_size = 21696,
                id = 58,
                ["local"] = {
                  ["@type"] = "localFile",
                  can_be_deleted = false,
                  can_be_downloaded = true,
                  downloaded_prefix_size = 0,
                  downloaded_size = 0,
                  is_downloading_active = false,
                  is_downloading_completed = false,
                  path = ""
                },
                remote = {
                  ["@type"] = "remoteFile",
                  id = "CAADBQADfQMAAlACfAFtN6AMLk0ldQI",
                  is_uploading_active = false,
                  is_uploading_completed = true,
                  uploaded_size = 21696
                },
                size = 21696
              },
              thumbnail = {
                ["@type"] = "photoSize",
                height = 128,
                photo = {
                  ["@type"] = "file",
                  expected_size = 3492,
                  id = 57,
                  ["local"] = {
                    ["@type"] = "localFile",
                    can_be_deleted = false,
                    can_be_downloaded = true,
                    downloaded_prefix_size = 0,
                    downloaded_size = 0,
                    is_downloading_active = false,
                    is_downloading_completed = false,
                    path = ""
                  },
                  remote = {
                    ["@type"] = "remoteFile",
                    id = "AAQFABOp6MsyAARJVZCf78pQyTc1AAIC",
                    is_uploading_active = false,
                    is_uploading_completed = true,
                    uploaded_size = 3492
                  },
                  size = 3492
                },
                type = "m",
                width = 71
              },
              width = 285
            },
            {
              ["@type"] = "sticker",
              emoji = "👌",
              height = 512,
              is_mask = false,
              set_id = "106963033770688513",
              sticker = {
                ["@type"] = "file",
                expected_size = 27614,
                id = 60,
                ["local"] = {
                  ["@type"] = "localFile",
                  can_be_deleted = false,
                  can_be_downloaded = true,
                  downloaded_prefix_size = 0,
                  downloaded_size = 0,
                  is_downloading_active = false,
                  is_downloading_completed = false,
                  path = ""
                },
                remote = {
                  ["@type"] = "remoteFile",
                  id = "CAADBQADfwMAAlACfAGaLLFhuPCP4wI",
                  is_uploading_active = false,
                  is_uploading_completed = true,
                  uploaded_size = 27614
                },
                size = 27614
              },
              thumbnail = {
                ["@type"] = "photoSize",
                height = 128,
                photo = {
                  ["@type"] = "file",
                  expected_size = 4612,
                  id = 59,
                  ["local"] = {
                    ["@type"] = "localFile",
                    can_be_deleted = false,
                    can_be_downloaded = true,
                    downloaded_prefix_size = 0,
                    downloaded_size = 0,
                    is_downloading_active = false,
                    is_downloading_completed = false,
                    path = ""
                  },
                  remote = {
                    ["@type"] = "remoteFile",
                    id = "AAQFABPtocoyAASEFJzwAAGtuKysAwACAg",
                    is_uploading_active = false,
                    is_uploading_completed = true,
                    uploaded_size = 4612
                  },
                  size = 4612
                },
                type = "m",
                width = 128
              },
              width = 512
            },
            {
              ["@type"] = "sticker",
              emoji = "😑",
              height = 512,
              is_mask = false,
              set_id = "106963033770688513",
              sticker = {
                ["@type"] = "file",
                expected_size = 26196,
                id = 62,
                ["local"] = {
                  ["@type"] = "localFile",
                  can_be_deleted = false,
                  can_be_downloaded = true,
                  downloaded_prefix_size = 0,
                  downloaded_size = 0,
                  is_downloading_active = false,
                  is_downloading_completed = false,
                  path = ""
                },
                remote = {
                  ["@type"] = "remoteFile",
                  id = "CAADBQADgAMAAlACfAFhtXqG7gU9hQI",
                  is_uploading_active = false,
                  is_uploading_completed = true,
                  uploaded_size = 26196
                },
                size = 26196
              },
              thumbnail = {
                ["@type"] = "photoSize",
                height = 128,
                photo = {
                  ["@type"] = "file",
                  expected_size = 4624,
                  id = 61,
                  ["local"] = {
                    ["@type"] = "localFile",
                    can_be_deleted = false,
                    can_be_downloaded = true,
                    downloaded_prefix_size = 0,
                    downloaded_size = 0,
                    is_downloading_active = false,
                    is_downloading_completed = false,
                    path = ""
                  },
                  remote = {
                    ["@type"] = "remoteFile",
                    id = "AAQFABOYkMoyAAS-gsg55MJperYLAAIC",
                    is_uploading_active = false,
                    is_uploading_completed = true,
                    uploaded_size = 4624
                  },
                  size = 4624
                },
                type = "m",
                width = 128
              },
              width = 512
            }
          },
          id = "106963033770688513",
          is_archived = false,
          is_installed = true,
          is_masks = false,
          is_official = false,
          is_viewed = true,
          name = "kabayankababayan",
          size = 4,
          title = "kabayankababayan"
        }
      },
      total_count = 1
    }

Frequently Asked Questions
The Functions

Clone this wiki locally