create method

Future<Result<UpdatesBase>> create({
  1. required bool hidden,
  2. required String title,
  3. String? about,
  4. required InputPeerBase peer,
})

Create.

ID: a63859ec.

Implementation

Future<Result<UpdatesBase>> create({
  required bool hidden,
  required String title,
  String? about,
  required InputPeerBase peer,
}) async {
  // Preparing the request.
  final request = CommunitiesCreate(
    hidden: hidden,
    title: title,
    about: about,
    peer: peer,
  );

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

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