sendScreenshotNotification method

Future<Result<UpdatesBase>> sendScreenshotNotification({
  1. required InputPeerBase peer,
  2. required InputReplyToBase replyTo,
  3. required int randomId,
})

Send Screenshot Notification.

ID: a1405817.

Implementation

Future<Result<UpdatesBase>> sendScreenshotNotification({
  required InputPeerBase peer,
  required InputReplyToBase replyTo,
  required int randomId,
}) async {
  // Preparing the request.
  final request = MessagesSendScreenshotNotification(
    peer: peer,
    replyTo: replyTo,
    randomId: randomId,
  );

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

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