Releases: ImThienz/telegram-bot-PC
Releases · ImThienz/telegram-bot-PC
Release list
v1.2.0 (#GI-bot)
Genshin Gift Bot
A Telegram bot to help you find and redeem the latest Genshin Impact gift codes easily.
gi-bot-v1.2.0.mp4
Features
- 🔎 Scrape and aggregate Genshin Impact gift codes from multiple official sources (Hoyolab, Wiki, Official Website)
- ⚡ Fast response with in-memory caching (codes are only scraped once per hour)
- 📝 Logging to
bot.logfor debugging and monitoring - 🌙 Low CPU usage, optimized for PythonAnywhere and similar platforms
- 🆕 New: When you use
/start, if you have set your UID, the bot will display your UID and server in the welcome message
How to use
- Start the bot with
/start - Set your UID with
/setuid <your 9-digit UID>(e.g./setuid 858969293) - Use
/redeemto get the latest codes and redeem links (auto-filled with your UID/server if set) - Send a code or a photo of a code to the bot for instant redeem links
Deployment
- Python 3.8+
- Install dependencies:
pip install python-telegram-bot beautifulsoup4 requests aiohttp
- Run the bot:
python genshin_bot.py
Notes
- The bot caches codes for 1 hour to reduce scraping and save CPU
- Logging is optimized to avoid high disk and CPU usage
- All features are designed to be lightweight and efficient for cloud platforms
Enjoy your Genshin Impact rewards!
Full Changelog: v1.1.1...v1.2
v2.0 (#PC-bot)
PC Control Telegram Bot [PC-bot]
A simple Telegram bot to control your Windows PC remotely through Telegram commands.
telegram-bot-PC-update.mp4
⚠️ IMPORTANT WARNINGS
Access Permission Warning
- Bot requires Administrator privileges to execute system commands
- Do NOT place scripts in system directories (like C:\Windows, C:\Program Files)
- Do NOT run scripts from directories requiring special permissions
- Recommended: Place scripts in user directories (e.g., D:\script)
Disclaimer
- This bot is provided "AS IS" without any warranties
- Users are responsible for their use of the bot
- The author is not liable for any damages that may occur
- Users should understand the commands before using them
- Do NOT use the bot on critical computers or those containing sensitive data
Misuse Warning
- This bot is developed for educational and personal use only
- DO NOT use the bot to:
- Control other people's computers without permission
- Perform destructive or harmful actions
- Violate laws or privacy rights of others
- The author is not responsible for any misuse by users
- Users must comply with laws and ethics when using the bot
- Misuse of the bot may lead to legal consequences
Features
- 🔐 Security: Bot runs only on your computer
- 🚀 Remote Control: Shutdown, restart, or put your PC to sleep
- 👤 Personalization: Store and display user names in notifications
- ⏱️ Real-time Notifications: Show notifications before and after command execution
- 📝 Logging: Automatically log all activities to a log file
Commands
/start- Start the bot and show command menu/sdor/shutdown- Shutdown the computer/rsor/restart- Restart the computer/slor/sleep- Put the computer to sleep
Installation
- Install Python 3.7 or higher
- Install required libraries:
pip install python-telegram-bot
- Create a Telegram bot via @BotFather and get the token
- Update
BOT_TOKENinPC-bot.py - IMPORTANT: Place scripts in a directory that doesn't require special permissions
Running the Bot
Direct Run
python PC-bot.pyRun as Windows Service
-
Run
create_service.batas Administrator -
Service will start automatically with Windows
Service Configuration
- Service Name:
PCBotService2 - Display Name:
PC Control Bot Service 2 - Description:
Telegram bot service for controlling PC - Auto-start with Windows
Service Management
Install Service
create_service.batUninstall Service
uninstall_service.batNew Features
Real-time Notifications
- Bot shows notifications before executing commands
- 3-second delay before execution for user cancellation
- Confirmation notification after command execution
Personalization
- Store user names from Telegram
- Display user names in all notifications
- User-friendly error messages
Logging
- Automatically log all activities to
bot.log - Include user info, commands, and execution results
- Support debugging and activity tracking
Security
- Bot runs only on your computer
- No sensitive information stored
- All commands require confirmation before execution
- DO NOT place scripts in system directories
- DO NOT share bot token with others
Notes
- Run bot with Administrator privileges to execute system commands
- Check log file if errors occur
- Do not share bot token with others
- IMPORTANT: Read all warnings and disclaimers before use
Full Changelog: v1.1...v2.0
v1.1.1 (#GI-bot)
Features
- Adding two version of Telegram bot
- Local Version (old-genshin_bot.py)
- PythonAnywhere Version (genshin_bot.py)
- What's PythonAnywhere?
Tutorial
1. On Local Version:
- Go to BotFather -> /newbot and do next step
- Copy your token to access HTTP API and go to prj telegram-bot-PC, create .env into telegram-bot-PC/config/GI-bot and paste BOT_TOKEN="put-your-token-api-for-genshin-here"
- If file existing, rename
test.envto.envand and paste the token from bot-father
2. On PythonAnywhere Version:
- No need to create path to .env, just input your bot token and api key into genshin_bot.py in line 16-17
v1.1.0 (#GI-bot)
Features
- Scan gift codes from images
- Get latest gift codes
- Auto-fill UID and server for redemption
- Support multiple servers (Asia, Europe, America, etc.)
Commands
/start: Show welcome message/redeem: Get latest gift codes/setuid <your_uid>: Set your UID for auto-fill- Send a photo of gift code to scan link giftcode
- Send gift code text to get redemption link giftcode
Tutorial
v1.1 (#PC-bot)
Feature
- Update /rs (restart)
- Update /sl (sleep)
Tutorial
- Go to BotFather -> /newbot and do next step
- Copy your token to access HTTP API and go to prj telegram-bot-PC, create .env into telegram-bot-PC/config/PC and paste
BOT_TOKEN="put-your-token-api-to-controll-PC-here" - If file existing, rename
test.envto.envand and paste the token from bot-father - Also on Project, open CMD and run
npm init -y
npm install telegraf dotenv
node index.js
