deleteHistory method
Future<Result<UpdatesBase> >
deleteHistory({
- required bool forEveryone,
- required InputChannelBase channel,
- required int maxId,
Delete History.
ID: 9baa9647
.
Implementation
Future<Result<UpdatesBase>> deleteHistory({
required bool forEveryone,
required InputChannelBase channel,
required int maxId,
}) async {
// Preparing the request.
final request = ChannelsDeleteHistory(
forEveryone: forEveryone,
channel: channel,
maxId: maxId,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<UpdatesBase>();
}