(node:355190) [node-telegram-bot-api] DeprecationWarning: In the future, content-type of files you send will default to "application/octet-stream". See https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#sending-files for more information on how sending files has been improved and on how to disable this deprecation message altogether.
(Use `node --trace-deprecation ...` to show where the warning was created)
am i using sendDocument/contentType wrongly or what?
i understand that there are ways that you can disable node deprecation warnings but that's not an option for me.
thank you
code's
gives the Deprecation Warning
trying to set
contentType: 'application/octet-stream'
the same Deprecation Warning, your link https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#sending-files does not give any details aboutsendDocument
for improved or how to disable this deprecation message?am i using sendDocument/contentType wrongly or what? i understand that there are ways that you can disable node deprecation warnings but that's not an option for me. thank you