leaveChannel method
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>();
}