1

我正在尝试向 Telegram API 发出正确的请求。

代码:

api.call('upload.getFile', {
    flags: 0,
    precise: false,
    cdn_supported:true,
    location: {
      _: 'inputPeerPhotoFileLocation',
      flags: 0,
      big: true,
      peer:{
        _: 'inputPeerChannel',
        channel_id: 'xxxxxx',
        access_hash: "xxxxxxxx"
      },   
      local_id: xxxxx,
      volume_id: "xxxxxx",
    },
    offset: 0,
    limit: 1024 * 1024,
    }).then(response => 
console.log(response))
}
    

它给了我一个错误:

未捕获(承诺){_:“rpc_error”,error_code:400,
error_message:“FILE_ID_INVALID”} error_code:400 error_message:
“FILE_ID_INVALID”
_:“rpc_error”

但是我得到了这个请求的所有数据作为答案api.call('channels.getAdminedPublicChannels')

我究竟做错了什么?

4

0 回答 0