Update API.get_direct_message
authorHarmon <Harmon758@gmail.com>
Fri, 21 Jun 2019 04:04:15 +0000 (23:04 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 21 Jun 2019 16:42:22 +0000 (11:42 -0500)
tweepy/api.py

index b842de12489729e67e6b2a5692b9a062464569c3..9e6149b82985ec89528aaceb554e83ddf0e359a4 100644 (file)
@@ -407,14 +407,14 @@ class API(object):
 
     @property
     def get_direct_message(self):
-        """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-message
-            :allowed_param:'id', 'full_text'
+        """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-event
+            :allowed_param:'id'
         """
         return bind_api(
             api=self,
-            path='/direct_messages/show/{id}.json',
+            path='/direct_messages/events/show.json',
             payload_type='direct_message',
-            allowed_param=['id', 'full_text'],
+            allowed_param=['id'],
             require_auth=True
         )