node-telegram-api
node-telegram-api copied to clipboard
A simple API to create and control Telegram bots
How can i send an image by set file_id? I tried: bot.send(new File().file('FILEIDXXXXX','image').to(chat)); But the response is: Error: `value` required in setHeader("Content-Length", value). at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:344:11) at FormData. (/home/fenix/chatBot/node_modules/form-data/lib/form_data.js:321:13) at...
When using Question and typing an answer instead of tapping a button, invalid promise seems not to work. ``` javascript var question = new Question() .text('Pick something, do not type')...
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ([object Object]) at Bot.emit (events.js:171:17) at Bot.EventEmitter.emit (domain.js:442:20) at /root/nodeapp/node_modules/telegram-api/build/functions/poll.js:19:9 at run (/root/nodeapp/node_modules/core-js/modules/es6.promise.js:75:22) at /root/nodeapp/node_modules/core-js/modules/es6.promise.js:92:30 at flush (/root/nodeapp/node_modules/core-js/modules/_microtask.js:18:9) at process._tickCallback (internal/process/next_tick.js:61:11) **What I have:** telegram-api :...
Hello, I would like to know if you're going to support the new [Game class](https://core.telegram.org/bots/games)?
https://core.telegram.org/bots/api#inlinekeyboardmarkup
I know it's a new function, but I would love to be able to use KeyboardButtons to let's say send location information to bots.
Hi. Just tried to add silent param to your Message type and it works. ``` javascript { key: 'notification', /** * Set disable_notification of the message * @param {boolean} enable...
Currently this API uses polling for updates (i guess). It would be nice if you could configure it to not poll for updates and offer a method to input messages...
Hi, Maybe this is a bug, but when message sent with File type, the promise is not called. I think will be useful to call promise after file upload. Regards...