Daily
Send a daily quiz question to Telegram and SMS
Every morning one new question from your list goes to your Telegram group and your SMS subscribers, with no repeats until the list runs out.
- Runs
- Daily
- Apps
- Telegram, Twilio
- AI
- Not needed
- Access
- Telegram bot; Twilio messaging
Send this to your assistant
Create a ClickRuntime automation: every morning at 8, pick a question I haven't used yet from my quiz list and send it to my Telegram group as a poll and to my SMS list.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A language teacher keeps students practising between lessons with one short question a day. Some students live in Telegram; others, often older learners, only read texts. Picking a question and sending it twice every morning is a chore that slips on busy days.
The list of questions is written once. Each morning a fresh one goes out to the Telegram group as a poll and to the SMS list as a text, and the teacher's mornings stay free.
What you get out of it
A habit that keeps going
A question at the same time every day builds a routine that students rely on, even when the teacher is away.
Reaches people where they read
Telegram polls for the chat-app crowd and texts for everyone else, from the same list.
No repeats
Questions already used are remembered, so nobody sees the same one twice until the whole list has been sent.
Polls show who's engaged
Telegram poll answers give a quick sense of how the group is doing.
How it works
What happens, step by step
Every morning at the time you choose, ClickRuntime picks a question that hasn't been sent yet.
It posts the question to your Telegram group as a poll.
The same question, with lettered options, is texted to each number on your SMS list.
The question is marked as used so it won't come up again until the list is finished.
Before it runs live
- Connect Telegram
- Connect Twilio
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Telegram and Twilio steps into one automation
Under the hood
The code that runs this automation
import random
from clickruntime import on_trigger, credentials, http, state
from twilio.rest import Client
QUESTIONS = [{"q": "Which word means 'library' in Spanish?", "options": ["librería", "biblioteca", "libro"]}]
SMS_LIST = ["+15550101", "+15550102"]
@on_trigger
def run(event):
used = state.get("used") or []
unused = [i for i in range(len(QUESTIONS)) if i not in used]
if not unused:
used, unused = [], list(range(len(QUESTIONS)))
pick = random.choice(unused)
item = QUESTIONS[pick]
token = credentials.secret("TELEGRAM_BOT_TOKEN")
http.post(f"https://api.telegram.org/bot{token}/sendPoll",
json={"chat_id": "-1001234567890", "question": item["q"], "options": item["options"]})
sms = Client(credentials.secret("TWILIO_ACCOUNT_SID"), credentials.secret("TWILIO_AUTH_TOKEN"))
text = item["q"] + " " + " ".join(f"{'ABC'[i]}) {o}" for i, o in enumerate(item["options"]))
for number in SMS_LIST:
sms.messages.create(to=number, from_="+15550199", body=text)
state.set("used", used + [pick])
return {"sent": pick}FAQ
Common questions
Where do the questions live?
What happens when every question has been used?
Do SMS subscribers see the answer options?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get a Telegram and SMS alert when crypto prices drop
When Bitcoin or Ethereum falls past the drop you set over 24 hours, you get one alert on Telegram and by text.
See how it worksText back missed callers and tell me on Telegram
When you miss a call, the caller gets a text straight away and you get a Telegram message with their number.
See how it worksLog receipts by sending a photo to Telegram
Snap a receipt, send it to your bot, and the merchant, date and amount are logged, with an SMS confirming what was saved.
See how it worksKeep exploring
Set up “Send a daily quiz question to Telegram and SMS” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.