Skip to content

Releases: ImThienz/telegram-bot-PC

v1.2.0 (#GI-bot)

Choose a tag to compare

@ImThienz ImThienz released this 02 May 18:27

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.log for 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

  1. Start the bot with /start
  2. Set your UID with /setuid <your 9-digit UID> (e.g. /setuid 858969293)
  3. Use /redeem to get the latest codes and redeem links (auto-filled with your UID/server if set)
  4. Send a code or a photo of a code to the bot for instant redeem links

Tutorial from v1.1.1

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)

v2.0 (#PC-bot) Pre-release
Pre-release

Choose a tag to compare

@ImThienz ImThienz released this 01 May 05:34
70416f2

PC Control Telegram Bot [PC-bot]

A simple Telegram bot to control your Windows PC remotely through Telegram commands.

  • This release just talk about this path:
    Screenshot 2025-05-01 120829
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
  • /sd or /shutdown - Shutdown the computer
  • /rs or /restart - Restart the computer
  • /sl or /sleep - Put the computer to sleep

Installation

  1. Install Python 3.7 or higher
  2. Install required libraries:
    pip install python-telegram-bot
  3. Create a Telegram bot via @BotFather and get the token
  4. Update BOT_TOKEN in PC-bot.py
  5. IMPORTANT: Place scripts in a directory that doesn't require special permissions

Running the Bot

Direct Run

python PC-bot.py

Run as Windows Service

  1. Run create_service.bat as Administrator

  2. 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.bat

Uninstall Service

uninstall_service.bat

New 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)

Choose a tag to compare

@ImThienz ImThienz released this 01 May 03:52

Features

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.env to .env and 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)

Choose a tag to compare

@ImThienz ImThienz released this 30 Apr 17:06

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

  • 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.env to .env and and paste the token from bot-father

v1.1 (#PC-bot)

Choose a tag to compare

@ImThienz ImThienz released this 30 Apr 17:04

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.env to .env and and paste the token from bot-father
  • Also on Project, open CMD and run
    npm init -y
    npm install telegraf dotenv
    node index.js

DEMO:

telegram-bot-PC.mp4