replaceStickerInSet¶
Returns: bool
- class litegram.methods.replace_sticker_in_set.ReplaceStickerInSet(*, user_id: int, name: str, old_sticker: str, sticker: InputSticker, **extra_data: Any)[source]¶
Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling
litegram.methods.delete_sticker_from_set.DeleteStickerFromSet, thenlitegram.methods.add_sticker_to_set.AddStickerToSet, thenlitegram.methods.set_sticker_position_in_set.SetStickerPositionInSet. ReturnsTrueon success.Source: https://core.telegram.org/bots/api#replacestickerinset
- sticker: InputSticker¶
A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged.
Usage¶
As bot method¶
result: bool = await bot.replace_sticker_in_set(...)
Method as object¶
Imports:
from litegram.methods.replace_sticker_in_set import ReplaceStickerInSetalias:
from litegram.methods import ReplaceStickerInSet
With specific bot¶
result: bool = await bot(ReplaceStickerInSet(...))
As reply into Webhook in handler¶
return ReplaceStickerInSet(...)