setChatStickerSet¶
Returns: bool
- class litegram.methods.set_chat_sticker_set.SetChatStickerSet(*, chat_id: ChatIdUnion, sticker_set_name: str, **extra_data: Any)[source]¶
Use this method to set a new group sticker set for 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
litegram.methods.get_chat.GetChatrequests to check if the bot can use this method. ReturnsTrueon success.Source: https://core.telegram.org/bots/api#setchatstickerset
- chat_id: ChatIdUnion¶
Unique identifier for the target chat or username of the target supergroup (in the format
@supergroupusername)
Usage¶
As bot method¶
result: bool = await bot.set_chat_sticker_set(...)
Method as object¶
Imports:
from litegram.methods.set_chat_sticker_set import SetChatStickerSetalias:
from litegram.methods import SetChatStickerSet
With specific bot¶
result: bool = await bot(SetChatStickerSet(...))
As reply into Webhook in handler¶
return SetChatStickerSet(...)