clearAll method
Clear all the conversation listeners.
Implementation
Future<void> clearAll() async {
_bot._handlerScopes.removeWhere(
(scope) => scope.isConversation && scope.name?.startsWith(name) == true,
);
await Future.wait(_subscriptionsList.map((sub) => sub.cancel()));
_subscriptionsList.clear();
}