)
@payload('user')
- def update_profile_image(self, filename, file_=None, **kwargs):
+ def update_profile_image(self, filename, file=None, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image
"""
- headers, post_data = API._pack_image(filename, 700, f=file_)
+ headers, post_data = API._pack_image(filename, 700, f=file)
return self.request(
'POST', 'account/update_profile_image', endpoint_parameters=(
'include_entities', 'skip_status'