Use slash command via incoming webhooks

When an incoming webhook writes text in a room if the text is a slash command it’s not executed as a command.

What can I do to be sure that the command will be executed?
Thanks.

I don’t see any information on the documentation of the incoming webhook that says you can use a slash command with it.

However, you can do so using the API, see https://api.mattermost.com/v4/#tag/commands%2Fpaths%2F~1commands~1execute%2Fpost