2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +00:00

8 Commits

Author SHA1 Message Date
GochoMugo
487b5f4b8b
Fix ES6 syntax
Fix:

  This enables the library to be used without transpiling on
  Node 6 (current LTS).

Author: @GingerPlusPlus
2017-01-06 22:26:25 +03:00
GochoMugo
8edd5f4c6d
[polling,webhook] Add methods controlling polling, webhook
Feature:

  For finer control over bot's polling and web-hook, the
  following methods have been added:

  * TelegramBot#isPolling()
  * TelegramBot#openWebHook()
  * TelegramBot#closeWebHook()
  * TelegramBot#hasOpenWebHook()

  Please read README.md for more information on the
  new methods.
2017-01-02 13:58:46 +03:00
GochoMugo
daab34d98d
Update codebase
Details:

  * Update documentation on constructors and methods
  * Make code more modular
  * Improve code (generally)
2017-01-02 13:04:44 +03:00
Ola Flisbäck
10af3e4f55 Fixed a couple of debug prints 2016-07-13 20:01:21 +02:00
icdevin
d6ef1f9d97 Fixes stream end event never being called
For writable streams, like `http.ClientRequest`, there is no `end` event, only `finish`. Thus, `req.end` was never called and never sending a response.

This resulted in a nasty bug for WebHook users that basically rendered the library useless because if Telegram doesn't receive a response from the bot server, it will continue to queue and send requests until it does, or until 24 hours have passed.
2016-06-06 23:07:18 +02:00
AVVS
83e42201ee refactor: rewrite to babel, es6 & eslint 2016-03-17 13:02:25 +03:00
Yago
6a679b5644 jshint 2015-09-27 11:18:25 +02:00
yago
923e65c789 Separated WebHook 2015-07-13 00:24:49 +02:00