There is a direct way to send Teams message through Graph API.
Login, Graph API graph-explorer with your login and select the Team's action needed as below:
Query used is something as below:
https://graph.microsoft.com/v1.0/teams/your-teams-id/channels/your-channel-id/messages
Request Body used is as below: You may use a custom message
{
"body": {
"content": "Hello world"
}
}
The final window looks like below:
After running the query, you will see the success message as well as a message in teams
I have no idea on changing the size of message window. However, hope the above Graph API method helps
----------
If the Answer is helpful, please click "Accept Answer" and upvote it