Liking cljdoc? Tell your friends :D
Clojure only.

telegrambot-lib.stickers.protocol

Telegram Stickers - protocol definitions.

Telegram Stickers - protocol definitions.
- <https://core.telegram.org/bots/api#stickers>
raw docstring

Stickerscljprotocol

The following methods allow your bot to handle stickers and sticker sets.

The following methods allow your bot to handle stickers and sticker sets.

add-sticker-to-setclj

(add-sticker-to-set this content)
(add-sticker-to-set this user_id name emojis)
(add-sticker-to-set this user_id name emojis & optional)

Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker or tgs_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.

Use this method to add a new sticker to a set created by the bot.
You must use exactly one of the fields png_sticker or tgs_sticker.
Animated stickers can be added to animated sticker sets and only to them.
Animated sticker sets can have up to 50 stickers.
Static sticker sets can have up to 120 stickers.
Returns True on success.

create-new-sticker-setclj

(create-new-sticker-set this content)
(create-new-sticker-set this user_id name title emojis)
(create-new-sticker-set this user_id name title emojis & optional)

Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker or tgs_sticker. Returns True on success.

Use this method to create a new sticker set owned by a user. The bot will
be able to edit the sticker set thus created.
You must use exactly one of the fields png_sticker or tgs_sticker.
Returns True on success.

delete-sticker-from-setclj

(delete-sticker-from-set this sticker)

Use this method to delete a sticker from a set created by the bot. Returns True on success.

Use this method to delete a sticker from a set created by the bot.
Returns True on success.

get-sticker-setclj

(get-sticker-set this name)

Use this method to get a sticker set. On success, a StickerSet object is returned.

Use this method to get a sticker set.
On success, a StickerSet object is returned.

send-stickerclj

(send-sticker this content)
(send-sticker this chat_id sticker)
(send-sticker this chat_id sticker & optional)

Use this method to send static .WEBP or animated .TGS stickers. On success, the sent Message is returned.

Use this method to send static .WEBP or animated .TGS stickers.
On success, the sent Message is returned.

set-sticker-position-in-setclj

(set-sticker-position-in-set this content)
(set-sticker-position-in-set this sticker position)

Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.

Use this method to move a sticker in a set created by the bot to
a specific position.
Returns True on success.

set-sticker-set-thumbclj

(set-sticker-set-thumb this content)
(set-sticker-set-thumb this name user_id)
(set-sticker-set-thumb this name user_id & optional)

Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Returns True on success.

Use this method to set the thumbnail of a sticker set.
Animated thumbnails can be set for animated sticker sets only.
Returns True on success.

upload-sticker-fileclj

(upload-sticker-file this content)
(upload-sticker-file this user_id png_sticker)

Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.

Use this method to upload a .PNG file with a sticker for later use
in createNewStickerSet and addStickerToSet methods (can be used multiple times).
Returns the uploaded File on success.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close