-
Notifications
You must be signed in to change notification settings - Fork 29
Home
Capacitor Set edited this page Sep 10, 2017
·
3 revisions
Welcome to the Telegram-Bot-Node wiki!
- Plugins.md for help on how to write plugins
- Util.md for help on using Util
This is the flow taken by a message:
- The message originates from Telegram.
- It is parsed by the core (the API library).
- It is received by the plugin manager.
- It passes through proxies, special plugins which may approve or reject messages (eg. to ignore users).
- It is passed to an EventEmitter, which emits it. Additionally, it may be parsed.
- Each plugin receives this message, in the form of an event.
- Plugins may store or retrieve data in a flatfile database, interact with the filesystem, make network requests, etc.
- Plugins may return a reply,
- The reply goes back to the core, which sends it back to Telegram.