telegram-bot-api
telegram-bot-api copied to clipboard
First Telegram Bot API node.js library
Different errors are thrown from API SendMessage, sendPhoto, sendDocument & sendVideo. Same Text or video files are getting different error messages, also send is getting sent after sometimes even after...
Is there an API available to create a group using the bot token and API to create a channel?
First, thanks for this telegram-bot-api, this is the bot api node wrapper I was searching for and its great! However it is better if we could have typescript definitions. Are...
This change set adds type declarations to allow using this package in TypeScript projects while having full support for autocompletion and integrated API documentation. It also fixes some bugs I...
Dear telegram-bot-api developers, node-request has been deprecated. [[1]](https://github.com/request/request/issues/3142). Thus we should use another lib to replace it. Accoding to [[2]](https://bugs.debian.org/958691) we can use got. [1] https://github.com/request/request/issues/3142 [2] https://bugs.debian.org/958691
- added `logger` option. Developers can specify your own logger (like [pino](https://github.com/pinojs/pino), [bunyan](https://github.com/trentm/node-bunyan), [log4js-node](https://github.com/log4js-node/log4js-node), etc). Default - [console](https://developer.mozilla.org/ru/docs/Web/API/Console) - added events `polling_error`, `parse_error`, `webhook_error` - updated README
/Users/g66k/Code/JavaScript/node_modules/bluebird/js/release/async.js:49 fn = function () { throw arg; }; ^ StatusCodeError: 400 - {"ok":false,"error_code":400,"description":"Bad Request: wrong user_id specified"} at new StatusCodeError (/Users/g66k/Code/JavaScript/node_modules/request-promise-core/lib/errors.js:32:15) at Request.plumbing.callback (/Users/g66k/Code/JavaScript/node_modules/request-promise-core/lib/plumbing.js:104:33) at Request.RP$callback [as _callback] (/Users/g66k/Code/JavaScript/node_modules/request-promise-core/lib/plumbing.js:46:31)...
From the examples folder, there is no example of how to get a file sent to the Bot by a user. Can you add the example? Thanks.