create method
Future<Result<UpdatesBase> >
create({
- required String title,
- String? about,
- 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>();
}