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.
- Clone the repo
git clone https://github.com/repinek/XiaomiIMEICheckerTelegramBot.git
cd XiaomiIMEICheckerTelegramBot- Install dependencies using
uv:
uv syncor using pip
python -m venv .venv
# Using Linux/MacOS
source .venv/bin/activate
# Using Windows
.venv/Scripts/activate
pip install -r requirements.txt- Create a
.envfile and add your token from @BotFather
cp .env.example .env- Run the bot:
# Using uv
uv run -m bot.main
# Using standart python
python -m bot.main- Generates captcha using buy.mi.com/en/other/getimage
- 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