{"id":19383002,"url":"https://github.com/hectorta1989/picamgpio-telegram","last_synced_at":"2026-05-18T14:09:42.303Z","repository":{"id":147993201,"uuid":"455004481","full_name":"HectorTa1989/PiCamGPIO-Telegram","owner":"HectorTa1989","description":"Control GPIO and Pi Camera using Raspberry Pi + Telegram App","archived":false,"fork":false,"pushed_at":"2022-02-03T02:35:43.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T17:15:07.977Z","etag":null,"topics":["gpio","picam","picamera","python3","raspberry-pi-3","telegram","telegram-bot"],"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/HectorTa1989.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-03T02:24:13.000Z","updated_at":"2022-02-03T02:34:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2215728-ea2a-40bf-918f-ba57c3dcc7e7","html_url":"https://github.com/HectorTa1989/PiCamGPIO-Telegram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HectorTa1989/PiCamGPIO-Telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorTa1989%2FPiCamGPIO-Telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorTa1989%2FPiCamGPIO-Telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorTa1989%2FPiCamGPIO-Telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorTa1989%2FPiCamGPIO-Telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HectorTa1989","download_url":"https://codeload.github.com/HectorTa1989/PiCamGPIO-Telegram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorTa1989%2FPiCamGPIO-Telegram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284893575,"owners_count":27080531,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gpio","picam","picamera","python3","raspberry-pi-3","telegram","telegram-bot"],"created_at":"2024-11-10T09:24:09.249Z","updated_at":"2025-11-17T14:02:38.594Z","avatar_url":"https://github.com/HectorTa1989.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PiCamGPIO-Telegram\nControl GPIO and Pi Camera using Raspberry Pi + Telegram App\n\nThe Telegram app is taking the techie community by storm. Maybe not all your friends use it, but it has enough cool features to make it fascinating for people who like to tinker.\n\nApart from regular features, like chatting, groups, and being able to send pics and short video or audio files, Telegram boasts end-to-end encrypting (no more NSA spying on your chats), cloud-distributed servers (more reliable connections), secret chats, and …\n\nAs if that were not enough, Telegram is open source, uses an open protocol, and has a public API, which means that any developer can create new clients for different platforms.\n\nAlthough it's officially intended for iOS and Android, unofficial ports have been made to Windows Phone, Windows, the web, and the Raspberry Pi's Linux command line, which I will talk about in this article.\n\n\n## Installation :\u003e\n\nIf you have an Android phone or an iPhone, you can get Telegram from Google Play or the Apple App Store. If you haven't done so already, I would advise doing so and setting up an account from your phone before proceeding. To run Telegram from your Raspberry Pi, you are going to have to download the source code and compile it.\n\n\n## Clone GitHub Repository :\n\n`git clone --recursive https://github.com/vysheng/tg.git \u0026\u0026 cd tg`\n\n\n## Install libs :\n\n`sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make`\n\n\n\n## Configure :\n\nRegardless of how you decided to get the source, the next step is configuring the makefile for the compile:\n\n`./configure`\n\n\n\nmake :\n\nThen, start the compile proper:\n\n`make`\n\n\n\nOnce finished, you should have an executable program called telegram in the tg directory.\n\n\n## Setup :\u003e\n\nBefore you start texting from the command line, you have to connect your Pi to your Telegram account and associate it with your mobile phone number. To do this, run Telegram with the-k option and point it to the public key in the tg directory:\n\n`bin/telegram -k server.pub`\n\nThe program then asks you for a code that is sent to your phone via SMS and which you receive in a few seconds after registering.\n\nAfter entering the code, your connected contacts show up. You will also see a \u003e at the bottom. This is the Telegram command-line prompt, and what you type shows up here.\n\n\n## Schematic :\n\nThe LED is connected to GPIO 27\n\n![image](https://user-images.githubusercontent.com/31132150/152271714-572d118a-c988-4cf7-bbc2-73d5e3c2a6cb.png)\n\n\n## Run Python Script :\n\nYou can specify the python script from command_line [-Z]. For example :\n\n`sudo bin/telegram-cli tg-server.pub -Z pythonscript.py`\n\nmake sure that you are running command as a superuser (by using sudo).\n\n\n## Create a Python Script With the Following Contents :\n\n`sudo nano /home/pi/tg/pythonscript.py`\n\n## Save and exit and then Run :\n\nsudo bin/telegram-cli tg-server.pub -Z pythonscript.py\n\n\n\nWhen incoming text message is led off or led on, Telegram answers us with a text message and led set is OFF or ON. (For more information, see Python script)\n\n\n## Take Picture :\n\nTo take a photo, enter the following command in Telegram app:\n\n`!photo`\n\nNow if you send a text message with !photo, Raspberry answer with a photo.\n\n![image](https://user-images.githubusercontent.com/31132150/152271841-2f2e20c6-ed6e-4c30-a0b2-5e2c2fbb761d.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhectorta1989%2Fpicamgpio-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhectorta1989%2Fpicamgpio-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhectorta1989%2Fpicamgpio-telegram/lists"}