banAuthor method

Future<bool> banAuthor({
  1. DateTime? untilDate,
  2. bool? revokeMessages,
})

Bans the author of the message

Implementation

Future<bool> banAuthor({
  DateTime? untilDate,
  bool? revokeMessages,
}) async {
  _verifyInfo([from?.id], APIMethod.banChatMember);
  return banChatMember(from!.id);
}