telegram-init
Initialize Telegram configuration. Use when user wants to set up, configure, or connect their Telegram account for the first time.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
telegram-init
Initialize Telegram connection and configure sync settings.
Trigger Phrases
- "set up Telegram"
- "configure Telegram"
- "initialize Telegram"
- "connect Telegram"
- "telegram init"
Description
This skill initializes your Telegram connection by:
- Validating your Telegram API credentials
- Testing the session string authentication
- Listing all accessible groups and channels
- Optionally setting a default group for other commands
Prerequisites
Before using this skill, you must:
-
Get API credentials from https://my.telegram.org/apps
- Log in with your phone number
- Create an application
- Note your
API_IDandAPI_HASH
-
Generate a session string using:
python ${CLAUDE_PLUGIN_ROOT}/scripts/generate_session.pyThis will prompt for your phone number and verification code.
-
Add credentials to .env:
TELEGRAM_API_ID=your_api_id TELEGRAM_API_HASH=your_api_hash TELEGRAM_SESSION=your_session_string
Usage
Basic initialization:
python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_init.py
Set a specific group as default:
python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_init.py --group 1234567890
Output
- Lists all accessible groups with ID, type, and member count
- Updates
config/agents.yamlwith Telegram settings - Displays next steps for syncing messages
Warning
Using a user token may violate Telegram's Terms of Service. This tool is intended for personal use only:
- Archiving your own conversations
- Analyzing communities you actively participate in
Use at your own risk.
Exit Codes
-
0- Success -
1- Authentication error (invalid/expired session) -
2- Configuration error (missing credentials)
Related Skills
-
telegram-list- List groups and topics -
telegram-sync- Sync messages to local storage -
telegram-read- Read synced messages
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!