add_sticker_to_set

template<class Agent>
api_result<boolean_t, Agent&&> add_sticker_to_set(Agent &&agent, add_sticker_to_set_args_t args)
template<class Agent, class F>
void add_sticker_to_set(Agent &&agent, add_sticker_to_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 add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success.

struct add_sticker_to_set_args_t

Arguments that should be passed to add_sticker_to_set().

integer_t user_id

User identifier of sticker set owner

string_t name

Sticker set name

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 isn’t changed.