Lists all groups on the server.
def list_groups() -> None: ...
This method asks the server to list all its newsgroups. Use this method with caution as listing groups may take quite a long over slow links. The group names and other information are returned via the on_group_list event.
If a connection to the news_server doesn't already exist, a new one is created.