1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Added the method deleteStickerSet for complete deletion of a given sticker set that was created by the bot.

This commit is contained in:
coder2020official
2023-03-11 22:27:37 +04:00
parent 385fc6a6da
commit db087427fc
4 changed files with 36 additions and 0 deletions

View File

@@ -1641,6 +1641,11 @@ def set_sticker_set_title(token, name, title):
payload = {'name': name, 'title': title}
return _make_request(token, method_url, params=payload, method='post')
def delete_sticker_set(token, name):
method_url = 'deleteStickerSet'
payload = {'name': name}
return _make_request(token, method_url, params=payload, method='post')
def create_new_sticker_set(
token, user_id, name, title, stickers, sticker_format=None, sticker_type=None, needs_repainting=None):
method_url = 'createNewStickerSet'