editExportedInvite method

Future<Result<ExportedChatlistInviteBase>> editExportedInvite({
  1. required InputChatlistBase chatlist,
  2. required String slug,
  3. String? title,
  4. List<InputPeerBase>? peers,
})

Edit Exported Invite.

ID: 653db63d.

Implementation

Future<Result<ExportedChatlistInviteBase>> editExportedInvite({
  required InputChatlistBase chatlist,
  required String slug,
  String? title,
  List<InputPeerBase>? peers,
}) async {
  // Preparing the request.
  final request = ChatlistsEditExportedInvite(
    chatlist: chatlist,
    slug: slug,
    title: title,
    peers: peers,
  );

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

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