hideAllChatJoinRequests method

Future<Result<UpdatesBase>> hideAllChatJoinRequests({
  1. required bool approved,
  2. required InputPeerBase peer,
  3. String? link,
})

Hide All Chat Join Requests.

ID: e085f4ea.

Implementation

Future<Result<UpdatesBase>> hideAllChatJoinRequests({
  required bool approved,
  required InputPeerBase peer,
  String? link,
}) async {
  // Preparing the request.
  final request = MessagesHideAllChatJoinRequests(
    approved: approved,
    peer: peer,
    link: link,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<UpdatesBase>();
}