This gist contains a set of MacroDroid macros exported to .mdr
format.
The macros are designed to send notifications about calls, SMS, and Wi-Fi events directly to a Telegram chat using the Telegram Bot API.
-
Outgoing call notifications
Sends a Telegram message when an outgoing call is made, including:- Phone number
- Contact name
- Battery level
- Current Wi-Fi network
-
Incoming call notifications
Sends details about incoming calls to Telegram:- Caller number & name
- Battery status
- Wi-Fi network info
-
Incoming SMS notifications
Forwards incoming SMS messages to Telegram:- Sender name and number
- Message content
- SIM information (SIM name, operator, ID)
- Battery and Wi-Fi status
-
Wi-Fi connection notifications
Sends a Telegram alert when the device connects to any Wi-Fi network, with:- SSID
- Location (coordinates, link, timestamp, speed)
- Battery level
- MacroDroid app (Android automation tool)
- Telegram bot token (create one via @BotFather)
- Telegram chat ID (for a group/channel or direct chat with the bot)
-
Import the
.mdr
file into MacroDroid:- Open MacroDroid → Menu → Import/Export → Import Macros.
-
Edit each HTTP Request action:
-
Replace the placeholder bot token in the URL:
https://api.telegram.org/bot0000000000:AAAA-123456789abcdefgh/sendMessage
with your bot token:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/sendMessage
-
Replace the placeholder chat ID (
-1000000000000
) with your own chat ID.
-
-
Save and enable the macros.
- Исходящий звонок себе – Outgoing call notifications
- Звонки себе – Incoming call notifications
- SMS себе – Incoming SMS forwarding
- Wi-Fi подключен – Wi-Fi connection notifications (with location info)
- All macros are grouped under Без категории (“Uncategorized”).
- Messages include emojis and formatted text for better readability in Telegram.
- Location-based data requires MacroDroid location permissions.
These macros use Telegram’s Bot API for notifications.
Be cautious with sharing phone numbers, SMS content, or location data to external services.
Always protect your bot token and chat ID.