Commit Graph

132 Commits

Author SHA1 Message Date
Mahdi Dibaiee
3752592fd9
Merge pull request #42 from laurynas-karvelis/master
Mount event listener only if message was sent out successfully
2018-03-21 16:01:09 +03:30
Laurynas Karvelis
f6beebe241 Mount bot.on('update') event listener only if message was sent out successfully; Reset one time keyboard after api.send request has been done 2018-03-21 13:29:05 +02:00
Mahdi Dibaiee
24097ac2b2 chore: bump version 2018-03-02 11:36:20 +03:30
Mahdi Dibaiee
ea5548beca
Merge pull request #41 from laurynas-karvelis/master
Allow sending messages longer than 4096 chars
2018-03-02 08:05:37 +00:00
Laurynas Karvelis
e29d2d3600 Refactor api.send Message related logic into a separate private method 2018-02-27 18:18:59 +02:00
Laurynas Karvelis
530a6b8800 Allow sending messages longer than 4096 chars 2018-02-27 14:02:57 +02:00
Mahdi Dibaiee
55c375bc56 chore: bump version to 2.0.0 2018-02-18 20:52:36 +03:30
Mahdi Dibaiee
6831c35f61
Merge pull request #40 from laurynas-karvelis/master
Don't merge yet: Keep on listening to Telegram's updates even if requests with telegram server fail
2018-02-18 20:51:06 +03:30
Laurynas Karvelis
a404e2ee82 Emit bot errors inside inner catch promise chain handlers 2018-02-18 12:40:21 +02:00
Laurynas Karvelis
6e2a728e76 Recover from http error with telegram server and carry on fetching updates 2018-02-16 02:26:06 +02:00
Mahdi Dibaiee
9d2c4be69a chore: bump version to 1.0.1 2018-02-14 14:09:25 +03:30
Mahdi Dibaiee
2371404f1c chore: bump version 2018-02-05 21:46:29 +03:30
Mahdi Dibaiee
1273102625
Merge pull request #38 from laurynas-karvelis/master
Allow module consumers to deal with Promise rejections themselves
2018-02-05 21:45:01 +03:30
Laurynas Karvelis
790f988148 Reject Promise at Base.send() method if api request got rejected 2018-02-05 16:35:22 +02:00
Laurynas Karvelis
92f892a467 Do not try to eat up request errors with catch as this will break rejection chain 2018-02-05 16:33:45 +02:00
Mahdi Dibaiee
118e1ece30 chore(version): bump version to 0.9.1 2018-02-01 19:21:06 +03:30
Mahdi Dibaiee
762a6cc309
Merge pull request #37 from laurynas-karvelis/master
Fix edge case when message object is undefined
2018-02-01 19:19:57 +03:30
Laurynas Karvelis
ddc588899d Fix edge case when message object is undefined 2018-02-01 17:02:59 +02:00
Mahdi Dibaiee
17630912ab chore(version): bump version 2017-09-12 20:36:42 +04:30
Mahdi Dibaiee
fe67118acb Merge pull request #36 from amovah/master
feat: customizable message for required params
2017-09-12 20:34:26 +04:30
Ali Movahedi
9c7adddb0a perf: remove if for checking customMessage 2017-09-12 20:26:28 +04:30
Ali Movahedi
5754b24912 style: remove extra white space 2017-09-12 18:41:39 +04:30
Ali Movahedi
bc5f14ebde fix: move optional argument to end 2017-09-12 18:39:09 +04:30
Ali Movahedi
88af10a8b4 feat: customizable message for required params 2017-09-12 13:39:58 +04:30
Mahdi Dibaiee
4c841c87e8 chore: bump version 2017-09-12 12:52:50 +04:30
Mahdi Dibaiee
c80ee4b938 Merge pull request #35 from amovah/master
feat: add Delete type
2017-09-12 12:50:40 +04:30
Ali Movahedi
65900e3252 feat: add Delete type 2017-09-12 11:10:13 +04:30
Mahdi Dibaiee
bf0e71854b Merge pull request #34 from austinhuang0131/patch-3
An AD (Since I contributed some)
2017-07-21 15:13:57 -04:00
Austin Huang
b94d403437 An AD (Since I contributed some)
Feel free to reject
2017-07-21 15:07:51 -04:00
Mahdi Dibaiee
f337cfe1cb chore: bump version 2016-12-17 09:17:44 +03:30
Mahdi Dibaiee
5c350631c2 Merge pull request #32 from austinhuang0131/patch-2
Added edited_channel_post.
2016-12-17 09:16:46 +03:30
Austin Huang
222c00ba20 Added edited_channel_post. 2016-12-14 10:09:14 -05:00
Mahdi Dibaiee
a614760b3f chore: bump version 2016-11-23 19:13:45 +03:30
Mahdi Dibaiee
a1c8f8e0c3 chore: bump version 2016-11-22 22:15:40 +03:30
Mahdi Dibaiee
9af30d527e Merge pull request #29 from austinhuang0131/patch-1
Solved the issue on my bot: Blame API channel_post update!
2016-11-22 22:13:26 +03:30
Austin Huang
2cc18a3eb8 Update index.js 2016-11-22 13:39:07 -05:00
Mahdi Dibaiee
12ffd75527 fix(edited_message): new updated messages have an edited_message property instead of message. 2016-05-27 11:56:05 +04:30
Mahdi Dibaiee
dd7dd633fc chore: bump version 2016-04-20 15:17:52 +04:30
Mahdi Dibaiee
9a4916002e chore: bump version 2016-04-19 13:58:38 +04:30
Mahdi Dibaiee
c99ca2cd30 chore: bump version 2016-04-19 13:57:54 +04:30
Mahdi Dibaiee
c45c832f97 Merge pull request #22 from edencore/patch-1
fix(babel): replace window with global
2016-04-19 13:56:45 +04:30
eden lane
4ddcb20807 fix(babel): replace window with global
I'm pretty sure that here should be `global` instead of `window`.
Does `window` work for you? I have a ReferenceError.
2016-04-19 11:58:30 +03:00
Mahdi Dibaiee
ef12125190 fix(babel): don't require babel-polyfill if it's already required 2016-04-16 18:04:19 +04:30
Mahdi Dibaiee
c76eb0c64d chore(lint): update eslint configuration, re-lint
chore(gitignore): don't ignore src/types
2016-03-28 20:40:59 +04:30
Mahdi Dibaiee
a357cd7368 Merge pull request #18 from amovah/master
remove babel and grunt from dependencies
2016-03-28 19:22:32 +04:30
Ali Movahedi
7791764892 chore: update package.json, remove ignored files
update directories in package.json, remove build and types folder
2016-03-28 12:50:37 +04:30
Ali Movahedi
55b89482b4 chore: update .gitignore and package.json
add build and types folder into .gitignore
remove index.js from files in package.json
2016-03-28 12:41:40 +04:30
Ali Movahedi
6e732a36fb chore: README 2016-03-28 12:37:53 +04:30
Ali Movahedi
03bfae0028 feat(API): add previous API
copy types folder into module root path
2016-03-28 12:35:56 +04:30
Ali Movahedi
23cff62505 style: lint code
lint code on files: index.js, poll.js and argument-parser.js
2016-03-28 12:30:54 +04:30