Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 错误:架构中找不到未定义的构造函数_Javascript_Node.js_Telegram_Telegram Bot_Mtproto - Fatal编程技术网

Javascript 错误:架构中找不到未定义的构造函数

Javascript 错误:架构中找不到未定义的构造函数,javascript,node.js,telegram,telegram-bot,mtproto,Javascript,Node.js,Telegram,Telegram Bot,Mtproto,以下调用导致此错误: Error: Constructor undefined not found in schema. 有什么问题?我正在使用MTProtol电报API mtproto.call("messages.sendMedia", { media: [{ _: "inputMediaUploadedDocument", file: "img.jpg", attribut

以下调用导致此错误:

Error: Constructor undefined not found in schema.
有什么问题?我正在使用MTProtol电报API

mtproto.call("messages.sendMedia", {
    media: [{
        _: "inputMediaUploadedDocument",
        file: "img.jpg",
        attributes: [{
            _: "documentAttributeImageSize",
            w: 300,
            h: 300
        }]
    }],
    message: `Upload! \nEste bot está em faze de testes!`,
    peer: {
        _: 'inputPeerChannel',
        channel_id: channel_id,
        access_hash: channel_access_hash
    }
})