invokeAfterMsgs<T extends TlObject> method

Future<Result<T>> invokeAfterMsgs<T extends TlObject>({
  1. required List<int> msgIds,
  2. required TlMethod query,
})
inherited

Invoke After Msgs.

ID: 3dc4b4f0.

Implementation

Future<Result<T>> invokeAfterMsgs<T extends TlObject>({
  required List<int> msgIds,
  required TlMethod query,
}) async {
  // Preparing the request.
  final request = InvokeAfterMsgs(
    msgIds: msgIds,
    query: query,
  );

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

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