Send messages to Mi Band using Python and Telegram
- Activate Telegram notifications on your Mi Fit app
Profile -> Your Device -> Application Alert -> Manage applications -> Telegram - Create a telegram bot. An easy way is to message @BotFather on Telegram.
- Install Telegram-python dependency by running
- Download the file minotify.py
- Place the Telegram bot token that was created in string "YOUR_TOKEN_HERE"
pip install python-telegram-bot
First, create your bot:
bot = MiNotify('YOUR_TOKEN_HERE')
Then wait for '/start' from the user:
bot.wait_for_start()
After that you can send notifications using:
bot.message("Your message here")
Email me: ricstange@gmail.com
Feel free to contribute by forking and adding new funcionality/cleaning up code/making any change.