telegram-to-notebook

telegram-to-notebook is a command for Claude Code from CreatmanCEO/notebooklm-claude-workflows. It costs 0 tokens per session (675 once invoked), scanned A, original, MIT.

A command that imports a Telegram chat export into NotebookLM, Google's tool for asking questions about uploaded sources. It can organize forum chats by discussion topic and keep text, code, PDFs, and documents while filtering media such as stickers and GIFs.

In plain words
What is it for?
Use it to import all or selected Telegram topics, preserve useful written material, and prepare the chat for NotebookLM analysis.
Why use it?
It converts a large chat export into sources that are easier to search, summarize, and analyze.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to import all or selected Telegram topics, preserve useful written material, and prepare the chat for NotebookLM analysis.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/creatmanceo/notebooklm-claude-workflows/telegram-to-notebook
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/CreatmanCEO/notebooklm-claude-workflows

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for telegram-to-notebook

README.md
[![agentmods](https://agentmods.dev/badge/commands/creatmanceo/notebooklm-claude-workflows/telegram-to-notebook.svg)](https://agentmods.dev/commands/creatmanceo/notebooklm-claude-workflows/telegram-to-notebook)
Your own site
<a href="https://agentmods.dev/commands/creatmanceo/notebooklm-claude-workflows/telegram-to-notebook"><img src="https://agentmods.dev/badge/commands/creatmanceo/notebooklm-claude-workflows/telegram-to-notebook.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00675
Opus 5 $0.00000 $0.00338
Sonnet 5 $0.00000 $0.00135
Haiku 4.5 $0.00000 $0.00068

Measured 8d ago against content hash 8d191792b176, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

telegram-to-notebook scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/telegram-to-notebook.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/telegram-to-notebook — Импорт Telegram-чата в NotebookLM

Загружает экспорт Telegram-чата в NotebookLM. Поддерживает форум-чаты с темами (topics). Фильтрует стикеры, GIF, видео. Сохраняет текст, код, PDF, документы.

Параметр

$ARGUMENTS — путь к JSON-файлу экспорта Telegram ИЛИ название чата

Предварительный шаг (пользователь делает сам)

  1. В Telegram Desktop: чат → три точки → Export chat history
  2. Формат: JSON (Machine-readable)
  3. Медиа — можно не снимать, скрипт сам отфильтрует

Действия

Шаг 1: Определи тип чата

  1. Запусти скрипт с --list-topics чтобы определить структуру:
    python ~/notebooklm-claude-toolkit/scripts/telegram-chunker.py "$ARGUMENTS" --list-topics
    
  2. Если чат содержит топики (форум) — предложи варианты:
    • По темам (--per-topic): отдельный файл на каждую тему — лучше для целевого анализа
    • Выборочно (--per-topic --topics "Docker,FAQ"): только конкретные темы
    • Всё вместе (без флагов): один файл с заголовками тем — лучше для общего обзора

Шаг 2: Конвертация

  1. Запусти скрипт с выбранным режимом:
    # Все темы по отдельности
    python ~/notebooklm-claude-toolkit/scripts/telegram-chunker.py "$ARGUMENTS" --per-topic
    
    # Конкретные темы
    python ~/notebooklm-claude-toolkit/scripts/telegram-chunker.py "$ARGUMENTS" --per-topic --topics "Docker,Feature requests"
    
    # Всё вместе (обычный чат или общий обзор)
    python ~/notebooklm-claude-toolkit/scripts/telegram-chunker.py "$ARGUMENTS"
    
  2. Скрипт выведет: количество сообщений, слов, пропущенных (стикеры/GIF/видео), созданных файлов

Шаг 3: Загрузка в NotebookLM

  1. Создай ноутбук "Telegram: [название чата]" через notebook_create
  2. Для каждого файла из output-dir:
    • Прочитай содержимое файла
    • Добавь через source_add:
      • source_type: "text"
      • text: содержимое файла
      • title: имя файла (например "Telemt_Docker")
      • wait: true
  3. Показывай прогресс: "Загружено 3/13 файлов..."
  4. Покажи итог: название ноутбука, ID, количество источников, слов
  5. Предложи задать вопрос через notebook_query

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 58 lines · 0 tokens per session scan A 8d191792b176

Subscribe to this mod's changes

telegram-to-notebook is a command published in the GitHub repository CreatmanCEO/notebooklm-claude-workflows (5 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 675 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other commands, from other repositories

create-pdf

Generate a professional PDF document using Python and reportlab.

YousefNabil-SOC/claude-apex · 0 tokens

ars-format-convert

ARS academic-paper format-convert mode — convert to LaTeX / DOCX / PDF / Markdown.

Imbad0202/academic-research-skills · 27 tokens

council-extract

Extract a completed Perplexity Model Council response from the current browser tab, converting it to structured markdown with model attribution, and save to disk.

intellegix/intellegix-code-agent-toolkit · 0 tokens

latex-polish

Inspect a cleanly compiling LaTeX document for source pathologies and rendered visual defects by linting and viewing selected PDF pages. Use when compilation succeeds but title pages, floats, tables, figures, or layout still need publication-quality review. Not for basic compilation health; use $latex-health-check.

flonat/flonat-research · 60 tokens

latex

Compile one specified LaTeX document, resolve build errors, audit citations, and report build quality. Use when a .tex source must be built or a concrete compilation failure repaired. Not for corpus-wide build checks, visual polish after a clean build, or creating a project; use $latex-health-check, $latex-polish, or…

flonat/flonat-research · 72 tokens

bib-filter

Filter a LaTeX project's bibliography to the entries actually cited, with Overleaf-source resolution, temporary staging, validation, approval-gated canonical replacement, and compilation. Use before submission or after large revisions.

flonat/flonat-research · 41 tokens