GochoMugo
9f79ba8b3b
[pr] PR #124 : Merge branch 'master' of https://github.com/Tketa/node-telegram-bot-api into pr/124
2016-11-10 18:12:30 +03:00
GochoMugo
306b492ebf
[pr] PR #169 : Merge branch 'pr/169'
2016-11-10 17:33:39 +03:00
GochoMugo
2b5dfe0e84
[pr] Merge branch 'fix-debug-prints' of https://github.com/oflisback/node-telegram-bot-api into pr-169
2016-11-10 17:31:33 +03:00
Gocho Mugo
775977e564
Merge PR #213 from jishnu7/games
...
Feature:
* Add `getGameHighScores`
2016-11-03 18:53:17 +03:00
Gocho Mugo
8555ab64f8
Merge PR #216 from GingerPlusPlus/master
...
Feature:
* Add option to ignore further regexes after match is found
2016-11-03 18:51:01 +03:00
GingerPlusPlus
0fb142f6ac
Added onlyFirstMatch option
2016-11-03 18:49:13 +03:00
Gocho Mugo
54e34636f9
Merge PR #211 from desunit/master
...
Closes issues #202 and #207 .
2016-11-03 18:40:31 +03:00
Jishnu Mohan
2fa3f68d61
adding getGameHighScores
2016-10-22 16:03:50 +05:30
Sergey Bogdanov
ae2530583d
updated request-promise package to eliminate memory leaks
2016-10-19 11:19:20 +03:00
Yago
00d74d13c8
Create CONTRIBUTING.md
2016-10-17 21:43:09 +02:00
Yago
58566d2df5
0.24.0
2016-10-12 12:58:21 +02:00
Yago
2559f6d677
Revert "Fix ES6 syntax errors"
...
This reverts commit 0ed1efedfb01fdf6948ebcdfccc41aa2e12915f3.
2016-10-12 12:46:54 +02:00
GochoMugo
0ed1efedfb
Fix ES6 syntax errors
2016-10-11 01:01:11 +03:00
GochoMugo
75b36abfeb
Fix errors reported by our linter
2016-10-10 23:04:48 +03:00
GochoMugo
eae1999ad1
Closes #191 : Add 'edited_message' event
2016-10-10 23:00:58 +03:00
GochoMugo
8dc3fe82ef
Add 'edited_message' event
...
Notes:
Merge branch 'master' of https://github.com/chris54721/node-telegram-bot-api into pr/191
References:
* PR #191 : https://github.com/yagop/node-telegram-bot-api/pull/191
2016-10-10 22:58:09 +03:00
GochoMugo
db3c5c3cc3
Run test for TelegramBot#_formatSendData() on supported Node.js versions
...
Bug:
The test for `TelegramBot#_formatSendData()` is only applicable on
newer versions of Node.js (v6+) that support passing a Buffer
representation of the path to `fs.createReadStream()`.
Fix:
If the runtime does NOT supports passing the Buffer argument, do
NOT run the test on it. This is safe since we are sure that
`fs.ReadStream.path` will never be a Buffer on the runtime being
tested.
2016-10-10 16:51:20 +03:00
Gocho Mugo
bf5ca1340b
Closes #204 : Fix handling fs.readStream.path if it's a buffer
2016-10-10 15:08:15 +03:00
GochoMugo
d35d0ea329
Closes #201 : Add initial support for games
2016-10-10 15:04:53 +03:00
GochoMugo
12770e6e95
Add initial support for games
...
Notes:
Merge branch 'support-games' of https://github.com/jishnu7/node-telegram-bot-api into pr/201
References:
* PR #201 : https://github.com/yagop/node-telegram-bot-api/pull/201
2016-10-10 15:03:50 +03:00
GochoMugo
ce4decebd8
Closes #186 : Add TelegramBot#leaveChat() method
2016-10-10 14:48:28 +03:00
GochoMugo
5a11cce18d
Accompanying doc-updates for PR #186
2016-10-10 14:47:52 +03:00
GochoMugo
394f363465
Implement 'leaveChat'
...
Notes:
Merge branch 'feature/leaveChat' of
https://github.com/GochoMugo/node-telegram-bot-api into pr/186
References:
* PR #186 : https://github.com/yagop/node-telegram-bot-api/pull/186
2016-10-10 14:45:15 +03:00
GochoMugo
dcc3d481e4
Add accompanying minor fixes and doc updates for PR #163
2016-10-10 14:43:16 +03:00
Alex Godko
f50936fd7b
Update README.md
...
Added a word about "callback_query" update
2016-10-10 14:43:16 +03:00
GochoMugo
c4d090dcb3
Closes #163 : Mention 'callback_query' in README
2016-10-10 14:32:01 +03:00
GochoMugo
d844ddd15a
Add accompanying minor fixes and doc updates for PR #163
2016-10-10 14:30:54 +03:00
GochoMugo
4c9901e411
Mention "callback_query" in README
...
Notes:
Merge branch 'patch-1' of https://github.com/koloboid/node-telegram-bot-api into pr/163
References:
* PR #163 : https://github.com/yagop/node-telegram-bot-api/pull/163
2016-10-10 14:27:20 +03:00
GochoMugo
626f183cb7
Closes #158 : Add new methods from the API v2.1
2016-10-10 14:22:20 +03:00
GochoMugo
f5af2bf588
Add accompanying tests, minor fixes and updates for PR #158
2016-10-10 14:21:25 +03:00
GochoMugo
628aa5b2d9
Add new methods from the API v2.1
...
Notes:
Merge branch 'master' of https://github.com/HorusGoul/node-telegram-bot-api into pr/158
References:
* PR #158 : https://github.com/yagop/node-telegram-bot-api/pull/158
2016-10-10 13:48:49 +03:00
GochoMugo
74fb4ab181
Closes #144 : Add TelegramBot#getChat() method
2016-10-10 13:42:29 +03:00
GochoMugo
f91d426c35
Minor fixes and Docs update for PR #144
2016-10-10 13:41:28 +03:00
GochoMugo
e2eaa3c8db
Add TelegramBot#getChat() method
...
Notes:
Merge branch 'master' of https://github.com/serhiidmytruk/node-telegram-bot-api into pr/144
References:
* PR #144 : https://github.com/yagop/node-telegram-bot-api/pull/144
2016-10-10 13:34:00 +03:00
GochoMugo
ab3464c679
Closes #133 : JSON-stringify reply_markup in qs
2016-10-10 13:26:58 +03:00
GochoMugo
82ee13e953
Add accompanying test for PR #133
...
References:
* Test retrieved from PR #182
2016-10-10 13:25:38 +03:00
Mikhail Burshteyn
ec354925d6
JSON-stringify reply_markup when it is sent in qs
2016-10-10 13:25:38 +03:00
GochoMugo
618555101f
Fix test for TelegramBot#sendVenue()
2016-10-10 12:57:10 +03:00
GochoMugo
997b69691e
Closes #121 : Add TelegramBot#sendVenue() method
2016-10-10 12:35:06 +03:00
GochoMugo
d9b2170b55
Add TelegramBot#sendVenue()
...
References:
* Author: @iiroj (https://github.com/iiroj )
* PR URL: https://github.com/yagop/node-telegram-bot-api/pull/121
2016-10-10 12:30:41 +03:00
GochoMugo
be49b69219
Fix handling fs.readStream.path if it's a buffer
...
Bug:
The (private) method TelegramBot#_formatSendData(), used by public
methods, such as TelegramBot#sendPhoto(), throws an error
if the stream passed (fs.readStream) has the property 'path',
being an instance of Buffer.
For example,
const stream = fs.createReadStream(Buffer.from('cat.png'));
bot.sendPhoto(chatId, stream);
Would throw an error, like
TypeError: Path must be a string. Received <Buffer 60 62 63 64>
This is because of this line:
src/telegram.js:297
fileName = URL.parse(path.basename(data.path)).pathname;
path.basename() can not handle buffer (non-string) paths. From the
docs, "A TypeError is thrown if path is not a string...".
Fix:
Ensure path.basename() receives a string, by converting the buffer
to string.
References:
* fs.ReadStream: https://nodejs.org/docs/latest/api/fs.html#fs_class_fs_readstream
2016-10-07 19:52:00 +03:00
Jishnu Mohan
3a4e3cd721
adding sendGame and setGameScore
2016-10-04 00:53:00 +05:30
Chris54721
b308c956ae
Update documentation
2016-09-15 18:48:32 +02:00
Chris54721
f9aa16f322
Additional edited_message events
...
- edited_message_text
- edited_message_caption
2016-09-15 18:46:09 +02:00
Chris54721
bf3302a957
Update README.md
2016-09-15 18:24:01 +02:00
Chris54721
7518c44997
Document edited_message event
2016-09-15 18:23:16 +02:00
Chris54721
4746011dd1
Add edited_message support
2016-09-15 17:58:40 +02:00
Ola Flisbäck
10af3e4f55
Fixed a couple of debug prints
2016-07-13 20:01:21 +02:00
Yago
e0e5e9a7b0
Remove coveralls and upgrade istanbul to alpha
2016-07-08 00:26:02 +02:00
Yago
fbc38ea50b
Pass coverage on test
2016-07-08 00:25:17 +02:00