{"id":25488183,"url":"https://github.com/chisa-dev/ocr-scanner-tg-bot","last_synced_at":"2025-10-28T04:09:53.234Z","repository":{"id":148754638,"uuid":"561372517","full_name":"chisa-dev/OCR-Scanner-Tg-Bot","owner":"chisa-dev","description":"simple telegram bot to extract text from images. ocr scanner bot based on ocr-space api.  ","archived":false,"fork":false,"pushed_at":"2022-11-04T15:36:40.000Z","size":436,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-26T19:43:20.246Z","etag":null,"topics":["ocr-recognition","php-telegram-bot","telegram-bot","text-from-image"],"latest_commit_sha":null,"homepage":"https://horansoftware.t.me","language":"PHP","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/chisa-dev.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-11-03T14:49:27.000Z","updated_at":"2025-03-31T23:06:42.000Z","dependencies_parsed_at":"2023-06-13T06:45:11.956Z","dependency_job_id":null,"html_url":"https://github.com/chisa-dev/OCR-Scanner-Tg-Bot","commit_stats":null,"previous_names":["chisa-dev/ocr-scanner-tg-bot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/chisa-dev/OCR-Scanner-Tg-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2FOCR-Scanner-Tg-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2FOCR-Scanner-Tg-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2FOCR-Scanner-Tg-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2FOCR-Scanner-Tg-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chisa-dev","download_url":"https://codeload.github.com/chisa-dev/OCR-Scanner-Tg-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2FOCR-Scanner-Tg-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281382833,"owners_count":26491388,"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-10-28T02:00:06.022Z","response_time":60,"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":["ocr-recognition","php-telegram-bot","telegram-bot","text-from-image"],"created_at":"2025-02-18T20:50:05.974Z","updated_at":"2025-10-28T04:09:53.198Z","avatar_url":"https://github.com/chisa-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":" # Text from Image Scanner Telegram Bot  \u0026middot; \n[![Build Status](https://img.shields.io/travis/npm/npm/latest.svg?style=flat-square)](https://travis-ci.org/npm/npm) [![npm](https://img.shields.io/npm/v/npm.svg?style=flat-square)](https://www.npmjs.com/package/npm) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/your/your-project/blob/master/LICENSE)\n \nSimple Telegram Bot to extract text from image based on ocr api \u003cbr\u003e  \n\n\u003ca href=\"https://t.me.com/official_gemechis/\"\u003e\u003cimg align=\"left\" alt=\"Simple Telegram Bot to extract text from image based on ocr api by Gemchis Elias\" width=\"100%\"  src=\"screenshot.png\" /\u003e\u003c/a\u003e \u003cbr /\u003e\n\n## Check out \u003ca href=\"https://t.me/horanocr_bot\"\u003eThe Sample Bot \u003c/a\u003e  \n\n\u003cbr\u003e\n\n## Installing / Getting started\nGo to \u003ca href=\"https://t.me/botfather\"\u003e@botfather \u003ca/\u003e and create a new bot. Copy your api token and setwebhook by pasting this link on browser.\n \n  \u0026middot; Change XXXXXX with your bot token\n \u003cbr\u003e\n  \u0026middot; Change url to domain you host the php file.\n\n```shell\nhttps://api.telegram.org/botXXXXXX/setWebHook?url=yourdomain.com/bot.php\n```\n### Code to edit\n\nJust edit 2nd line by changing api key on bot.php\napi key can be found here https://ocr.space/ocrapi\n \n```shell\n//Change OCR-KEY to your api key from ocr.space website\n            $result = file_get_contents('http://api.ocr.space/parse/imageurl?apikey=\u003cOCR-KEY-XXX\u003e\u0026url='.$id_url);\n            $result=json_decode($result, true);\n            $str='';\n            foreach($result['ParsedResults'] as $pareValue) \n                {\n                            $str.= strval($pareValue['ParsedText']);\n                }\n                if($str!=\"\"){ \n                $re= \n                array(\n                'chat_id' =\u003e $chatId, \n                'text' =\u003e \"🔍Scanned Text:\\n$str\\n\\n@horansoftware\",\n                'disable_web_page_preview' =\u003e false,);\n                    send(\"sendMessage\", $re);\n                }   #end\n```\n\n## Change Bot API Token\n \nDon't forget pasting your bot token every where needed in the bot.php\n \n ```shell\n$path = \"https://api.telegram.org/bot\u003cYour Bot Token\u003e/\";\n```\n \nCode Written by \n \u003ca href=\"realgemechis.t.me\"\u003eGemechis Elias\u003c/a\u003e\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchisa-dev%2Focr-scanner-tg-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchisa-dev%2Focr-scanner-tg-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchisa-dev%2Focr-scanner-tg-bot/lists"}