Notification For Telegram Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Send Telegram messages notification:
* When receive a new order in Woocommerce.
* When a Woocommerce order change status.
* New field in Woocommerce checkout page let customers add the own telegram nickname
* Low Stock Product nofications when a product is low stock conditions.
* Shows Telegram Nick link in admin order details page when present
* When receive new forms (supports WPForm , CF7 and Ninjaform)
* When new user subcribes or unsubscribes to mailchimp. MC4WP integration
* When new user registers.
* When users login fail.
* When someone adds a product in the Woocommerce cart.
* When a new Pending posts is received. (works with any post type)
* Say function to speak to make the bot say Something to the people
* Cron job detect and notify when Plugins & Core need to update.
* Send custom message with Shortcode anywhere in your WP.
* Should Work on Multisite
You can enable/disable every notification in the Plugin settings page.
To configure the plugin, you need a valid Telegram API token. Its easy to get starting a Telegram Bot.
You can learn about obtaining tokens and generating new ones in
this document
or follow the info in this post
You also need at least one “chatid” number, that is the recipient to the message will be send. To know you personal chatid number, search on telegram app for “@get_id_bot” or
click here OR another bot click here
Once You got the 2 fields save the configuration and try the “TEST” button .. you should receive a message in you telegram : “WOW IT WORKS” !! If not, check token and chatid fields again for the correct values.
this plugin is relying on a 3rd party service to geolocate the Ip address https://ip-api.com/
https://ip-api.com/docs/legal to see the services’ a terms of use and/or privacy policies
SHORTCODE EXAMPLE
[telegram_mess message="Im so happy" chatids="0000000," token="000000000:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" showsitename="1" showip="1" showcity="1" ]
SHORTCODE OPTIONS:
-
message : Your message to be sent. Example (message=”hello world”)
-
chatids : Recipient(s) who will receive your message separated by comma (example chatids=”0000000,11111111″) If empty , the shortcode will use default value in Plugin option page.
-
token: The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
if empty , the shortcode will use default value in Plugin option page. -
showsitename: if set to “1” appends sitename after the message. Defaultvalue is “0” Example (showsitename=”1″)
-
showip: if set to “1” appends user ip address after the message. Default value is “0” Example (showip=”1″)
-
showcity: if set to “1” appends user city name after the message. Default value is “0” Example (showcity=”1″)
USE SHORTCODE IN YOU PHP CODE
<?php
$date = date("d-m-Y");
do_shortcode('[telegram_mess message="'.$date .'" chatids="0000000," token="000000000:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" showsitename="1" showip="1" showcity="1" ]');
?>
HOOKS IN WOO ORDER NOTIFICATION:
we introduced 3 HOOKS so you can add things in message without changing the plug code (look the picture 8 for positons):
1) before the product list : (add order ID example)
<?php function nftb_order_before_items($order_id){
return "ORDER ID : ".$order_id;
} ?php>
2) after the product list: (add order Currency example)
<?php function nftb_order_after_items($order_id){
$order = wc_get_order( $order_id );
$data = $order->get_data(); // order data
return "Currency: ".$data['currency'];
} ?php>
3) at the end of the line of each individual product of the order: (add product slug example)
<?php function nftb_order_product_line($product_id){
$product = wc_get_product( $product_id );
return " | ".$product->get_slug()." ";
} ?php>
Suggestions for other Notification, hooks and others plug integrations are Welcome !!
Screenshots
-
This is the Global option page in you Dashboard. Enter Token Chatid
-
Choose which notification you want to receive
-
A shortcode example.
-
Order Telegram Notification
-
Login fails result on your Mobile app
-
Woocommerce Setting Tab
-
Cron Setting Tab keep update your system
-
Hook Position for custom data in Order Telegram Notification