Skip to content

getStickers

Sahri Riza Umami edited this page Jun 25, 2018 · 4 revisions

Returns stickers from the installed sticker sets that correspond to a given emoji.
If the emoji is not empty, favorite and recently used stickers may also be returned.

getStickers(emoji, limit, callback, data)
Field Type Description
emoji string String representation of emoji. If empty, returns all known installed stickers.
limit int32 Maximum number of stickers to be returned.

Example

  • Get 2 stickers from installed ordinary sticker sets corresponding to the "😧" emoji.

    getStickers('😧', 2)

    Response:

    {
      ["@type"] = "stickers",
      stickers = {
        {
          ["@type"] = "sticker",
          emoji = "😟",
          height = 512,
          is_mask = false,
          set_id = "1842540969984001",
          sticker = {
            ["@type"] = "file",
            expected_size = 35088,
            id = 158,
            ["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 = "CAADBQADGAADyIsGAAGsLFQJpxof0QI",
              is_uploading_active = false,
              is_uploading_completed = true,
              uploaded_size = 35088
            },
            size = 35088
          },
          thumbnail = {
            ["@type"] = "photoSize",
            height = 128,
            photo = {
              ["@type"] = "file",
              expected_size = 5216,
              id = 157,
              ["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 = "AAQFABPg4rEyAAV2KmD2GYnS-kkBAAEC",
                is_uploading_active = false,
                is_uploading_completed = true,
                uploaded_size = 5216
              },
              size = 5216
            },
            type = "m",
            width = 72
          },
          width = 288
        },
        {
          ["@type"] = "sticker",
          emoji = "😧",
          height = 512,
          is_mask = false,
          set_id = "1842540969984001",
          sticker = {
            ["@type"] = "file",
            expected_size = 50446,
            id = 194,
            ["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 = "CAADBQADRAADyIsGAAFtStkoP5sgQQI",
              is_uploading_active = false,
              is_uploading_completed = true,
              uploaded_size = 50446
            },
            size = 50446
          },
          thumbnail = {
            ["@type"] = "photoSize",
            height = 128,
            photo = {
              ["@type"] = "file",
              expected_size = 7002,
              id = 193,
              ["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 = "AAQFABPsyLEyAAShwwuRp_ZwHDtJAQABAg",
                is_uploading_active = false,
                is_uploading_completed = true,
                uploaded_size = 7002
              },
              size = 7002
            },
            type = "m",
            width = 100
          },
          width = 400
        }
      }
    }

Frequently Asked Questions
The Functions

Clone this wiki locally