viewSponsoredMessage method
Future<Result<Boolean> >
viewSponsoredMessage({
- required InputChannelBase channel,
- required Uint8List randomId,
View Sponsored Message.
ID: beaedb94
.
Implementation
Future<Result<Boolean>> viewSponsoredMessage({
required InputChannelBase channel,
required Uint8List randomId,
}) async {
// Preparing the request.
final request = ChannelsViewSponsoredMessage(
channel: channel,
randomId: randomId,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}