src/main/java/io/github/biezhi/wechat/WeChatBot.java
public boolean sendFileName(String name, String filePath) {
        Account account = api.getAccountByName(name);
        if (null == account) {
            log.warn("找不到用户: {}", name);
            return false;
        }
        return this.api.sendFile(account.getUserName(), filePath);
    }
public boolean sendFileName(String name, String filePath) {
        Account account = api.getAccountByName(name);
        if (null == account) {
            log.warn("找不到用户: {}", name);
            return false;
        }
        return this.api.sendFile(account.getUserName(), filePath);
    }
根据名称发送文件消息

@param name     备注或昵称，精确匹配
@param filePath 文件路径
@return 发送是否成功