leaveChannel method

Future<Result<UpdatesBase>> leaveChannel({
  1. required InputChannelBase channel,
})

Leave Channel.

ID: f836aa95.

Implementation

Future<Result<UpdatesBase>> leaveChannel({
  required InputChannelBase channel,
}) async {
  // Preparing the request.
  final request = ChannelsLeaveChannel(
    channel: channel,
  );

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

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