Connic

Telegram Personal Assistant

Multimodal Telegram assistant that processes text, images, voice, video, and documents. Searches the web, saves notes and knowledge, and schedules follow-up reminders with persistent sessions.

communicationbeginnerTelegramView on GitHub
connic init my-project --templates=telegram-personal-assistant

Overview

A multimodal personal assistant living inside Telegram that handles text, images, voice memos, audio, video, and documents. Middleware injects the current UTC time into each message for schedule calculations and routes replies back via chat ID. Persistent sessions keyed by chat ID maintain conversation history across messages. The agent searches the web for real-time information, reads full pages, saves and retrieves quick notes via the database, stores longer-form knowledge for semantic retrieval, and schedules follow-up reminders using trigger_agent_at with relative delays up to 7 days. Replies are formatted with Telegram HTML tags and sent via the outbound connector.

Use cases

Personal assistant with reminders

A chatbot that remembers your preferences, saves notes, answers questions with web search, and schedules follow-up reminders up to 7 days ahead.

Team knowledge bot

Deploy in a group chat to collect and recall team knowledge, meeting notes, and reference material across conversations.

Research companion

Search the web, read full pages, store findings in the knowledge base, and retrieve them later with natural language queries.

Architecture

Telegram (inbound)
telegram-assistant
Persistent Session
Web Search
Notes Database
Knowledge Base
Scheduled Trigger
Telegram (outbound)

Scaffolded project structure

Running connic init my-project --templates=telegram-personal-assistant creates this file tree.

telegram-personal-assistant/
  agents/
    telegram-assistant.yaml
  tools/
    assistant_tools.py
  middleware/
    telegram-assistant.py
  requirements.txt
  README.md

Get started

Install the template, create a Connic project, and deploy. Choose Git (automatic on push) or CLI (works with any provider).

Prerequisites

  • Python 3.10+
  • A Connic account (create a project first)
  • API key for your LLM provider (e.g. Gemini, OpenAI) to add in project variables
Create project
1

Install and scaffold

Install the SDK and create a project from this template.

terminal
pip install connic-composer-sdk
connic init my-project --templates=telegram-personal-assistant

Then cd my-project

2

Deploy

Pick your deployment method. Git auto-deploys on push; CLI works with GitLab, Bitbucket, or no Git.

Git integration

  1. In Connic: Project Settings → Git Repository, connect your GitHub repo
  2. Settings → Environments: map branch (e.g. main) to Production
  3. Push your scaffolded project to that repo
terminal
git add .
git commit -m "Add Telegram Personal Assistant template"
git push origin main

CLI deploy

  1. In Connic: Project Settings → CLI, create an API key and copy project ID
  2. Run connic login in your project folder
  3. connic test to try with hot-reload, or connic deploy for production
terminal
connic login
connic test    # Ephemeral dev env with hot-reload
connic deploy # Deploy to production
3

Connect and configure

Create a Telegram bot via @BotFather, then add a Telegram inbound connector and a Telegram outbound connector with the bot token. The webhook is registered automatically. Add your LLM provider API key in Project Settings → LLM Provider API Keys.

Template source

Browse the full template, contribute improvements, or fork for your own use.

connic-org/connic-awesome-agents/tree/main/telegram-personal-assistant