Node-telegram-bot-api: Content-type deprecation message

Created on 22 Dec 2017  路  3Comments  路  Source: yagop/node-telegram-bot-api

Hi,
how can i hide this message or fix the issue?
I can't see how to disable message in linked url.

node-telegram-bot-api deprecated 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.

Thanks!

Most helpful comment

Yep! Solved with:
process.env["NTBA_FIX_350"] = 1;
At top of the file.

All 3 comments

Same here. Did you find a solution for this? Thanks.

See #350

Yep! Solved with:
process.env["NTBA_FIX_350"] = 1;
At top of the file.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alikhil picture alikhil  路  3Comments

Panthro picture Panthro  路  3Comments

Niquolas picture Niquolas  路  4Comments

mbrammer picture mbrammer  路  3Comments

dimawebmaker picture dimawebmaker  路  3Comments