Notification for Telegram

Notification for Telegram

Wordpress plugin

Install on Wordpress

App Details

The “Notification for Telegram” plugin for WordPress is a tool that allows you to send notifications and messages to a Telegram channel, group or user/s when specific events occur on your WordPress site. This plugin is useful for monitoring critical events on your site, such as new comments, new user registrations, publishing activities, New forms sent, Woocommerce orders, cart and lowstock, Mailchimp and more, by sending notifications directly to a Telegram channel or group or user/s of your choice. It also offers a shortcode to send Telegram notifications on every page of your website or in your code.

Receive Telegram messages notification when:

  • 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 notifications when a product is low stock conditions.
  • Shows Telegram Nick link in admin order details page when present
  • When receive new forms (supports Elementor Pro Form, WPForm , CF7 and Ninjaform)
  • When new user subscribes or unsubscribes to mailchimp. MC4WP integration
  • When new user registers.
  • When users login or fail login.
  • When new comment is posted.
  • When someone adds or remove 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 @RawDataBot 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 not present this field the shortcode will use default value in Plugin option page.

  • token: The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
    If not present this field, 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" ]'); ?> 

** WOOCOMERCE FILTER HOOKS **

We have created 4 filter hooks for WooCommerce order notification message. 4 new positions: Message Header, Message Footer, before Items, and after Items. And we have created a filter through which you can add custom code to product rows, and if you want, you can replace and customize the entire row. :

4 new Positions and code axample ( echo payment_status in the 4 positions)

<?php add_filter('nftb_order_header_message_hook', 'my_filter_function', 10, 1); add_filter('nftb_order_before_items_hook', 'my_filter_function', 10, 1); add_filter('nftb_order_after_items_hook', 'my_filter_function', 10, 1); add_filter('nftb_order_footer_message_hook', 'my_filter_function', 10, 1); function my_filter_function($order_id) { $order = wc_get_order($order_id); if ($order) { // Get order details $order_data = $order->get_data(); // Extract specific order information $payment_status = $order->get_status(); $payment_method = $order->get_payment_method(); } return "\r\n\r\n".$payment_method."(".$payment_status.")\r\n" ; } ?> 

Product rows Filter with 2 different behaviors ADD or REPLACE LINE

<?php add_filter('nftb_order_product_line_hook', 'my_item_line_function', 10, 3); function my_item_line_function($message ,$product_id, $item) { // ADD SOME CODE $product_id TO ORIGINAL row $message. $modified_data = $message. "->".$product_id. "\r\n"; // REPLACE Product ITEM LINE CODE WITH YOUR CODE without concatenate $message. $modified_data = $product_id. "\r\n"; return $modified_data; } ?> 

** USER LOGIN HOOKS **

<?php //Filter to add code on user login notification message add_filter('nftb_login_notification', 'custom_message_modifier', 10, 1); //Filter to add code on user registration notification message add_filter('nftb_user_registered_notification', 'custom_message_modifier', 10, 1); //Filter to add code when existing user fails login notification message add_filter('nftb_existing_user_fails_login_notification', 'custom_message_modifier', 10, 1); //Filter to add code when unknown user fails login notification message add_filter('nftb_unknown_user_fails_login_notification', 'custom_message_modifier', 10, 1); // ADD User registration date to notification message function custom_message_modifier( $user_id) { $user_info = get_userdata($user_id); if ($user_info) { $registration_date = $user_info->user_registered; $timestamp = strtotime($registration_date); $locale = 'it_IT'; // Italian locale $formatter = new IntlDateFormatter($locale, IntlDateFormatter::LONG, IntlDateFormatter::LONG, 'UTC'); $formatter->setPattern('d MMMM y HH:mm:ss'); $formatted_date = $formatter->format($timestamp); $message = "\r\n\r\nUser gistration Date: " . $formatted_date."\r\n\r\n"; } else { $message = "\r\n No info about user ! \r\n " ; } return $message; } ?> 

before the hooks we introduced 3 function so you can add things in message without changing the plug code
We keep them for compatibility but encourage the use of hooks!!
Position in the order message are: before items, after items, product_line

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,$item){ $product = wc_get_product( $product_id ); return " | ".$product->get_slug()." "; } ?php> 

Suggestions for other Notification, hooks and others plug integrations are Welcome !!

Pricing

Starting from $0 per month.

Check Out the Product Blobs Widget

By Common Ninja

Product BlobsTry For Free!

App Info

Rating

Reviewers

61 reviews

Tags

contact form
mailchimp
telegram
woocommerce

Developed By

rainafarai

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Maps

Maps plugins for Wordpress

Translation

Translation plugins for Wordpress

Chat

Chat plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Contact

Contact plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Forms

Forms plugins for Wordpress

Comments

Comments plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Comments

Comments plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Video Player

Video Player plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Security

Security plugins for Wordpress

Ads

Ads plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Membership

Membership plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Product Blobs for Wordpress logo

Product Blobs

Use product blobs to highlight key items, draw attention to featured products, and guide visitors toward faster and more confident purchase decisions.

Feedback Popup for Wordpress logo

Feedback Popup

Collect user insights with a feedback popup that reveals issues early, improves user experience, and captures valuable leads through a clear feedback form.

Website Translator for Wordpress logo

Website Translator

Add a translation widget to your site so users can switch languages easily and access content in their preferred language.

Reviews Trust Box for Wordpress logo

Reviews Trust Box

Display ratings from multiple platforms in a reviews trust box that builds credibility, social proof, and boosts conversions.

Threads Feed for Wordpress logo

Threads Feed

Show Threads posts in a live feed that keeps content fresh, builds social proof, and helps visitors engage on your site.

Testimonials Slider for Wordpress logo

Testimonials Slider

Add a testimonials slider to your site to showcase real customer feedback, build credibility, and increase trust that leads to higher conversions.

Tilted Image for Wordpress logo

Tilted Image

Use tilted image effects to rotate visuals, add creative style, and keep visitors engaged with dynamic images on your site.

TDEE Calculator for Wordpress logo

TDEE Calculator

Create custom calculators that let visitors enter values, get results, and make confident choices that support your business.

Poll for Wordpress logo

Poll

Create interactive polls with a poll widget that gathers real time feedback, boosts engagement, and helps you understand visitor opinions quickly and clearly.

Virtual Tour for Wordpress logo

Virtual Tour

Create immersive 360 virtual tours with interactive hotspots that let visitors explore spaces, view details clearly, and experience panoramic environments seamlessly.

Mastodon Feed for Wordpress logo

Mastodon Feed

Show Mastodon posts in a live Mastodon feed that keeps content fresh, strengthens your social presence, and helps visitors engage with your updates.

Support Form for Wordpress logo

Support Form

Use a support form that lets customers submit tickets, saves each request, sends notifications, and helps you manage support more efficiently.

More plugins

plugins You Might Like

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms