Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (telegram-session-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Telegram Session Generator
简单、安全的 Telegram 会话字符串生成工具。通过 npx 一键运行,交互式引导输入 api_id/api_hash,快速生成会话字符串,用于客户端开发与自动化任务。
使用方法
# 使用 npx 直接运行(推荐)
npx telegram-session-generator
# 或者全局安装
npm install -g telegram-session-generator
telegram-session
获取 API 凭据
运行工具前,请先获取 Telegram API 凭据:
- 访问 https://my.telegram.org
- 登录你的 Telegram 账号
- 创建一个新的应用程序
- 获取
api_id
和api_hash
运行工具时会提示你输入这些凭据。
许可证
MIT License - 详见 LICENSE 文件。