WeChat.Material.add_material

You're seeing just the function add_material, go back to WeChat.Material module for more information.
Link to this function

add_material(client, type, file_path)

Specs

add_material(WeChat.client(), material_type(), file_path()) :: WeChat.response()

新增其他类型永久素材 - 官方文档

请注意:图片素材将进入公众平台官网素材管理模块中的默认分组。

Link to this function

add_material(client, type, filename, file_data)

Specs

add_material(WeChat.client(), material_type(), filename(), file_data()) ::
  WeChat.response()

新增其他类型永久素材(binary) - 官方文档

请注意:图片素材将进入公众平台官网素材管理模块中的默认分组。