deleteTopicHistory method

Future<Result<MessagesAffectedHistoryBase>> deleteTopicHistory({
  1. required InputChannelBase channel,
  2. required int topMsgId,
})

Delete Topic History.

ID: 34435f2d.

Implementation

Future<Result<MessagesAffectedHistoryBase>> deleteTopicHistory({
  required InputChannelBase channel,
  required int topMsgId,
}) async {
  // Preparing the request.
  final request = ChannelsDeleteTopicHistory(
    channel: channel,
    topMsgId: topMsgId,
  );

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

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