2020-06-14 18:18:29 +03:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
2023-07-02 15:07:19 +03:00
|
|
|
from typing import Union
|
2019-11-03 22:14:41 +02:00
|
|
|
|
2023-03-11 20:46:36 +02:00
|
|
|
from .base import TelegramMethod
|
2020-06-14 18:18:29 +03:00
|
|
|
|
2019-11-03 22:14:41 +02:00
|
|
|
|
|
|
|
|
class DeleteChatStickerSet(TelegramMethod[bool]):
|
|
|
|
|
"""
|
2021-11-08 02:37:37 +02:00
|
|
|
Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field *can_set_sticker_set* optionally returned in :class:`aiogram.methods.get_chat.GetChat` requests to check if the bot can use this method. Returns :code:`True` on success.
|
2019-11-03 22:14:41 +02:00
|
|
|
|
|
|
|
|
Source: https://core.telegram.org/bots/api#deletechatstickerset
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
__returning__ = bool
|
2023-03-11 20:46:36 +02:00
|
|
|
__api_method__ = "deleteChatStickerSet"
|
2019-11-03 22:14:41 +02:00
|
|
|
|
|
|
|
|
chat_id: Union[int, str]
|
2021-01-26 21:20:52 +02:00
|
|
|
"""Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)"""
|