Skip to main content

Poll

  • Alert key: tiktok-poll
  • Source: TikTok
  • Event list label: Poll

Default message template

Poll started: {{title}}

Template variables

Use any of these in alert text, TTS, or chat templates. The same names appear under data.extraSettings.* when you subscribe via Overlay.on('alert').

Template variableOverlay payload fieldDescription
{{pollId}}data.extraSettings.pollIdNo description available yet.
{{title}}data.extraSettings.titleThe title of the Twitch Redemption that was redeemed
{{pollKind}}data.extraSettings.pollKindNo description available yet.
{{pollDuration}}data.extraSettings.pollDurationNo description available yet.
{{timeRemain}}data.extraSettings.timeRemainNo description available yet.
{{pollSponsor}}data.extraSettings.pollSponsorNo description available yet.
{{userCount}}data.extraSettings.userCountNo description available yet.

Example payloads

Each scenario below mirrors what Lumia emits in Overlay.on('alert', (data) => …).

New Poll

{
"alert": "tiktok-poll",
"dynamic": {
"value": "What should we do next?"
},
"extraSettings": {
"title": "What should we do next?",
"pollId": "1",
"pollKind": "normal",
"pollDuration": "",
"timeRemain": "",
"pollSponsor": "",
"userCount": ""
}
}

Variation conditions

Dimensions you can branch on when configuring alert variations:

  • RANDOM
  • EQUAL_STRING - Title is equal to
  • EQUAL_SELECTION - Poll kind is equal to
  • EQUAL_VARIABLE