- Play previous song
- Play/Pause
- Play next song
- Volume down
- Mute
- Volume up
- Disable screen
- Mac: Display brightness down, Win: Set brightness to 10%
- Mac: Display brightness up, Win: Set brightness to 100%
- Mac: Sleep, Win: Hibernate
- Reboot
- Shutdown
- Install Python
- Start powershell as administrator and run
py -m pip install telepot psutil
- Create your Telegram bot
- Clone this repository to your user dir
C:\Users\<username>\RemoteControlBot
- Run cmd (Win+R) and enter
shell:common startup
. In the folder that opens, create aRemoteControlBot.bat
file with content:
powershell pythonw {DIR}\run.py '{TOKEN}}' '{CHAT_ID}}'
- If you are using Windows 10, then you need to start the powershell in administrator mode and run the command
Set-ExecutionPolicy unrestricted
- Double click
RemoteControlBot.bat
to start script - Send message
/start
to your bot
- Install Python and BetterTouchTool
brew install python && brew install --cask bettertouchtool && brew install python && pip3 install telepot
- Clone this repository to your user dir
~/RemoteControlBot
- Open BetterTouchTool and import preset "scripts/mac/RemoteControlBot.bttpreset"
- Start Automator.app
- Select Application
- Click Show library in the toolbar (if hidden)
- Add Run shell script (from the Actions/Utilities)
- Copy & paste script into the window:
source .zprofile
python3 ~/RemoteControlBot/run.py '{TOKEN}}' '{CHAT_ID}}''{TOKEN}}' '{CHAT_ID}}'
- Save somewhere (for example in your HOME) as RemoteControlBot.app
- Go to
System Preferences -> GeneralGeneral -> Login items
and add this app - Reboot
- Send message
/start
to your bot
Where:
- {DIR} - folder with RemoteControlBot files
- {TOKEN} - your bot token
- {CHAT_ID} - your Telegram account chat_id (optional param to secure your connection)