Skip to content

On a schedule

Send birthday greetings on Telegram and Teams

On each person's birthday a greeting goes out on Telegram and is posted in your Teams channel, without you having to remember.

Runs
On a schedule
Apps
Microsoft Teams, Telegram
AI
Not needed
Access
Teams ChatMessage.Send; Telegram bot

Send this to your assistant

Create a ClickRuntime automation: every morning at 8, check my birthday list and send a greeting on Telegram and post one in our Teams channel for anyone whose birthday is today.

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

A team lead wants to mark birthdays for a remote team and a few close clients, but they live in a list she only remembers to check after the day has passed. Late wishes feel worse than none.

A morning check that sends the greeting on the right day means nobody is missed. The team sees the message in Teams and can add their own wishes.

What you get out of it

  • Nobody is forgotten

    Greetings go out on the day itself. You keep the habit without relying on memory.

  • The team joins in

    A post in the Teams channel prompts others to add their wishes. Small moments like this help remote teams feel connected.

  • Personal contacts on Telegram

    Friends or clients who use Telegram get a direct message. One list covers both work and personal greetings.

  • A list that is easy to keep up

    Adding a new colleague means adding one line. There is no calendar full of recurring birthday events to manage.

How it works

What happens, step by step

  1. Every morning at 8, ClickRuntime checks your birthday list for today's date.

  2. If nobody has a birthday today, it stops there.

  3. For each birthday, it sends a greeting on Telegram to that person or chat.

  4. It also posts a birthday message in your Teams channel so the team can join in.

Before it runs live

  • Connect Microsoft Teams
  • Connect Telegram

What you get

RunsOn a schedule
Send birthday greetings on Telegram and Teamstoday, 9:00Succeeded
Teams · #general🎂 It's the Northwind account lead's birthday today!

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
  • 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 Microsoft Teams and 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.
birthday_greetings_on_teams_and_telegram.pyexample
from datetime import date
from clickruntime import on_trigger, credentials, http, state

TEAM_ID, CHANNEL_ID = "your-team-id", "your-channel-id"

@on_trigger
def run(event):
    today = date.today().strftime("%m-%d")
    people = [p for p in state.get("birthdays") or [] if p["date"][-5:] == today]
    if not people:
        return {"greeted": 0}
    tg = f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage"
    graph = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
    for p in people:
        text = p.get("message") or f"Happy birthday, {p['name']}! Wishing you a great year ahead."
        if p.get("telegram_chat_id"):
            http.post(tg, json={"chat_id": p["telegram_chat_id"], "text": text})
        http.post(f"https://graph.microsoft.com/v1.0/teams/{TEAM_ID}/channels/{CHANNEL_ID}/messages", headers=graph,
                  json={"body": {"content": f"🎂 It's {p['name']}'s birthday today!"}})
    return {"greeted": len(people)}

FAQ

Common questions

Where is the birthday list kept?
It is a list of names, dates and where to send each greeting, stored with the automation in your ClickRuntime dashboard. You can update it at any time.
Can I write a different message for each person?
Yes. Each entry can carry its own message, and anyone without one gets the default greeting.
What about birthdays on weekends?
Greetings go out on the day itself, weekends included. You can move weekend birthdays to Friday for the Teams post if you prefer.
What permissions does it need?
Teams ChatMessage.Send; Telegram bot. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's 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 “Send birthday greetings on Telegram and Teams” from your assistant

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