Answer the question
In order to leave comments, you need to log in
How to send by url?
Hello. I want to send a file via a URL: bot.sendDocument(chatId, ' https://s735sas.storage.yandex.net/rdisk/540c833e3... ');
but writes an error:
Unhandled rejection Error: ETELEGRAM: 400 Bad Request: wrong file identifier/HTTP URL specified
at C:\Users\Bogdan\Desktop\card2\node_modules\node-telegram-bot-api\src\telegram.js:291 :15
at tryCatcher (C:\Users\Bogdan\Desktop\card2\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\Bogdan\Desktop\card2\node_modules\ bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Users\Bogdan\Desktop\card2\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (C:\Users\Bogdan\Desktop\card2\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (C:\Users\Bogdan\Desktop\card2\node_modules\ bluebird\js\release\promise.js:729:18)
at _drainQueueStep (C:\Users\Bogdan\Desktop\card2\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (C:\ Users\Bogdan\Desktop\card2\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Users\Bogdan\Desktop\card2\node_modules\bluebird\js\release\async. js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Bogdan\Desktop\card2\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (node:internal /timers:464:21)
how to release it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question