def METHOD_NAME(client, resource_group_name, webpubsub_name, hub_name, group_name, payload):
    service_client = _get_service_client(client, resource_group_name, webpubsub_name)
    res = service_client.send_request(build_send_to_group_request(hub_name, group_name, content=payload, content_type='text/plain'))
    res.raise_for_status()