togglePreHistoryHidden method
Future<Result<UpdatesBase> >
togglePreHistoryHidden({
- required InputChannelBase channel,
- required bool enabled,
Toggle Pre History Hidden.
ID: eabbb94c
.
Implementation
Future<Result<UpdatesBase>> togglePreHistoryHidden({
required InputChannelBase channel,
required bool enabled,
}) async {
// Preparing the request.
final request = ChannelsTogglePreHistoryHidden(
channel: channel,
enabled: enabled,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<UpdatesBase>();
}