Using bot to send direct message

Summary

Getting 403 on bot account with admin privilage when sending direct message

Steps to reproduce

When using a api call using the access token of the bot to post a private message it will give the following
{
“id”: “api.context.permissions.app_error”,
“message”: “You do not have the appropriate permissions”,
“detailed_error”: “”,
“request_id”: “q9jut5b97i8fx8jokrnq5in3ea”,
“status_code”: 403
}

Expected behavior

The was given all the permissions that can be given and it is still unable to create a direct message

Does anyone have a solution for this or an explanation why this is happening?

Could this help https://docs.mattermost.com/developer/webhooks-incoming.html#how-do-i-send-a-webhook-post-to-a-direct-message-channel?