Social Media Management Evolution: From Automation to AI and Human Collaboration

All Topics

Critical Event Notifications: Webhooks and Telegram Messages

Updated Oct 5, 2026

Get Telegram alerts or send webhook events when a phone goes offline, an account needs attention, a tool stops or publishing fails. A step-by-step setup guide.

A phone goes offline, an account needs verification, or a scheduled post fails. Critical event notifications let SMTasker alert you, so you know where to look without repeatedly checking the dashboard.

This walkthrough starts with Telegram messages, then covers webhooks for sending alerts to another system. You can use either channel or both.

Choose how you want to receive alerts

  • Telegram: receive a message in your own chat or a team group. Start here if you simply want to be notified.
  • Webhook: send event details to a receiving service—for example, a workflow your team has built to create support tickets. You will need a compatible receiver. Jump to the webhook setup if yours is ready.

SMTasker lets you select these five events separately for each channel:

Event in SMTasker What to check when it happens
Tool stopped automatically (with error code) The affected tool and the error code explaining why it stopped.
Account challenge or verification The account that needs a verification step.
Account logged out The account that needs to be signed in again.
Publishing failed The failed publishing task and its details.
Phone offline The phone’s connection to SMTasker.
These are alerts that need attention, not a message for every activity. Ordinary script errors are not included. An alert tells you to investigate; it does not fix the issue for you.

Step 1: Open Critical event notifications

In SMTasker: click Settings in the left sidebar, open API & MCP Access, then scroll down past the API-key section to Critical event notifications.

Full SMTasker Settings screen with Settings and the API and MCP Access tab outlined, plus an arrow to scroll down to notifications.
Start with the page and tab shown here. The notification controls are further down—not in the API-key form.

For the Telegram route below, have Telegram open as well. We will use a private chat for the first setup. A team group is an alternative.

Step 2: Create your Telegram notification bot

A bot is the Telegram account that sends your SMTasker alerts. You do not need to write a program for this setup.

  1. In Telegram: open the official @BotFather chat.
  2. Send /newbot and follow its prompts. Choose a name such as My SMTasker Alerts and an available username ending in bot.
  3. BotFather gives you a bot token. Keep it privately—you will paste it into SMTasker in Step 4.
  4. Open your new bot’s chat and press Start, or send /start.

Use a dedicated bot for these alerts to avoid conflicts with another integration. See Telegram’s BotFather instructions for the official creation process.

Treat the bot token like a password. Do not put it in screenshots, shared documents or support messages. Anyone with it may be able to control your bot.
Workflow guide showing that the bot token identifies the sending bot, while the Chat ID identifies the receiving private chat or group.
Two different details: the token identifies the bot; the Chat ID tells it where to send alerts. This is a concept guide, not a Telegram screenshot.
Want alerts in a team group instead?

Add your bot to the intended group and make sure it can send messages there. In that group, send /start@YourBotUsername, replacing YourBotUsername with its actual username. Then find that group’s Chat ID in the next step.

A command addressed to the bot works with Telegram’s group privacy mode; you do not need to turn privacy mode off just for this step. Telegram explains which messages bots receive.

Step 3: Find your Telegram Chat ID

The Chat ID is a number—not your phone number or @username. Telegram can show it in the details of the message you just sent your bot.

  1. Open a private/incognito browser window.
  2. Paste the address below into the address bar. Replace YOUR_BOT_TOKEN locally with your token, keeping the word bot immediately before it. Open the address directly, not as a search.
https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates

Find message → chat → id in the response. Copy that number for the intended chat, including any minus sign. Do not copy update_id or message_id. Close the private window afterwards.

Illustrative Telegram response fragment highlighting message.chat.id as the number to copy, with a reminder to retain the minus sign for group IDs.
This example only shows where the number appears. Use the ID returned for your own chat.

If result is empty, send another message to your bot and refresh. If Telegram reports a webhook conflict, use a fresh dedicated bot or get help; do not remove an existing integration. See the official getUpdates reference.

The completed address contains your secret token. Never share it or use a third-party token lookup site. If this step is unfamiliar, ask SMTasker support to guide you without sending them your token.

Step 4: Connect Telegram in SMTasker

Back in SMTasker: under Critical event notifications, use the Telegram card on the right.

  1. Paste the token from BotFather into Bot token.
  2. Paste your private chat or group number into Chat ID.
  3. Set Group events for to 0 for this first setup. This requests alerts without a grouping delay.
  4. Turn on the switch at the top of the Telegram card.
Full scrolled SMTasker screen with the Telegram Bot token, Chat ID, Group events for and enable switch annotated in order.
The Telegram fields are on the right. This setup screenshot shows empty fields and the channel off; it does not show an activated connection.

Prefer fewer messages? Set Group events for to a value from 1 to 1440 minutes instead. For example, 15 groups events into a digest—a summary—rather than requesting an immediate alert for each event. No events means no message. Telegram and Webhook can have different grouping values.

Step 5: Choose your events and save

Scroll a little further to Events to send. Once Telegram is enabled, choose the boxes in the Telegram column. For a first setup, you can select all five so you receive each type of critical alert.

Click Save notifications below the table. This applies both your channel settings and event choices. If SMTasker shows a validation error, correct the indicated field and save again.

Full SMTasker screen showing five event rows, separate Webhook and Telegram columns, and the Save notifications button outlined.
Choose events in the column for the channel you enabled, then save. In this reference screenshot both channels are off, so the grey checked boxes are disabled—not active delivery choices.

Step 6: Check that alerts reach you

After saving, leave this page and return to confirm your channel and event choices remain set. Saving the form alone does not confirm that Telegram can deliver a message.

When a selected event occurs, check your bot’s chat or the chosen group. In SMTasker, scroll to Delivery status and click Refresh status.

Full SMTasker screen highlighting Queued deliveries, Last delivery UTC and Refresh status. The reference screen shows zero queued deliveries and None yet.
Use delivery status alongside your destination. “None yet” is not evidence of a completed test.
  • Queued deliveries: items waiting to be delivered. Grouping or a retry delay can make them wait.
  • Last delivery (UTC): delivery timing displayed in UTC. Compare it with the event you are checking.
  • Nothing has arrived yet? First check whether a selected event has occurred since setup. There is no message when there are no events.

The current panel does not include a test-message button. Do not disconnect a working phone or log out a live account just to force an alert. Wait for a qualifying event, or ask support to help you check the setup safely.

Your first successful result: an alert for a selected event appears in the intended chat. Open SMTasker, inspect the affected phone, account or tool, and address the cause.

Optional: Send alerts to another system with a webhook

A webhook is a way for SMTasker to send event details to another service automatically. For example, your team could build a workflow that receives a publishing-failure event and creates a support ticket. SMTasker sends the event; the receiving service performs that follow-up.

Concept workflow from a selected SMTasker event to a trusted receiver that verifies it, then to a team workflow such as creating a support ticket.
A webhook connects systems. It does not create the receiving workflow for you.

First, get the receiving details

Ask the person setting up your receiving service for:

  • A publicly accessible HTTPS webhook URL that accepts SMTasker’s event data.
  • A signing secret, matching the receiver’s configuration. This is a private shared value used to check that an alert really came from SMTasker. The interface specifies 16–256 characters.

A website homepage, local computer address or the MCP server URL from the top of the page is not a substitute for a webhook receiver. Use a trusted service: alerts can contain details about your phones, accounts and tools.

Then, connect it in SMTasker

  1. Go to Settings → API & MCP Access → Critical event notifications.
  2. In the Webhook card, paste the receiver’s address into Webhook URL.
  3. Enter the matching Signing secret. Do not use your SMTasker login password or Telegram token.
  4. Set Group events for to 0 for no grouping delay, or choose a summary interval.
  5. Turn on Webhook. Under Events to send, choose events in the Webhook column, then click Save notifications.
Full SMTasker notification screen with the Webhook URL, signing secret, grouping interval and enable switch outlined on the left.
The Webhook card uses a receiver URL and signing secret—not the Telegram details on the right.

After a selected event, use Refresh status and ask your receiver’s owner to confirm the event arrived and the intended workflow ran. If you enabled both channels, check each destination separately.

Technical handoff: details for the person building your receiver

SMTasker sends an HTTP POST with JSON containing version: 1 and an events array. Events contain a stable id, kind, occurredUtc, code, message, and relevant phone, account or tool IDs.

  • Verify X-SMTasker-Signature: sha256= followed by the lowercase hexadecimal HMAC-SHA256 of timestamp + "." + rawBody, using the signing secret.
  • Read the Unix-seconds timestamp from X-SMTasker-Timestamp. Reject stale timestamps and verify against the original raw request body.
  • Deduplicate by event ID: retries after an uncertain response may deliver an event again.
  • Return HTTP 2xx to acknowledge receipt. Redirects are not followed.

The same details are available in SMTasker under Delivery behavior & webhook details.

If an alert does not arrive

Check in this order. Start with the shared setup before changing tokens or destinations.

What you see What to check next
Event boxes are grey Enable the intended channel above the table. Choose its events, then save.
“None yet” and no alert Confirm a selected critical event occurred after setup. Ordinary script errors do not qualify.
An alert seems delayed Check the grouping interval and queued deliveries. Failed deliveries retry after 30 seconds, with progressively longer waits up to one hour; a provider’s requested delay can extend that.
Telegram still receives nothing Check the token, the intended Chat ID and that you started the bot. For a group, confirm the bot is a member and can send messages.
The webhook receives nothing or rejects it Ask the receiver’s owner to check HTTPS reachability, the URL, signature verification and its response. It must acknowledge with HTTP 2xx, without a redirect.

Delivery is limited to six batches per minute per channel, so “immediate” does not mean guaranteed arrival within a fixed number of seconds. During a retry pause, new events wait too.

If you need help, send SMTasker support the channel, event type, approximate time and what Delivery status shows. Leave out bot tokens and signing secrets.

Change or stop your notifications

Return to the same section, adjust the events or grouping interval, and click Save notifications. To stop a channel, turn off its switch and save.

Changing delivery can clear waiting alerts. Turning a channel off, unselecting an event or changing the destination discards the affected queued deliveries. A request that has already started may still finish.

Once your alerts are reaching the right place, you can spend less time checking for problems and focus on the ones that need your attention.

Was this article helpful?
Back to top