Skip to main content

Control your entire laptop from Telegram โ€” screenshots, shell, files, processes, power, browser automation, SSH, vision AI, TTS, scheduler, QR, speed test, file watcher, and more.

Project description

๐Ÿ–ฅ๏ธ Salim v11 โ€” AI-Powered Telegram Laptop Control Bot

Control your laptop from anywhere via Telegram. Type in plain English โ€” AI understands and acts.


โœจ What's New in v11

Feature Details
๐ŸŽ™๏ธ /mic command Record from laptop microphone โ†’ sends voice note to Telegram
๐Ÿ”Š Real volume control Uses pulsectl โ†’ pactl โ†’ amixer (Linux), osascript (Mac)
๐Ÿš€ Fixed app launcher Proper setsid + DISPLAY env for GUI apps on Linux
๐Ÿ” Smart file search AI extracts keywords, searches whole laptop, shows buttons
โฌ‡๏ธโ–ถ๏ธ๐Ÿ—‘๏ธ๐Ÿ“‚ File action buttons Download ยท Play ยท Delete ยท Open for every search result
๐Ÿ“„ Real documents .docx/.xlsx created by AI from natural language
๐Ÿ“ HTML parse mode All Telegram messages use HTML โ€” no Markdown escaping issues

๐Ÿš€ Quick Start

1. Install

pip install salim
# or from source:
pip install -e .

2. Setup

salim setup

Prompts for:

  • Telegram Bot Token โ€” get from @BotFather
  • Your Telegram User ID โ€” get from @userinfobot
  • AI API key โ€” NVIDIA NIM / Groq / Z.AI (at least one)

3. Run

salim start
salim start --verbose    # with debug logging

๐Ÿค– AI Natural Language

Just type anything โ€” no need to memorize commands:

"open chrome"
"take a screenshot"
"what's my battery"
"find my Day 03 video"
"turn up the volume"
"mute"
"create a budget spreadsheet for March"
"write me a cover letter for a Python dev role at Google"
"record from microphone for 30 seconds"


๐Ÿ“‹ All Commands

๐ŸŽ™๏ธ Microphone Recording (NEW v11)

/mic              โ€” Record 10s from laptop mic โ†’ sends as Telegram voice note
/mic 30           โ€” Record 30 seconds
/mic 10 exec      โ€” Record, transcribe, and execute as AI command
/mic 5 trans      โ€” Record and transcribe only (show text)

Tip: also send any Telegram voice note โ†’ transcribed by Whisper โ†’ executed as command.


๐Ÿ”Š Volume Control

/volume           โ€” Get current volume (e.g. 75%)
/volume 75        โ€” Set to 75%
/volume up        โ€” Increase +10%
/volume down      โ€” Decrease -10%
/volume mute      โ€” Mute audio
/volume unmute    โ€” Unmute audio

Linux: pulsectl โ†’ pactl โ†’ amixer | Mac: osascript | Windows: PowerShell


๐Ÿš€ Open Apps & URLs

/open chrome           โ€” Launch Google Chrome
/open spotify          โ€” Launch Spotify
/open vscode           โ€” Launch VS Code
/open terminal         โ€” Launch terminal
/open https://yt.com   โ€” Open URL
/open ~/file.pdf       โ€” Open file with default app

Supported: chrome, firefox, safari, brave, vscode, spotify, discord, slack, zoom, telegram, vlc, gimp, obs, terminal, files/nautilus/finder, calculator, settings, libreoffice, word, excel, and any installed app name.


๐Ÿ” Smart File Search

Type naturally:

"download Day 03"
"find my lecture notes"
"where's the project report"

Results appear as interactive buttons:

1๏ธโƒฃ ๐ŸŽฌ Day03_Lecture.mp4   ~/Videos/Course   1.2 GB ยท 3 days ago
   [โฌ‡๏ธ Download]  [๐Ÿ—‘๏ธ Delete]  [โ–ถ๏ธ Play]

2๏ธโƒฃ ๐Ÿ“ day03_notes.txt     ~/Documents       45 KB ยท today
   [โฌ‡๏ธ Download]  [๐Ÿ—‘๏ธ Delete]  [๐Ÿ‘๏ธ Read]

After download โ†’ additional buttons: Play ยท Delete ยท Open


๐Ÿ“„ Document Creation

/doc resume           โ€” AI creates professional resume (.docx)
/doc invoice          โ€” Invoice spreadsheet (.xlsx)
/doc cover letter     โ€” Cover letter (.docx)
/doc budget           โ€” Budget tracker (.xlsx)
/doc meeting minutes  โ€” Meeting minutes (.docx)
/doc report           โ€” Business report (.docx)

Natural language: "write me a resume for Ahmed, software engineer"

Files created locally and sent to Telegram.


๐Ÿ“ธ Screen & Input

/screenshot           โ€” Take screenshot
/ss                   โ€” Same as /screenshot
/stream               โ€” Live screen stream
/streamstop           โ€” Stop stream
/type <text>          โ€” Type on screen
/key ctrl+c           โ€” Press keyboard shortcut
/click <x> <y>        โ€” Mouse click
/scroll <n>           โ€” Scroll (+ up, - down)
/move <x> <y>         โ€” Move mouse cursor
/mousepos             โ€” Get current mouse position
/brightness <0-100>   โ€” Set screen brightness
/notify <title>|<msg> โ€” Desktop notification

๐Ÿ’ป System & Shell

/info     โ€” Full system overview (CPU, RAM, disk, network)
/cpu      โ€” CPU usage & cores
/mem      โ€” Memory usage
/disk     โ€” Disk usage
/battery  โ€” Battery % and charging status
/network  โ€” Network interfaces and IPs
/uptime   โ€” System uptime
/top      โ€” Live process monitor
/ps [name]โ€” Running processes
/kill <pid>โ€” Kill process
/run <cmd>โ€” Run shell command
/runbg <cmd>โ€” Run in background
/env      โ€” Environment variables
/which <prog>โ€” Find binary path
/cron <cmd> <schedule>โ€” Add cron job
/cronjobs โ€” List cron jobs
/cronstop <id>โ€” Remove cron job

๐Ÿ“‚ Files

/ls [path]    /cd <path>    /pwd
/cat <file>   /stat <file>  /find <pattern>
/grep <pattern> [path]      /mkdir <name>
/rm <path>    /mv <s> <d>   /cp <s> <d>
/write <file> <text>
/download <path>   โ€” Send file to Telegram
/upload            โ€” Receive file from Telegram
/zip <path>        /unzip <file>

๐Ÿ“‹ Clipboard

/copy <text>    โ€” Copy text to clipboard
/paste          โ€” Read clipboard (text or image)
/copyphoto      โ€” Copy photo to clipboard (reply to photo)

๐ŸŒ Browser Automation

/browse <url>             โ€” Open URL + screenshot
/browse_click <selector>  โ€” Click element
/browse_type <sel> <text> โ€” Type in field
/browse_scroll [up|down]  โ€” Scroll page
/browse_js <javascript>   โ€” Run JS
/browse_back              โ€” Go back
/browse_close             โ€” Close browser

๐Ÿ—ฃ๏ธ Text-to-Speech

/tts <text>         โ€” Laptop speaks text
/say <text>         โ€” Same as /tts
/tts_lang <code>    โ€” Language (en, ar, fr...)
/tts_speed <0.5-2>  โ€” Speed
/tts_engine         โ€” Switch engine
/tts_voice          โ€” List voices

๐Ÿ”Œ SSH

/ssh_add <alias> <user@host> [port]
/ssh <alias> <command>
/ssh_list   /ssh_remove <alias>
/ssh_upload <alias> <local> <remote>
/ssh_download <alias> <remote>

๐Ÿ‘๏ธ Vision AI

/vision on      โ€” Auto-describe all photos
/askvision <q>  โ€” Ask about last photo

Send any photo โ†’ reply with a question.


๐Ÿ”‹ Power

/shutdown   /restart   /sleep   /hibernate
/lock       /logout    /screensaver

Destructive commands ask for confirmation.


๐Ÿ“ท Camera & Recording

/cam           โ€” Webcam snapshot
/cam list      โ€” List cameras
/record <sec>  โ€” Record screen video

๐Ÿ”” Alerts

/alert add cpu > 80       โ€” Alert when CPU > 80%
/alert add battery < 20   โ€” Low battery alert
/alert list               โ€” View alerts
/alert del <id>           โ€” Remove alert

๐Ÿ“ Notes

/note <text>   โ€” Save note
/notes         โ€” List notes
/notedel <id>  โ€” Delete note
/noteclear     โ€” Clear all

โฐ Scheduler

/at 14:30 screenshot    โ€” Run at specific time
/every 5m screenshot    โ€” Run on repeat
/jobs                   โ€” List jobs
/jobcancel <id>         โ€” Cancel job

๐Ÿ“ก File Watcher

/watch <path>    โ€” Watch for changes
/watchlist       โ€” List watchers
/watchstop <id>  โ€” Stop watcher

โšก Other

/speedtest          โ€” Internet speed (download/upload/ping)
/qr <text>          โ€” Generate QR code
/qrread             โ€” Read QR from photo
/code <desc>        โ€” AI writes & runs Python code
/guard on/off       โ€” Intrusion detection (webcam)
/config             โ€” Bot settings
/logs [n]           โ€” Audit log
/history            โ€” Conversation memory
/uploads            โ€” Upload history

๐Ÿ”ง System Dependencies

Linux:

sudo apt install -y ffmpeg portaudio19-dev pulseaudio-utils
pip install pulsectl sounddevice scipy

Mac:

brew install ffmpeg portaudio
pip install sounddevice scipy

Windows: install ffmpeg from ffmpeg.org, add to PATH.


๐Ÿ”‘ AI Providers (at least one required)

Provider Free Tier Setup
NVIDIA NIM Credits build.nvidia.com
Groq Yes console.groq.com
Z.AI Yes (FREE) z.ai

๐Ÿ”’ Security

  • Only your Telegram user ID can control the bot
  • All commands logged (/logs)
  • Destructive commands require confirmation
  • Intrusion guard alerts via Telegram

Salim v11 โ€” Python ยท python-telegram-bot ยท faster-whisper ยท sounddevice ยท pulsectl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

salim-1.12.0.tar.gz (137.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

salim-1.12.0-py3-none-any.whl (154.8 kB view details)

Uploaded Python 3

File details

Details for the file salim-1.12.0.tar.gz.

File metadata

  • Download URL: salim-1.12.0.tar.gz
  • Upload date:
  • Size: 137.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for salim-1.12.0.tar.gz
Algorithm Hash digest
SHA256 bbea32b7fcd16bc1509095634c4e9d83844a48baf028044b1267813cdc1843aa
MD5 149c7bfea8fbe3549674a72bf1c4d288
BLAKE2b-256 5a38175ddd4dfe19495e736f54fbd7a0d7e6d19327c9003373de3e1e5c84d6e5

See more details on using hashes here.

File details

Details for the file salim-1.12.0-py3-none-any.whl.

File metadata

  • Download URL: salim-1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 154.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for salim-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58ddff50e04c7c2451a62c8ba3f3b6f9960c31b0c8fe77772c207ae00ce9d8e9
MD5 3b58f865501b4f58eea64e6b90e4f680
BLAKE2b-256 1143a824a76452e047a1a177df2ffd1478dd4ed67567a4ac26dca8084dcf6a3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page