Skip to content

SayfullahSayeb/WooCommerce-Telegram-Notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

WooCommerce Telegram Notification

A lightweight and secure WordPress plugin that sends real-time WooCommerce order notifications to your Telegram Bot or Group.

Features

  • Real-time Notifications: Receive instant alerts when order statuses change.
  • Customizable Triggers: Choose which order statuses (Pending, Processing, Completed, etc.) trigger a notification.
  • Detailed Order Info: Includes Order ID, Items, Totals, Payment Method, Billing Details, and Custom Checkout Fields.
  • Auto-Cleanup: Option to automatically delete previous status notifications for the same order to keep your chat clean.
  • Secure: Built with production-grade security, including capability checks, nonces, and rigorous data sanitization.
  • Developer Friendly: Clean, object-oriented code following WordPress coding standards.

Installation

  1. Create a Telegram Bot:
    • Message @BotFather on Telegram.
    • Use the /newbot command and follow the instructions to get your Bot Token.
  2. Get your Chat ID:
    • For private notifications: Message @userinfobot to get your User ID.
    • For group notifications: Add your bot to the group and use a bot like @MissRose_bot (command /id) to get the Group ID (usually starts with -100).
  3. Configure the Plugin:
    • Upload the plugin to your WordPress site.
    • Go to WooCommerce > Telegram Notification.
    • Enter your Token and Chat IDs.
    • Select the order statuses you want to monitor.
    • Click Save Changes.

Requirements

  • WordPress 5.0+
  • WooCommerce 3.0+
  • PHP 7.2+

About

Send order notifications to Telegram with order details

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages