What this solution does
The module sends notifications to Telegram when specific events occur on the website. It supports standard scenarios for online stores, including order creation, payment, status changes, and cancellation. If the store module is not in use, notifications can be triggered by information block events, such as when a new lead is created via a web form.
Supported events:
- Adding or editing an information block element;
- New order;
- Order payment;
- Order status change;
- Order cancellation;
- Adding or editing a web form submission result;
- Adding a blog comment;
- User registration.
The functionality allows sending messages to multiple recipients simultaneously. Notifications can be directed to specific users or to a chat, including specific topics. Each event type can have its own recipient list, enabling role-based distribution; for instance, one manager handles new orders while another manages payment confirmations.
The current version includes integration with the BotGate service, enabling Telegram bot operation without a proxy.
Template settings allow you to specify the scope of action: apply to all sites or to a specific one. The Twig template engine is used for message formatting. The module interface includes detailed instructions for template configuration and usage examples.
The module supports operation via an internal API, enabling the sending of text messages from custom code at any required moment. Proxy server support is provided to ensure reliable notification delivery.
Processing order events requires the standard Sale module. Processing web form events requires the Form module. Processing blog events requires the Blog module.
Environment requirements include PHP version 7.0 or higher, along with the installed curl, json, and mbstring extensions. These conditions are automatically verified during installation. The module does not function when the mbstring.func_overload = 2 parameter is active, which is also checked during installation.
Platform integration is implemented via the OnAfterIBlockElementAdd event (adding an information block element) and the OnAfterIBlockElementUpdate event (updating an information block element).
The Telegram Notifications module sends alerts when the following events occur: new order creation, order payment, order status change, order cancellation, web form result submission, web form result update, blog comment addition, and user registration.
User registration triggers the OnAfterUserRegister and OnAfterUserSimpleRegister events. Registration notifications do not fire when a user is manually added via the admin panel or when registration occurs automatically following an order placement.
For the module to function correctly, the website must utilize these standard events.
General iT can install and configure this module and check how it works on your website.