MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    群文件直链解析

    开发交流
    5
    9
    445
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      superen last edited by

      还记得刚开始想玩机器人,就是因为看了别人写了一个机器人当有人上传群文件的时候,自动发送文件直链。但是接触了好久都没发现这种插件。那个作者只是说用了httpapi。不知道大家有没有思路

      1 Reply Last reply Reply Quote 0
      • RainChan
        RainChan 摸鱼 last edited by

        你可以自己写一个

        S 1 Reply Last reply Reply Quote 0
        • S
          superen @RainChan last edited by

          @rainchan 写是可以 不知道用的什么api 没有头绪(

          Nambers 1 Reply Last reply Reply Quote 0
          • Nambers
            Nambers 摸鱼 @superen last edited by

            @superen 监听群信息然后messageChain里面包含remoteFile就发送downloadInfo里的链接 应该是

            S 1 Reply Last reply Reply Quote 0
            • S
              superen @Nambers last edited by superen

              @nambers 时间太过久远找不到聊天记录了 我只记得是个QQ邮箱的回调链接 如果是群文件应该是微云 而且链接也没有账号标识 也就是说不需要是群成员就可以下载 变成完全的直链了 但是一直没找到相关api

              MrXiaoM 1 Reply Last reply Reply Quote 0
              • MrXiaoM
                MrXiaoM 童心未泯 @superen last edited by

                @superen 不懂,感觉你的意思是群文件被机器人自动上传到了QQ邮箱文件中转站或者腾讯微云?下载很容易,我写服务器和Q群文件手动同步的时候文件是可以获取直链直接通过 HttpURLConnection 下载的,不带UA什么乱七八糟的东西。再上传到其他地方只能自己找接口了。

                S W 2 Replies Last reply Reply Quote 0
                • S
                  superen @MrXiaoM last edited by

                  @mrxiaom 好的 我自己再研究一下 顺便问一下你这种下载直链在删除群文件以后还能下载吗

                  MrXiaoM 1 Reply Last reply Reply Quote 0
                  • MrXiaoM
                    MrXiaoM 童心未泯 @superen last edited by

                    @superen 我不知道,我没有试过

                    1 Reply Last reply Reply Quote 0
                    • W
                      wuxianggujun @MrXiaoM last edited by

                      @MrXiaoM 大佬,获取的文件直链,下载之后没有文件名和后缀名

                      1 Reply Last reply Reply Quote 0
                      • Moved from 技术交流板块 by  Karlatemp Karlatemp 
                      • 1 / 1
                      • First post
                        Last post
                      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact