I usually use a flow like this when triggering things with Teams and Power Automate:
Trigger: "When keywords are mentioned" - This is needed to get "Message ID"
Action: "Get message details" - Here you use the "Message ID"
Action: "Compose" or "Initialize Variable" according your needs
To get the message content use this expression in your compose or variable: "outputs('Get_message_details')?['body/body/plainTextContent']"