From 70d96657a9e2897e59dc43f789256ea709ea3857 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 9 Feb 2021 22:07:56 -0600 Subject: [PATCH] Add trim_user endpoint parameter for API.retweet --- tweepy/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tweepy/api.py b/tweepy/api.py index 5a35635..6fefefc 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -406,7 +406,9 @@ class API: """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id """ return self.request( - 'POST', f'statuses/retweet/{id}', *args, **kwargs + 'POST', f'statuses/retweet/{id}', *args, endpoint_parameters=( + 'trim_user', + ), **kwargs ) @payload('status') -- 2.25.1