Free open source bot to control your KDE plasma desktop using Telegram
- KDE-Plasma Desktop and Apps
- Python 3.8.5 or above
- python-telegram-bot library
- streamer package (to capture webcam photo). Install using
sudo apt-get install streamer
- Make a new bot using @BotFather
- Copy token that BotFather gave you and edit "TOKEN" value in
config.py
- Send a message to @chatIDrobot to get your chat/user ID
- edit "ADMIN_USERID" value in
config.py
with the on that @chatIDrobot sent you - [OPTIONAL] Line 6 to 13 in
config.py
is app directory settings. By default, it makes a folder named "KDE_Connect_Telegram" in your Home directory and "Pictures", "Videos", "Documents", "Voices", "Audios" subfolders as you use the bot. You can change them with your desired path
To run script manually use:
python3 bot.py
To make bot run at startup:
- Make it executable using
sudo chmod +x bot.py
- Go to "System Settings" > "Startup and Shutdown" > "Autostart". Click on
"Add Script" button. Enter
bot.py
path, and you're done
Currently, it has 6 different categories of commands:
- States
- Connections (Bluetooth to be more exact) [UNDER MAINTENANCE]
- Brightness control
- Volume control
- Screenshot
- Utilities or other
- Shutdown
- Reboot
- Suspend
- Hibernate
- Lock screen
- Unlock screen
- Screen off
- Screen on
- Lock keyboard and mouse
- Unlock keyboard and mouse
- Connect
- Disconnect
- Pair
- Remove
- Increase brightness
- Decrease brightness
- Maximum brightness
- Increase volume
- Decrease volume
- Mute
- Mute microphone
- Screenshot full screen
- Screenshot active screen
- Screenshot full screen and send to telegram
- Screenshot active screen and send to telegram
Basically, every other thing that I couldn't categorize goes here. I still don't know what can I add here