From 72c9838a6bd6de6c31fce01df8ad63b7b381a835 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 20 Jun 2019 23:04:15 -0500 Subject: [PATCH] Update API.get_direct_message --- tweepy/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index b842de1..9e6149b 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 ) -- 2.25.1