You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the advantage to doing this? The interface will be just as powerful but more verbose, since plugins can't use this.sendMessage but must use this.api.sendMessage instead.
I investigate the code of project and I think it will be better if instead of creating telegram API
https://github.com/crisbal/Telegram-Bot-Node/blob/3677ee4cad2ede0ebae07422e5579472eed33d0c/src/Bot.js#L26
and then binding it's method to master plugin
https://github.com/crisbal/Telegram-Bot-Node/blob/3677ee4cad2ede0ebae07422e5579472eed33d0c/src/PluginManager.js#L22
we will should pass telegramAPI instance to plugins directly, it will be transparently and plugins will be easily to test
The text was updated successfully, but these errors were encountered: