Skip to content

Commit

Permalink
Require status parameter for API.update_status
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 8, 2021
1 parent 30af3ac commit f64c076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,14 @@ def get_status(self, id, **kwargs):
)

@payload('status')
def update_status(self, *args, **kwargs):
def update_status(self, status, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update
"""
if 'media_ids' in kwargs:
kwargs['media_ids'] = list_to_csv(kwargs['media_ids'])

return self.request(
'POST', 'statuses/update', *args, endpoint_parameters=(
'POST', 'statuses/update', status, *args, endpoint_parameters=(
'status', 'in_reply_to_status_id',
'auto_populate_reply_metadata', 'exclude_reply_user_ids',
'attachment_url', 'media_ids', 'possibly_sensitive', 'lat',
Expand Down

0 comments on commit f64c076

Please sign in to comment.