Skip to content

getStickerSets

Sahri Riza Umami edited this page Jul 7, 2017 · 4 revisions

Returns list of installed sticker sets.

getStickerSets(only_enabled)
Option Description
only_enabled If true, returns only enabled sticker sets.

Example

  • Get installed sticker sets, but returns only the enabled sticker sets.

    getStickerSets(1)

    Response:

    {
      ID = "StickerSets",
      sets_ = {
        {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "☝",
              height_ = 512,
              is_mask_ = true,
              mask_position_ = {
                ID = "MaskPosition",
                point_ = 0,
                x_shift_ = 0.0725,
                y_shift_ = -0.6325,
                zoom_ = 1.155
              },
              set_id_ = "328917524764688394",
              sticker_ = {
                ID = "File",
                id_ = 1035,
                path_ = false,
                persistent_id_ = "CAADAwADEAMAAr-MkAQUnl-Mi_r_vAI",
                size_ = 18504
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 128,
                photo_ = {
                  ID = "File",
                  id_ = 1036,
                  path_ = false,
                  persistent_id_ = "AAQDABM-SJYxAAQjmPyXWH0CyKICAAIC",
                  size_ = 4754
                },
                type_ = "m",
                width_ = 128
              },
              width_ = 512
            }
          },
          id_ = "328917524764688394",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = true,
          is_official_ = true,
          is_viewed_ = true,
          name_ = "masks2",
          size_ = 60,
          title_ = "Masks II: Face Lift"
        },
        {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "✨",
              height_ = 298,
              is_mask_ = true,
              mask_position_ = {
                ID = "MaskPosition",
                point_ = 1,
                x_shift_ = 0,
                y_shift_ = 0,
                zoom_ = 2.3049
              },
              set_id_ = "901422453274705923",
              sticker_ = {
                ID = "File",
                id_ = 653,
                path_ = false,
                persistent_id_ = "CAADAgADKwEAAvJ-ggzVJ7r9_yhLYgI",
                size_ = 25504
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 74,
                photo_ = {
                  ID = "File",
                  id_ = 654,
                  path_ = false,
                  persistent_id_ = "AAQCABM7rIENAAQhaOCsH2oQaTUZAAIC",
                  size_ = 6552
                },
                type_ = "m",
                width_ = 128
              },
              width_ = 512
            }
          },
          id_ = "901422453274705923",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = true,
          is_official_ = true,
          is_viewed_ = true,
          name_ = "masks3",
          size_ = 51,
          title_ = "Masks III: Costume Party"
        },
        {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "😊",
              height_ = 512,
              is_mask_ = true,
              mask_position_ = {
                ID = "MaskPosition",
                point_ = 1,
                x_shift_ = -0.0305,
                y_shift_ = -0.1524,
                zoom_ = 2.7195
              },
              set_id_ = "6052948949860356",
              sticker_ = {
                ID = "File",
                id_ = 755,
                path_ = false,
                persistent_id_ = "CAADAgADsQADIIEVAAFtOJNgyV4R4wI",
                size_ = 21736
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 128,
                photo_ = {
                  ID = "File",
                  id_ = 756,
                  path_ = false,
                  persistent_id_ = "AAQCABPwsIENAASsCP9IJjwcJaEYAAIC",
                  size_ = 4700
                },
                type_ = "m",
                width_ = 128
              },
              width_ = 512
            }
          },
          id_ = "6052948949860356",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = true,
          is_official_ = true,
          is_viewed_ = true,
          name_ = "masks4",
          size_ = 80,
          title_ = "Masks IV: Elements of Style"
        },
        {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "🍣",
              height_ = 512,
              is_mask_ = true,
              mask_position_ = {
                ID = "MaskPosition",
                point_ = 1,
                x_shift_ = 0.0061,
                y_shift_ = 0.0305,
                zoom_ = 2.8659
              },
              set_id_ = "499916253176004616",
              sticker_ = {
                ID = "File",
                id_ = 513,
                path_ = false,
                persistent_id_ = "CAADAgADjwQAAi8P8AZsva-syV6fMQI",
                size_ = 33200
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 128,
                photo_ = {
                  ID = "File",
                  id_ = 514,
                  path_ = false,
                  persistent_id_ = "AAQCABNyvoENAASjSwmUxtvabNMXAAIC",
                  size_ = 6196
                },
                type_ = "m",
                width_ = 128
              },
              width_ = 512
            }
          },
          id_ = "499916253176004616",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = true,
          is_official_ = true,
          is_viewed_ = true,
          name_ = "masks5",
          size_ = 70,
          title_ = "Masks V: Masquerade"
        },
        {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "🐏",
              height_ = 512,
              is_mask_ = true,
              mask_position_ = {
                ID = "MaskPosition",
                point_ = 1,
                x_shift_ = 0.0061,
                y_shift_ = 0.3476,
                zoom_ = 5.7927
              },
              set_id_ = "643524467607207941",
              sticker_ = {
                ID = "File",
                id_ = 343,
                path_ = false,
                persistent_id_ = "CAADAgADCgIAAhhC7gjibjvPxyIN5QI",
                size_ = 25930
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 128,
                photo_ = {
                  ID = "File",
                  id_ = 344,
                  path_ = false,
                  persistent_id_ = "AAQCABM7aXENAAR9juQQNi8pahFOAAIC",
                  size_ = 5334
                },
                type_ = "m",
                width_ = 128
              },
              width_ = 512
            }
          },
          id_ = "643524467607207941",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = true,
          is_official_ = true,
          is_viewed_ = true,
          name_ = "masks6",
          size_ = 85,
          title_ = "Masks VI: Glitter"
        },
        [0] = {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "😚",
              height_ = 512,
              is_mask_ = true,
              mask_position_ = {
                ID = "MaskPosition",
                point_ = 1,
                x_shift_ = -0.0183,
                y_shift_ = -0.3601,
                zoom_ = 2.5
              },
              set_id_ = "867500685606780932",
              sticker_ = {
                ID = "File",
                id_ = 915,
                path_ = false,
                persistent_id_ = "CAADAgADcQEAAkf7CQy38ImoXdKX2AI",
                size_ = 21154
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 128,
                photo_ = {
                  ID = "File",
                  id_ = 916,
                  path_ = false,
                  persistent_id_ = "AAQCABMm94ENAAS43Hng59Zbn10TAAIC",
                  size_ = 3784
                },
                type_ = "m",
                width_ = 126
              },
              width_ = 504
            }
          },
          id_ = "867500685606780932",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = true,
          is_official_ = true,
          is_viewed_ = true,
          name_ = "masks1",
          size_ = 60,
          title_ = "Masks I: Party Animals"
        }
      },
      total_count_ = 6
    }
  • Returns all of installed sticker sets.

    getStickerSets(0)

    Response:

    {
      ID = "StickerSets",
      sets_ = {
        {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "😡",
              height_ = 461,
              is_mask_ = false,
              mask_position_ = false,
              set_id_ = "1008881396854292486",
              sticker_ = {
                ID = "File",
                id_ = 265,
                path_ = false,
                persistent_id_ = "CAADBQAD2gADSUQAAQ7W4JFLEdDfswI",
                size_ = 34578
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 115,
                photo_ = {
                  ID = "File",
                  id_ = 266,
                  path_ = false,
                  persistent_id_ = "AAQFABMr7q4yAASIV8gB7X50WmWzAQABAg",
                  size_ = 6884
                },
                type_ = "m",
                width_ = 128
              },
              width_ = 512
            }
          },
          id_ = "1008881396854292486",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = false,
          is_official_ = false,
          is_viewed_ = true,
          name_ = "HandsomeUncle",
          size_ = 39,
          title_ = "Handsome Uncle"
        },
        {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "💪",
              height_ = 512,
              is_mask_ = false,
              mask_position_ = false,
              set_id_ = "1842540969984001",
              sticker_ = {
                ID = "File",
                id_ = 165,
                path_ = false,
                persistent_id_ = "CAADBQADHAADyIsGAAFzjQavel2uswI",
                size_ = 39518
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 128,
                photo_ = {
                  ID = "File",
                  id_ = 166,
                  path_ = false,
                  persistent_id_ = "AAQFABPqybEyAAQaWJTvHDbijg04AQABAg",
                  size_ = 6204
                },
                type_ = "m",
                width_ = 127
              },
              width_ = 510
            }
          },
          id_ = "1842540969984001",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = false,
          is_official_ = true,
          is_viewed_ = true,
          name_ = false,
          size_ = 50,
          title_ = "Great Minds"
        },
        [0] = {
          ID = "StickerSetInfo",
          covers_ = {
            [0] = {
              ID = "Sticker",
              emoji_ = "👍",
              height_ = 512,
              is_mask_ = false,
              mask_position_ = false,
              set_id_ = "643524467607207939",
              sticker_ = {
                ID = "File",
                id_ = 95,
                path_ = false,
                persistent_id_ = "CAADAgADNgEAAhhC7gjcYoKhc99L3wI",
                size_ = 30724
              },
              thumb_ = {
                ID = "PhotoSize",
                height_ = 128,
                photo_ = {
                  ID = "File",
                  id_ = 96,
                  path_ = false,
                  persistent_id_ = "AAQCABOcVnENAARFGG-1JlC4CvU7AAIC",
                  size_ = 4912
                },
                type_ = "m",
                width_ = 128
              },
              width_ = 512
            }
          },
          id_ = "643524467607207939",
          is_archived_ = false,
          is_installed_ = true,
          is_masks_ = false,
          is_official_ = false,
          is_viewed_ = true,
          name_ = "KookyCat",
          size_ = 35,
          title_ = "Кooky Сat"
        }
      },
      total_count_ = 3
    }

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally