close

close#

template<class Agent>
api_result<boolean_t, Agent&&> close(Agent &&agent, close_args_t args)#

agent is any object satisfying agent concept.

Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn’t launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters.

struct close_args_t#

Arguments that should be passed to close().