Function replace_sticker_in_set

Source
pub async fn replace_sticker_in_set(
    user_id: i64,
    name: String,
    old_sticker: InputFile,
    new_sticker: InputSticker,
    client_id: i32,
) -> Result<(), Error>
Expand description

Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet

ยงArguments

  • user_id - Sticker set owner; ignored for regular users
  • name - Sticker set name. The sticker set must be owned by the current user
  • old_sticker - Sticker to remove from the set
  • new_sticker - Sticker to add to the set
  • client_id - The client id to send the request to