Restoapp logo

RestoApp Marketplace

tg-delivery

Teaser:

Last Published: 4/10/2025

Author: webresto

Category:

Tags: sails, webresto, core

Free Module

Available Versions

  • 2.2.1 (Latest)
  • 2.2.0
  • 2.0.8
  • 2.0.7

Description

Here’s a concise README.md in English for your module:

# Telegram Delivery Module

This module sends food order notifications to Telegram. It can be added to a group, allowing multiple users to receive orders directly from the site.

```markdown
# Telegram Delivery Module

This module sends food order notifications to Telegram. It can be added to a group, allowing multiple users to receive orders directly from the site.

## Configuration

   Add the following settings to your application's configuration:

   ```json
   {
     "TG_DELIVERY_TOKEN": "YOUR_BOT_TOKEN",
     "TG_DELIVERY_CHAT_ID": "CHAT_ID",
     "TG_DELIVERY_TEMPLATE": "PATH_TO_EJS_TEMPLATE" // Optional
   }
  • TG_DELIVERY_TOKEN: Token for your Telegram bot.
  • TG_DELIVERY_CHAT_ID: ID of the chat (group or private) to receive messages.
  • TG_DELIVERY_TEMPLATE: (Optional) Path to EJS template for messages. Defaults to a built-in template if not provided.

Usage

The module initializes automatically and listens for the core-order-after-order event to send notifications.

Changelog

version 2