skip to Main Content

I created a sticker set by my bot. I added there some junk images. Now I ask myself a question: How to remove a single sticker from Telegram sticker set for every user?

2

Answers


  1. You should use @Stickers Bot, all you need to do is type /delsticker and follow the directions from there. As long as you are the owner of the sticker pack, it shouldn’t be a problem.

    enter image description here

    Login or Signup to reply.
  2. Default API connection with URL:

    https://api.telegram.org/bot <token>/METHOD_NAME
    
    1. In order for your bot to interact with your sticker pack, you must create it using the createNewStickerSet method (https://core.telegram.org/bots/api#createnewstickerset )

    2. Send the desired sticker to your bot

    3. Use the get Updates method (https://core.telegram.org/bots/api#getupdates).
      In the response, you will get a json structure where you can take the file_id

    4. Use deleteStickerFromSet method (https://core.telegram.org/bots/api#deletestickerfromset)

    python example

        def deleteStickerFromSet(file_id: str):
            data = {
                'sticker': file_id,
                }
            r = requests.post('https://api.telegram.org/bot <token>/' + "deleteStickerFromSet", data=data)
    

    Returns True on success.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search