set_chat_sticker_set()

async Client.set_chat_sticker_set()

Set a new group sticker set for a supergroup.

The bot must be an administrator in the chat and have the appropriate admin rights. Use the field can_set_sticker_set optionally returned in get_chat() to check if the bot can use this method.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target supergroup.

  • sticker_set_name (str) – Name of the sticker set to be set as the group sticker set.

Returns:

bool – True on success.

Example

await app.set_chat_sticker_set(chat_id, "mystickerset")