From 7d1a5498325cbc93c7c177a96f5642c5c5683eac Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 10 Feb 2021 13:29:34 -0600 Subject: [PATCH] Change API.send_direct_message parameters to be keyword-only Change quick_reply_options, attachment_type, attachment_media_id, and ctas API.send_direct_message parameters to be keyword-only --- tweepy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/api.py b/tweepy/api.py index 213c989..de7d6da 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -512,7 +512,7 @@ class API: ) @payload('direct_message') - def send_direct_message(self, recipient_id, text, quick_reply_options=None, + def send_direct_message(self, recipient_id, text, *, quick_reply_options=None, attachment_type=None, attachment_media_id=None, ctas=None, **kwargs): """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-event -- 2.25.1