Returns: bool

class aiogram.methods.set_custom_emoji_sticker_set_thumbnail.SetCustomEmojiStickerSetThumbnail(*, name: str, custom_emoji_id: str | None = None, **extra_data: Any)[source]#

Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success.


name: str#

Sticker set name

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.

custom_emoji_id: str | None#

Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail and use the first sticker as the thumbnail.


As bot method#

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

Method as object#


  • from aiogram.methods.set_custom_emoji_sticker_set_thumbnail import SetCustomEmojiStickerSetThumbnail

  • alias: from aiogram.methods import SetCustomEmojiStickerSetThumbnail

With specific bot#

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

As reply into Webhook in handler#

return SetCustomEmojiStickerSetThumbnail(...)