toggleJoinRequest method
Future<Result<UpdatesBase> >
toggleJoinRequest({
- required bool applyToInvites,
- required InputChannelBase channel,
- required bool enabled,
- InputUserBase? guardBot,
Toggle Join Request.
ID: 0ecc2618.
Implementation
Future<Result<UpdatesBase>> toggleJoinRequest({
required bool applyToInvites,
required InputChannelBase channel,
required bool enabled,
InputUserBase? guardBot,
}) async {
// Preparing the request.
final request = ChannelsToggleJoinRequest(
applyToInvites: applyToInvites,
channel: channel,
enabled: enabled,
guardBot: guardBot,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<UpdatesBase>();
}