You can track user events from any platform and then message users in Telegram from a Customer Journey. Telegram is now a native Pushwoosh channel, so you no longer need a webhook to the Telegram Bot API.
-
Track user events
-
Web: the Web SDK automatically posts the built-in
PW_SiteOpenedevent on every page open, withurl,title,pathanddevice_typeattributes. See Default events. Note that the Web SDK's event handlers (subscribe,unsubscribe,permission-granted, and so on) only report subscription and permission changes — they are not used for tracking user actions. -
Custom events (website, server-side, bot): create the event in Audience > Events first, then send it with the
/postEventAPI method or the SDK'spostEvent. See Custom events.
-
Web: the Web SDK automatically posts the built-in
-
Send the Telegram message
- Connect your bot in Settings > Configure platforms. Then create a journey with a Trigger-based entry on the TelegramBotStarted event (fired when a user sends
/startto your bot), and add the Telegram element to the canvas. - Enter the body in Message text. Keep it text-only and within 4096 characters. Messages reach users who have started your bot and entered the journey.
- You can personalize the text with tags and Liquid placeholders, and attach voucher codes by enabling Use vouchers and adding
{{voucher}}to the text. - If Telegram reports that the user blocked or removed the bot, the chat was not found, or the account was deactivated, Pushwoosh unsubscribes the user from Telegram. These sends appear as Chat Unavailable (410007) on the Errors tab of the message stats.
- See Journey elements — Telegram and Send Telegram messages in Customer Journey.
- Connect your bot in Settings > Configure platforms. Then create a journey with a Trigger-based entry on the TelegramBotStarted event (fired when a user sends
If you need to reach a system that has no native channel, the Webhook element is still the right tool; see the webhook samples for a payload example.
Comments
0 comments
Please sign in to leave a comment.