Telegram Bot API

Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet. Returns True on success.

post/replaceStickerInSet

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/replaceStickerInSet
  • Auth: none declared

Request body

user_idinteger required

User identifier of the sticker set owner

namestring required

Sticker set name

old_stickerstring required

File identifier of the replaced sticker

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.