Skip to content

On a schedule

Post a daily poll in a Telegram group

Each weekday at 9:00 your bot posts the same poll to your Telegram group, after closing yesterday's and posting its results.

Runs
On a schedule
Apps
Telegram
AI
Optional
Access
bot token (bot in the group)

Send this to your assistant

Create a ClickRuntime automation: every weekday at 9:00, close yesterday's poll in my team's Telegram group and post its results, then post today's poll "Where are you working today?" with the options Office, Remote and Off.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Many teams and communities ask the same question every day: who is in the office, who is coming to training, what should we discuss tonight. Someone has to remember to post it, and the results are lost in the scroll.

This automation posts the poll for you at a fixed time and wraps up the previous one with a one-line summary, so the group always sees today's question and yesterday's answer together.

It suits office teams, sports clubs, study groups and channels that run a daily vote or quiz.

What you get out of it

  • Nobody has to remember

    The poll goes out at 9:00 every weekday, even when the usual organiser is away.

  • Results without scrolling

    Yesterday's counts are posted as one line, so people see them without hunting for the old poll.

  • Closed polls stay closed

    Old polls are stopped before the new one is posted, so votes do not land on the wrong day.

  • Uses Telegram's own polls

    Members vote with one tap in the normal Telegram poll format.

  • Fresh questions if you want them

    Rotate a list or let the AI write a new question each day for discussion or quiz groups.

How it works

What happens, step by step

  1. At 9:00 on weekdays, ClickRuntime closes the poll it posted the day before.

  2. It posts a one-line summary of the results to the group.

  3. It posts today's poll with the question and options you chose.

  4. Optionally, your assistant can set it to write a new question each day with ClickRuntime's built-in AI.

Before it runs live

  • Connect Telegram

What you get

RunsOn a schedule
Post a daily poll in a Telegram grouptoday, 9:00Succeeded
Telegram · Team groupYesterday: Office 6 · Remote 4 · Off 1 📊 Where are you working today? ○ Office ○ Remote ○ Off

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Slack
  • Combine it with other Telegram steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
post_a_daily_poll_in_a_telegram_group.pyexample
from clickruntime import on_trigger, credentials, http, state

GROUP = -1001234567890
QUESTION, OPTIONS = "Where are you working today?", ["Office", "Remote", "Off"]

def tg(method, **params):
    r = http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{method}", json=params)
    r.raise_for_status()
    return r.json()["result"]

@on_trigger
def run(event):
    last = state.get("last_poll")
    if last:
        try:
            poll = tg("stopPoll", chat_id=GROUP, message_id=last)
            summary = " · ".join(f"{o['text']} {o['voter_count']}" for o in poll["options"])
            tg("sendMessage", chat_id=GROUP, text=f"Yesterday: {summary}")
        except Exception:
            pass  # poll was deleted or already closed
    msg = tg("sendPoll", chat_id=GROUP, question=QUESTION, options=[{"text": o} for o in OPTIONS], is_anonymous=False)
    state.set("last_poll", msg["message_id"])
    return {"poll": msg["message_id"]}

FAQ

Common questions

Are votes anonymous?
This version posts non-anonymous polls so people see who is in the office. Change one setting to make them anonymous; result counts work either way.
Can the question change each day?
Yes. Give your assistant a list of questions to rotate through, or ask it to use ClickRuntime's AI to write a new discussion or quiz question each morning.
Can it post a quiz with a correct answer?
Yes. Telegram supports quiz polls with a correct option and an explanation. Ask for quiz mode and supply the answers.
What permissions does it need?
bot token (bot in the group). Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in AI allowance.
How many runs does it use?
One run each time it runs (on a schedule). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Post a daily poll in a Telegram group” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.