code: def setChatPhoto(self, chat_id, photo):
          
          p = _strip(locals(), more=['photo'])
          return self._api_request_with_file('setChatPhoto', _rectify(p), 'photo', photo)
docs: See: https://core.telegram.org/bots/api#setchatphoto