toggleJoinToSend method
Future<Result<UpdatesBase> >
toggleJoinToSend({
- required InputChannelBase channel,
- required bool enabled,
Toggle Join To Send.
ID: e4cb9580
.
Implementation
Future<Result<UpdatesBase>> toggleJoinToSend({
required InputChannelBase channel,
required bool enabled,
}) async {
// Preparing the request.
final request = ChannelsToggleJoinToSend(
channel: channel,
enabled: enabled,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<UpdatesBase>();
}