Skip to content

addRecentSticker

Sahri Riza Umami edited this page Dec 15, 2016 · 1 revision

Manually adds new sticker to the list of recently used stickers.

addRecentSticker(is_attached, sticker)

New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list.

Option Description
is_attached Pass true to add the sticker to the list of stickers recently attached to photo or video files, pass false to add the sticker to the list of recently sent stickers
sticker Sticker file to add

Example

Manually adds new sticker from message 212 to the list of recently used stickers.

addRecentSticker(0, 212)

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally