Directory / plugin

Fatal message to Telegram

v1.6 ยท by Phil

Sends fatal PHP errors to Telegram using an early MU-plugin loader. Ideal for monitoring production crashes.

About this plugin

Fatal message to Telegram monitors your WordPress site for fatal PHP errors and instantly sends detailed crash reports to your Telegram chat.

Built for developers and sysadmins, this plugin provides early crash detection using a custom MU-plugin loader to hook into PHP before other plugins are even initialized.

Features

  • ๐Ÿ“ก Sends fatal PHP errors (E_ERROR, E_PARSE, etc.) directly to Telegram
  • โš™๏ธ Configurable via WordPress admin (Tools > Fatal message to Telegram)
  • ๐Ÿงฑ Loads early using a mu-plugin for maximum reliability
  • ๐Ÿ” Automatically installs/removes the loader during plugin activation/remove
  • ๐Ÿ’ฌ Includes developer-friendly helper functions for manual debugging
  • ๐Ÿงช Send test message to verify bot configuration

Helper Functions

Sends a plain string message to your configured Telegram chat.
_fttg(“Just a test string”);

Sends each key-value pair of an array as a separate Telegram message.
_fttg_array([‘a’ => 1, ‘b’ => 2, ‘c’ => ‘hello’]);

External services

This plugin connects to the following external services:

Telegram Bot API

Used to send login alert messages to your Telegram bot/chat.
๐Ÿ”— Telegram API Docs
๐Ÿ“œ Telegram Privacy Policy

Data sent: Chat ID, bot token (from your settings), and message with IP/location/user agent info.
Data is only sent when someone logs in and notifications are enabled.
All data is not stored locally exclude Chat ID, bot token from your settings.

Plugin tags