declineChatJoinRequest method

Future<bool> declineChatJoinRequest(
  1. ChatID chatId,
  2. int userId
)
inherited

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.

Implementation

Future<bool> declineChatJoinRequest(
  ChatID chatId,
  int userId,
) {
  return _client.apiCall(_token, 'declineChatJoinRequest', {
    'chat_id': chatId,
    'user_id': userId,
  });
}