clickSponsoredMessage method

Future<Result<Boolean>> clickSponsoredMessage({
  1. required InputChannelBase channel,
  2. required Uint8List randomId,
})

Click Sponsored Message.

ID: 18afbc93.

Implementation

Future<Result<Boolean>> clickSponsoredMessage({
  required InputChannelBase channel,
  required Uint8List randomId,
}) async {
  // Preparing the request.
  final request = ChannelsClickSponsoredMessage(
    channel: channel,
    randomId: randomId,
  );

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

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