{"id":15020579,"url":"https://github.com/rna3210d/rpi-telebot","last_synced_at":"2026-02-25T07:35:00.709Z","repository":{"id":199563550,"uuid":"275554085","full_name":"RNA3210d/RPi-TELEBOT","owner":"RNA3210d","description":"Python based Telegram bot to monitor and control the Raspberry Pi","archived":false,"fork":false,"pushed_at":"2023-01-30T06:54:48.000Z","size":251,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-10-11T02:02:21.267Z","etag":null,"topics":["pi","raspberry","raspberry-pi","raspberry-pi-3","raspberry-pi-4","raspberry-pi-iot","raspberry-pi-zero","raspberrypi","rpi-telebot","telegram-bot","telegram-bot-api","telegram-bots"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RNA3210d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-28T09:45:43.000Z","updated_at":"2024-09-20T22:31:28.000Z","dependencies_parsed_at":"2023-10-11T00:56:13.255Z","dependency_job_id":null,"html_url":"https://github.com/RNA3210d/RPi-TELEBOT","commit_stats":null,"previous_names":["rna3210d/rpi-telebot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RNA3210d%2FRPi-TELEBOT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RNA3210d%2FRPi-TELEBOT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RNA3210d%2FRPi-TELEBOT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RNA3210d%2FRPi-TELEBOT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RNA3210d","download_url":"https://codeload.github.com/RNA3210d/RPi-TELEBOT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219864036,"owners_count":16555943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pi","raspberry","raspberry-pi","raspberry-pi-3","raspberry-pi-4","raspberry-pi-iot","raspberry-pi-zero","raspberrypi","rpi-telebot","telegram-bot","telegram-bot-api","telegram-bots"],"created_at":"2024-09-24T19:55:17.443Z","updated_at":"2025-10-26T04:30:30.150Z","avatar_url":"https://github.com/RNA3210d.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RPi-TELEBOT\n\nPython based Telegram bot to monitor and control the headless Raspberry Pi servers.\n\n## Setting up the bot\n- Install telepot library for enabling the Raspberry Pi to communicate with the Telegram bot using the API.\n  ```\n  sudo apt-get install python-pip\n  sudo pip install telepot\n  ```\n- Request the BotFather to create a new Bot.\n- Paste the HTTP access token here (in the code):\n  ```\n  bot = telepot.Bot('  Enter your Telegram bot API token here  ')\n  ```\n - Run *gpiotel20.py* as sudo \n - Try out the commands given below in the Telegram bot chat (see Usage section below)\n - GPIO of led1 and led2 set as 5 and 10 respectively (BCM numbering).\n## Commands:\n\n\n- help - List of commands\n- ledon1 - Switch on LED 1\n- ledoff1 - Switch off LED 1\n- ledon2 - Switch on LED 2\n- ledoff2 - Switch off LED 2\n- cpu - Get CPU info (lscpu)\n- usb - See connected USB devices (lsusb)\n- hi - To check if online\n- time - Returns time\n- date - Returns date\n- temp - CPU Temperature\n- repoupdate - update repositories (sudo apt-get update)\n- upgrade - upgrade packages (sudo apt-get upgrade -y)\n- shutdown - Shutdown RPi (sudo shutdown -h now)\n- reboot - Reboot RPi (sudo reboot)\n\n## Usage:\n- Use ' / ' before each command\n- Example: To check the CPU Temperature;\n ```\n /temp\n ```\n## Tips:\n- See more about telegram bots here: https://core.telegram.org/bots\n- As the /repoupdate and /upgrade takes time you can use /ledon1 or /ledon2 command to alert you when the process is complete.\n- If you are running this script on boot [systemd users] , refer : https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ \n## Screenshots:\n![Screenshot1](https://github.com/RNA3210d/RPi-TELEBOT/blob/master/snip1.png)\n![Commands list](https://github.com/RNA3210d/RPi-TELEBOT/blob/master/scrn1.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frna3210d%2Frpi-telebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frna3210d%2Frpi-telebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frna3210d%2Frpi-telebot/lists"}