Composing a pre-filled message to group was not supported, but now it is via:
https://github.com/discourse/discourse/commit/bfaa4cdb379ade4bb39625768435abdaae45ec78
So to compose a new pre-filled message for group, use this URL:
https://meta.discourse.org/new-message?title=topic%20title&body=topic%20body&groupname=team
Notice groupname param in above URL, this means that you want to create a new pre-filled message for a group (as opposed to username for composing a message for user).