importChatInvite method

Future<Result<UpdatesBase>> importChatInvite({
  1. required String hash,
})

Import Chat Invite.

ID: 6c50051c.

Implementation

Future<Result<UpdatesBase>> importChatInvite({
  required String hash,
}) async {
  // Preparing the request.
  final request = MessagesImportChatInvite(
    hash: hash,
  );

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

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