get_me

template<class Agent>
api_result<user_t, Agent&&> get_me(Agent &&agent)
template<class Agent, class F>
void get_me(Agent &&agent, F &&callback)

agent is any object satisfying agent concept.

callback is any callable object accepting expected<user_t>.

A simple method for testing your bot’s authentication token. Requires no parameters. Returns basic information about the bot in form of a User object.