Telegram Import

# telegram-import Skill

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Telegram Import" with this command: npx skills add telegram-import

telegram-import Skill

将 Telegram 消息从 SQLite 数据库增量导入 LanceDB 向量库。

数据源

  • DB: D:\chat\telegram_messages.db
  • : telegram_messages
  • 字段: id, group_name, group_id, message_id, date, sender_id, sender_name, message, matched_keywords, is_reply, media_type, has_6_digit_number, created_time

目标存储

  • LanceDB: D:\edata.lance
  • Checkpoint: D:\edata.lance\temp\telegram.ckpt(pickle 格式,断点续传)

Schema

字段类型说明
idstringtelegram:{group_id}:{message_id}
textstring消息文本
vectorfloat[2560]Qwen3-Embedding-4B 向量
categorystring固定 telegram
scopestring固定 shared
importancefloat固定 0.5
timestampint消息时间戳(Unix)
metadatastringJSON:group_name, group_id, message_id, sender_id, sender_name, matched_keywords, is_reply, media_type, has_6_digit_number

Embedding

  • LM Studio: http://127.0.0.1:1234/v1/embeddings
  • Model: text-embedding-qwen3-embedding-4b
  • 维度: 2560

执行命令

python.exe "C:\Users\admin\.openclaw\workspace\skills\telegram-import\scripts\chunk_db.py" telegram

增量逻辑

  1. 启动时加载 telegram.ckpt 恢复 seen_keyslast_idx
  2. last_idx + 1 继续扫描 DB
  3. 跳过 seen_keys 中已存在的 key
  4. 过滤空消息(message 为 NULL 或空字符串)
  5. 每 500 行保存一次 checkpoint

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated