approveChatJoinRequest method
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.
Implementation
Future<bool> approveChatJoinRequest(
ChatID chatId,
int userId,
) {
return _client.apiCall(_token, 'approveChatJoinRequest', {
'chat_id': chatId,
'user_id': userId,
});
}