Returns: bool

class aiogram.methods.set_sticker_keywords.SetStickerKeywords(*, sticker: str, keywords: List[str] | None = None, **extra_data: Any)[source]#

Use this method to change search keywords assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success.


sticker: str#

File identifier of the sticker

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

keywords: List[str] | None#

A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters


As bot method#

result: bool = await bot.set_sticker_keywords(...)

Method as object#


  • from aiogram.methods.set_sticker_keywords import SetStickerKeywords

  • alias: from aiogram.methods import SetStickerKeywords

With specific bot#

result: bool = await bot(SetStickerKeywords(...))

As reply into Webhook in handler#

return SetStickerKeywords(...)