Skip to content

repinek/XiaomiIMEICheckerTelegramBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xiaomi IMEI Checker Telegram Bot

Telegram bot built with aiogram that directly uses Xiaomi API to check Xiaomi IMEI or S/N and get details like model, country, and manufacture date for your Xiaomi.

Screenshot

image

Usage

  1. Clone the repo
git clone https://github.com/repinek/XiaomiIMEICheckerTelegramBot.git
cd XiaomiIMEICheckerTelegramBot
  1. Install dependencies using uv:
uv sync

or using pip

python -m venv .venv

# Using Linux/MacOS
source .venv/bin/activate 
# Using Windows
.venv/Scripts/activate

pip install -r requirements.txt
  1. Create a .env file and add your token from @BotFather
cp .env.example .env
  1. Run the bot:
# Using uv
uv run -m bot.main

# Using standart python
python -m bot.main

How it works?

  1. Generates captcha using buy.mi.com/en/other/getimage
  2. Using the same session, send a request to buy.mi.com/en/other/checkimei with the following headers:
"keyword": {imei},
"vcode": {captcha},

For details regarding the 20-digit security code, please refer to the source code or use browser DevTools on the official site

About

Telegram bot built with aiogram3 that directly uses Xiaomi API to check Xiaomi device IMEI or S/N

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages