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
}
})