delete_webhook

template<class Agent>
api_result<boolean_t, Agent&&> delete_webhook(Agent &&agent, delete_webhook_args_t args)
template<class Agent, class F>
void delete_webhook(Agent &&agent, delete_webhook_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 remove webhook integration if you decide to switch back to getUpdates. Returns True on success.

struct delete_webhook_args_t

Arguments that should be passed to delete_webhook().

optional_t<boolean_t> drop_pending_updates

Pass True to drop all pending updates