exportStoryLink method

Future<Result<ExportedStoryLinkBase>> exportStoryLink({
  1. required InputPeerBase peer,
  2. required int id,
})

Export Story Link.

ID: 7b8def20.

Implementation

Future<Result<ExportedStoryLinkBase>> exportStoryLink({
  required InputPeerBase peer,
  required int id,
}) async {
  // Preparing the request.
  final request = StoriesExportStoryLink(
    peer: peer,
    id: id,
  );

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

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