decline_chat_join_request

template<class Agent>
api_result<boolean_t, Agent&&> decline_chat_join_request(Agent &&agent, decline_chat_join_request_args_t args)
template<class Agent, class F>
void decline_chat_join_request(Agent &&agent, decline_chat_join_request_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 decline 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 decline_chat_join_request_args_t

Arguments that should be passed to decline_chat_join_request().

variant_t<integer_t, string_t> chat_id

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

integer_t user_id

Unique identifier of the target user