Handle plugins
Closed this issue · 3 comments
goodmind commented
How would you like to handle plugins? (which process commands, inline queries, etc)
matchPlugin
currently finds first plugin whose RegExp
pattern matches query
from user input
https://github.com/goodmind/cycle-telegram/blob/master/src/plugins.js
goodmind commented
Rewritten version supports multiple matches
https://github.com/goodmind/cycle-telegram/blob/match-multiple-plugins/src/plugins.js
goodmind commented
Possibly remove from driver core for reasons:
- Not stream-agnostic
- Hard to maintain