medusa-telegram-demo.mp4
All order related events pushed to telegram group so that user can see the highlights. User can navigte to link to get more order details.
- Medusa Backend/Frontend/admin Setup
- Telegram Bot Token
- Add Bot to Telegram Group
- Telegram group Chat Id
- Clone this repo
- Configure below paramers in backend medsa-config.js file
{
resolve: `medusa-notification-telegram`,
options: {
token: process.env.TELEGRAM_TOKEN || 'xxxxxxxxxxxx',
group_chat_id: process.env.TELEGRAM_GROUP_CHAT_ID || '-100xxxxxxxx',
admin_orders_url: 'http://localhost:7000/a/orders',
events_notifications: [
"order.placed" , "order.return_requested" ,"order.fulfillment_created" ,"order.shipment_created" ,
"order.payment_captured", "order.canceled", "order.updated" , "order.swap_created",
"order.refund_failed", "order.refund_created" , "order.return_action_required", "order.items_ returned",
"order.fulfillment_canceled"
]
}
- add local package using npm link with backend repo
- setup REDIS_URL in projectConfig, For notification queue