JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 36
  • Score
    100M100P100Q92678F
  • License MIT

🚀 A secure and easy-to-use CLI tool for generating Telegram session strings. Perfect for Telegram client development and automation projects.

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

    npm version License: MIT

    简单、安全的 Telegram 会话字符串生成工具。通过 npx 一键运行,交互式引导输入 api_id/api_hash,快速生成会话字符串,用于客户端开发与自动化任务。

    使用方法

    # 使用 npx 直接运行(推荐)
    npx telegram-session-generator
    
    # 或者全局安装
    npm install -g telegram-session-generator
    
    # 运行
    telegram-session-generator
    # 或
    tsg

    使用方法 (Docker)

    如果你更喜欢使用 Docker,可以直接运行预构建的镜像:

    docker run --rm -it dba18714/telegram-session-generator

    如果你想自己构建镜像:

    # 克隆仓库
    git clone https://github.com/dba18714/telegram-session-generator.git
    cd telegram-session-generator
    
    # 构建镜像
    npm run docker:build
    
    # 运行容器
    npm run docker:run

    更多 Docker 使用详情请参考 DOCKER.md

    获取 API 凭据

    运行工具前,请先获取 Telegram API 凭据:

    1. 访问 https://my.telegram.org
    2. 登录你的 Telegram 账号
    3. 创建一个新的应用程序
    4. 获取 api_idapi_hash

    运行工具时会提示你输入这些凭据。

    开发维护

    详情请参考 DEVELOPMENT.md

    许可证

    MIT License - 详见 LICENSE 文件。