code: def set_chat_photo(chat_id, photo, **kwargs):
      
  
      files = None
      if isinstance(photo, InputFile):
          files = [photo]
          photo = None
      elif not isinstance(photo, str):
          raise Exception('photo must be instance of InputFile or str')
  
      # required args
      params = dict(
          chat_id=chat_id,
          photo=photo
      )
  
      return TelegramBotRPCRequest('setChatPhoto', params=params, files=files, on_result=lambda result: result, **kwargs)
docs: Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator
      in the chat for this to work and must have the appropriate admin rights.
      :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
      :param photo: New chat photo, uploaded using multipart/form-data
      :param kwargs: Args that get passed down to :class:`TelegramBotRPCRequest`
      :return: Returns True on success.
      :rtype: bool