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