I couldn’t access twitter direct messages via my application, so I updated the application access to: Read, Write and Access then I don’t know what shall I do
There should be an option on apps.twitter.com to add Direct Messages access. You’ll also need to then re-authenticate any accounts to refresh their access tokens with the new permissions.