toggleParticipantBanned method
Future<Result<Boolean> >
toggleParticipantBanned({
- required bool unban,
- required InputChannelBase community,
- required InputPeerBase participant,
Toggle Participant Banned.
ID: 9967ad0f.
Implementation
Future<Result<Boolean>> toggleParticipantBanned({
required bool unban,
required InputChannelBase community,
required InputPeerBase participant,
}) async {
// Preparing the request.
final request = CommunitiesToggleParticipantBanned(
unban: unban,
community: community,
participant: participant,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}