15 Commits
Author SHA1 Message Date
Laurynas Karvelis 45a7251917 chore: remove redundant param addition inside Question.send 2018-12-24 13:57:39 +02:00
Laurynas Karvelis 68eb5e5483 fix: default param value to true to avoid breaking people's existing code; small return value fix 2018-12-24 13:56:33 +02:00
Laurynas Karvelis 468354f6a8 feature: allow sending silent notifications 2018-12-24 13:51:28 +02:00
Laurynas Karvelis 896ef4e84c feature: add event listeners to get answers from Base.send method only when explicitly asked 2018-12-24 11:43:57 +02:00
Laurynas Karvelis abf965c0f2 Don't add 'getUpdates' request to the queue as it's going to hinder 'send*' calls performance 2018-04-20 13:36:48 +03:00
Laurynas Karvelis 465eca0c5e Reduce code complexity 2018-03-21 16:39:59 +02:00
Laurynas Karvelis 8d280e157c Introduce internal API call queueing mechanism to send messages sequentially (no more random order) 2018-03-21 14:39:46 +02:00
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
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
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
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
Laurynas Karvelis ddc588899d Fix edge case when message object is undefined 2018-02-01 17:02:59 +02:00