Change Client.unhide_reply parameter name to match API endpoint
authorHarmon <Harmon758@gmail.com>
Tue, 27 Apr 2021 12:35:00 +0000 (07:35 -0500)
committerHarmon <Harmon758@gmail.com>
Tue, 27 Apr 2021 12:35:00 +0000 (07:35 -0500)
tweepy/client.py

index 7befd5625c2e98ea2cb1710be009fee2f429ab36..f4537613c4383be346824a879b48d6b2b69c8588 100644 (file)
@@ -193,7 +193,7 @@ class Client:
             user_auth=True
         )[0]["hidden"]
 
-    def unhide_reply(self, tweet_id):
+    def unhide_reply(self, id):
         """Unhides a reply to a Tweet.
 
         Parameters
@@ -212,7 +212,7 @@ class Client:
         https://developer.twitter.com/en/docs/twitter-api/tweets/hide-replies/api-reference/put-tweets-id-hidden
         """
         return self._make_request(
-            "PUT", f"/2/tweets/{tweet_id}/hidden", json={"hidden": False},
+            "PUT", f"/2/tweets/{id}/hidden", json={"hidden": False},
             user_auth=True
         )[0]["hidden"]