get_business_connection

template<class Agent>
api_result<business_connection_t, Agent&&> get_business_connection(Agent &&agent, get_business_connection_args_t args)
template<class Agent, class F>
void get_business_connection(Agent &&agent, get_business_connection_args_t args, F &&callback)

agent is any object satisfying agent concept.

callback is any callable object accepting expected<business_connection_t>.

Use this method to get information about the connection of the bot with a business account. Returns a BusinessConnection object on success.

struct get_business_connection_args_t

Arguments that should be passed to get_business_connection().

string_t business_connection_id

Unique identifier of the business connection