replace_sticker_in_set

template<class Agent>
api_result<boolean_t, Agent&&> replace_sticker_in_set(Agent &&agent, replace_sticker_in_set_args_t args)
template<class Agent, class F>
void replace_sticker_in_set(Agent &&agent, replace_sticker_in_set_args_t args, F &&callback)

agent is any object satisfying agent concept.

callback is any callable object accepting expected<boolean_t>.

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.

struct replace_sticker_in_set_args_t

Arguments that should be passed to replace_sticker_in_set().

integer_t user_id

User identifier of the sticker set owner

string_t name

Sticker set name

string_t old_sticker

File identifier of the replaced sticker

input_sticker_t sticker

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.