approve_chat_join_request¶
-
template<class Agent>
api_result<boolean_t, Agent&&> approve_chat_join_request(Agent &&agent, approve_chat_join_request_args_t args)¶
-
template<class Agent, class F>
void approve_chat_join_request(Agent &&agent, approve_chat_join_request_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<boolean_t>
.Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success.
-
struct approve_chat_join_request_args_t¶
Arguments that should be passed to
approve_chat_join_request()
.Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Unique identifier of the target user