SessionConvertor
Session Convertor is a simple, yet powerful tool that facilitates the conversion of Pyrogram and Telethon sessions to Gramjs string sessions.
Install / Use
/learn @Freddywhest/SessionConvertorREADME
Session Convertor is a simple, yet powerful tool that facilitates the conversion of session strings between Pyrogram and Telethon sessions. This tool is designed to streamline the session handling process, enabling quickly and easily convert sessions for use in various Telegram bot frameworks. Whether you're switching between frameworks or simply need a one-time conversion, Session Convertor makes it effortless with its intuitive CLI interface and support for multiple sessions.
Table of Contents
Requirements
- Node.js 18.x or 20.x
- Must meet all Node.js requirements. Read more about system requirements
Functionalities
| Feature | Supported | | -------------------------------------------- | :-------: | | Convert Pyrogram and Telethon sessions | ✅ | | Simultaneous conversion of multiple sessions | ✅ |
Settings
| Setting | Description | | --------------------- | ------------------------------------------------------ | | API_ID / API_HASH | Telegram API ID and Hash obtained from my.telegram.org |
Installation
To install the tool, you can clone the repository and install the necessary dependencies:
~ >>> git clone https://github.com/FreddyWhest/SessionConvertor.git
~ >>> cd SessionConvertor
# Linux and MacOS
~/SessionConvertor >>> chmod +x check_node.sh
~/SessionConvertor >>> ./check_node.sh
OR
~/SessionConvertor >>> npm install
~/SessionConvertor >>> cp .env-example .env
~/SessionConvertor >>> nano .env # Specify your API_ID and API_HASH; the rest will use default settings
~/SessionConvertor >>> node index.js
# Windows
1. Double-click on INSTALL.bat in the SessionConvertor directory to install the dependencies.
2. Double-click on START.bat in the SessionConvertor directory to start the bot.
OR
~/SessionConvertor >>> npm install
~/SessionConvertor >>> cp .env-example .env
~/SessionConvertor >>> # Specify your API_ID and API_HASH; the rest will use default settings
~/SessionConvertor >>> node index.js
Alternatively, for a quicker launch, you can use command-line arguments:
~/SessionConvertor >>> node index.js --action=1
OR
~/SessionConvertor >>> node index.js --action=2
# 1 - Create session
# 2 - Run clicker
Usage
- Place your Pyrogram or Telethon session files in the
sessionsfolder. - Start the script by running
node index.js. - Follow the prompts to convert the sessions.
- Check the
convertedSessionsfolder for the converted files. - You can then use these converted sessions in any of
Freddy Botsor bots built with GramJs. - Enjoy!
Limitations
- Currently, it only supports converting sessions from Pyrogram and Telethon.
- It does not support converting sessions to Pyrogram or Telethon.
License
For more information, please see the License File.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
