exportChatInvite method
Export Chat Invite.
ID: a02ce5d5
.
Implementation
Future<Result<ExportedChatInviteBase>> exportChatInvite({
required bool legacyRevokePermanent,
required bool requestNeeded,
required InputPeerBase peer,
DateTime? expireDate,
int? usageLimit,
String? title,
}) async {
// Preparing the request.
final request = MessagesExportChatInvite(
legacyRevokePermanent: legacyRevokePermanent,
requestNeeded: requestNeeded,
peer: peer,
expireDate: expireDate,
usageLimit: usageLimit,
title: title,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<ExportedChatInviteBase>();
}