Skip to content

Working with Content

Learn how to work with different types of content in tg-note.


Supported Content Types

  • ✅ Text messages
  • ✅ Forwarded messages from channels
  • ✅ Photos with captions
  • ✅ Documents
  • ✅ Links and URLs
  • ✅ Multiple consecutive messages

Sending Text Messages

Simply send any text to save it:

This is an interesting article about AI...

The bot will:

  1. Receive your message
  2. Analyze the content
  3. Categorize it
  4. Save as Markdown
  5. Commit to Git

Forwarding Messages

Forward messages from any chat or channel:

  1. Find the message
  2. Tap Forward
  3. Select your tg-note bot

Works with:

  • Channel posts
  • Group messages
  • Media with captions
  • Links

Sending Multiple Messages

Send consecutive messages for automatic grouping:

First message...
(wait)
Second message...
(wait)
Third message...

Messages sent within 30 seconds (configurable) are grouped into one note.


Send article URLs:

https://arxiv.org/abs/12345

With Qwen Code CLI, the bot will:

  • Fetch the article
  • Analyze content
  • Extract key info
  • Save structured note

Processing Workflow

graph LR
    A[Content] --> B[Analysis]
    B --> C[Categorization]
    C --> D[Markdown]
    D --> E[Git Commit]
    E --> F[Notification]

Output Structure

Your KB will have this structure:

knowledge_base/
├── topics/
│   ├── ai/
│   │   └── 2025-10-03-neural-networks.md
│   ├── biology/
│   │   └── 2025-10-03-crispr.md
│   └── physics/
│       └── 2025-10-03-quantum.md
└── index.md

See Also


Connections and Summaries

  • После обработки появляется секция «Связанные сущности», где можно увидеть файлы, папки и конкретные фрагменты, связанные с результатом.
  • Новые материалы из текущего запуска автоматически исключаются, поэтому раздел показывает только уже существующие элементы базы знаний.
  • Поддерживаются агрегированные связи (granularity: summary) — одна запись может ссылаться сразу на несколько файлов или целую папку. Для точечных ссылок используйте granularity: detailed и добавляйте file + anchor.
  • Каждая запись сопровождается чётким описанием связи (1–2 предложения), чтобы быстро понять, зачем этот объект важен.
  • В секции с изменениями по-прежнему отображаются GitHub-ссылки, если база знаний подключена к репозиторию.