Remove unnecessary allowed_param argument in API._send_direct_message
authorHarmon <Harmon758@gmail.com>
Sun, 10 Jan 2021 02:08:34 +0000 (20:08 -0600)
committerHarmon <Harmon758@gmail.com>
Sun, 10 Jan 2021 02:08:34 +0000 (20:08 -0600)
tweepy/api.py

index 8ef7225e65c4fe177b34214408d567729bd04b28..6d61da4d78e78806a33085a7413cd2218906fa68 100644 (file)
@@ -476,8 +476,6 @@ class API:
             path='/direct_messages/events/new.json',
             method='POST',
             payload_type='direct_message',
-            allowed_param=['recipient_id', 'text', 'quick_reply_type',
-                           'attachment_type', 'attachment_media_id'],
             require_auth=True
         )