title: Updated Twitter Direct Messages API with Tweepy
body: <p>Twitter updated their messages API (<a href="https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-event" rel="nofollow noreferrer">https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-event</a>) today and all of the Python code I had written via Tweepy relating to sending Direct Messages has stopped working and I can't seem to get it to work. This is the code I have right now:</p>
  
  <pre><code>direct_message = api.send_direct_message(user=username, text=message_text)
  </code></pre>
  
  <p>However, I am getting the following error response from Twitter:</p>
  
  <pre><code>[{'code': 34, 'message': 'Sorry, that page does not exist.'}]
  </code></pre>
  
  <p>I am confused about how to implement the new API changes with Tweepy. It was working perfectly fine until today and now it won't work... I am 100% sure the user is authenticated and has the permissions to send messages and I am still getting the error.</p>