StringSessionBot
Welcome to the Telegram Session String Generator Bot! This bot helps you generate session strings for both Pyrogram and Telethon clients securely and easily
Install / Use
/learn @abirxdhack/StringSessionBotREADME
Telegram Session String Generator Bot
Welcome to the Telegram Session String Generator Bot! This bot helps you generate session strings for both Pyrogram and Telethon clients securely and easily. 🚀
Features ✨
- Safe and secure session string generation.
- Supports both PyroGram and Telethon clients.
- User-friendly interface.
- Stores nothing, ensuring your privacy.
Setup Instructions 🛠️
Follow these steps to set up and run the bot:
-
Clone the repository:
git clone https://github.com/abirxdhack/StringSessionBot.git cd StringSessionBot -
Install the required dependencies:
pip install -r requirements.txt -
Create a
config.pyfile:# config.py API_ID = 'your_api_id_here' API_HASH = 'your_api_hash_here' BOT_TOKEN = 'your_bot_token_here' -
Run the bot:
python3 main.py
Configuration
- Open the
config.pyfile in your favorite text editor. - Replace the placeholders for
API_ID,API_HASH,BOT_TOKEN, and with your actual values:API_ID: Your API ID from my.telegram.org.API_HASH: Your API Hash from my.telegram.org.BOT_TOKEN: The token you obtained from @BotFather.
Deploy the Bot
git clone https://github.com/abirxdhack/StringSessionBot
cd StringSessionBot
python main.py
Usage 🚀
- Start a private chat with the bot.
- Use
/startto get an overview and instructions. - Use
/pyroto generate a Pyrogram session string. - Use
/teleto generate a Telethon session string. - Follow the prompts to enter your API ID, API Hash, and phone number.
- Enter the OTP and 2FA (if applicable) to get your session string.
Example Commands 📋
/start- Get an overview and instructions./pyro- Generate a Pyrogram session string./tele- Generate a Telethon session string.
Contributing 🤝
Contributions are welcome! Please fork the repository and submit a pull request with your improvements.
Contact 📬
For any questions or suggestions, feel free to reach out:
- Telegram: My Dev👨💻
