knock-in
b117a5b5ae
Generate Docs from /src directly
10 years ago
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.
10 years ago
Devin Doolin
ae7ec074be
Further updates for Bots 2.0
...
- Adds support for callback_query-type messages
- Adds a showAlert option to answerCallbackQuery to more-closely align with the real bot API
- Adds tests for message editing functionality
- Adds a global test timeout of 10s and adds done() calls to all tests for assurance
10 years ago
icdevin
20d174de0b
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.
10 years ago
TJ Horner
98bb9dfd09
Update for Telegram Bots 2.0
...
https://telegram.org/blog/bots-2-0
10 years ago
Yago
b46378d25b
jsdoc2md class constructor #90
10 years ago
AVVS
83e42201ee
refactor: rewrite to babel, es6 & eslint
10 years ago
Yago
5b93c4a4e1
Format TelegramBotPolling.prototype._getUpdates error on JSON.parse
10 years ago
Yago
178f9cd905
Update offset on polling everymessage
10 years ago
Yago
c5f97ce524
Bind getFile response in getFileLink
10 years ago
Rafael Kr
d1e4fd11ee
added module querystring
...
Module querystring wasn't included before.
10 years ago
Rafael Kr
54130e6df9
Use of safer function qs.unescape
...
I didn't know about that function, thank you. I've updated the code.
10 years ago
Rafael Kr
39c0ce66b9
URL-decoded filename when sending file from stream
...
This sends the file as "My File.ext" instead of "My%20File.ext".
10 years ago
Yago
399dab4d77
throw error on polling
10 years ago
Yago
41be1afb9c
Updated onReplyToMessage doc
10 years ago
Yago
928cbbe95b
options.polling.timeout=10
10 years ago
Yago
17cb062c96
onReplyToMessage
10 years ago
Yago
5b1bad7525
Fix foreach bug
10 years ago
Yago
7e6c220aa3
Binds in TelegramBotPolling.prototype._polling
10 years ago
Yago
186d1e3a5c
Catch errors while parsing JSON
10 years ago
Yago
874feaf833
Update doc
10 years ago
crisbal
bfc51a9ab7
Added method to answer inline query
10 years ago
crisbal
b9bf9775cc
Added support for listening to inline requests
10 years ago
Yago
bfb047312b
Update docs
10 years ago
Yago
f2153a7754
Throw error if Unsupported Buffer file type. Test 'should send a video from a Buffer'
10 years ago
Yago
b46ea1d9a6
util.isBuffer(data) is deprecated https://nodejs.org/api/util.html#util_util_isbuffer_object
10 years ago
Vítor Augusto da Silva Vasconcellos
9e2a8321e9
Add Buffer support to _formatSendData
10 years ago
Yago
b1d4e6b416
Handle request timeout. Catch errors while parsing JSON
10 years ago
Yago
28e850be52
Default timeout as 10 seconds
10 years ago
Yago
6a6111360b
JSON stringify reply_markup if not string
10 years ago
Yago
1ce816c794
Update telegramPolling.js
10 years ago
brandly
152710505f
allow 0ms for polling interval
10 years ago
Yago
430adbba7f
Updated Readme
10 years ago
Yago
cfd32f47bf
Method bot.onText
10 years ago
Yago
bb6a0bb3ff
setWebHook allow sending certificate as param. WebHook Documentation
10 years ago
Yago
6a679b5644
jshint
10 years ago
Yago
48045b98ff
Changed query to form data on sendMessage, forwardMessage, sendChatAction, getUserProfilePhotos, sendLocation and getFile. Closes #19
10 years ago
Yago
0735cd7ce6
Added @private to _buildURL
10 years ago
Yago
2247d248c8
Chain promise on getFileLink and return a new one. Call reject on error
10 years ago
Yago
fffb129565
Better chain a 'then' on the getFile promise and return it.
10 years ago
Ivan Skorokhodov
14dbd12f68
Added downloadFile sugar method
10 years ago
Ivan Skorokhodov
6006ba4fd6
Added getFileLink method to TelegramBot and moved generating of urls to separate method _buildURL
10 years ago
Ivan Skorokhodov
e85f517e00
Added getFile method to TelegramBot
10 years ago
Patricio López
b34caa84c5
added sendVoice function
10 years ago
Anton
5cf5abef03
lastUpdate && initPolling
11 years ago
yago
4ca7ca4ebe
Some doc changes
11 years ago
yago
1dd81e4343
New events. 😄
11 years ago
yago
7b7191b464
Emits typo
11 years ago
yago
7481325bed
see api#getMe doc
11 years ago
yago
c704ab33d8
constructor options doc.
11 years ago