mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
1 KiB
1 KiB
deleteStickerFromSet
Description
Use this method to delete a sticker from a set created by the bot. Returns True on success.
Arguments
| Name | Type | Description |
|---|---|---|
sticker |
#!python3 str |
File identifier of the sticker |
Response
Type: #!python3 bool
Description: Returns True on success.
Usage
As bot method
result: bool = await bot.delete_sticker_from_set(...)
Method as object
Imports:
from aiogram.methods import DeleteStickerFromSetfrom aiogram.api.methods import DeleteStickerFromSetfrom aiogram.api.methods.delete_sticker_from_set import DeleteStickerFromSet
In handlers with current bot
result: bool = await DeleteStickerFromSet(...)
With specific bot
result: bool = await bot(DeleteStickerFromSet(...))
As reply into Webhook in handler
return DeleteStickerFromSet(...)