From: Harmon Date: Wed, 10 Feb 2021 19:29:34 +0000 (-0600) Subject: Change API.send_direct_message parameters to be keyword-only X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7d1a5498325cbc93c7c177a96f5642c5c5683eac;p=tweepy.git 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 --- 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