Mount event listener only if message was sent out successfully #42

Merged
laurynas-karvelis merged 1 commits from master into master 2018-03-21 12:31:09 +00:00
laurynas-karvelis commented 2018-03-21 11:31:35 +00:00 (Migrated from github.com)
  • Mount bot.on('update') event listener only if message was sent out successfully;
  • Reset one time keyboard after api.send request has been done.
- Mount `bot.on('update')` event listener only if message was sent out successfully; - Reset one time keyboard after `api.send` request has been done.
laurynas-karvelis commented 2018-03-21 11:33:55 +00:00 (Migrated from github.com)

This way we make sure no zombie event listeners will be mounted should the api.send() request fail.

This way we make sure no zombie event listeners will be mounted should the `api.send()` request fail.
mdibaiee commented 2018-03-21 12:31:05 +00:00 (Migrated from github.com)

@laurynas-karvelis thanks!

@laurynas-karvelis thanks!
mdibaiee commented 2018-03-21 12:32:32 +00:00 (Migrated from github.com)

Published telegram-api@3.1.1

Published `telegram-api@3.1.1`
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thereadme/node-telegram-api#42
No description provided.