{"id":27946403,"url":"https://github.com/one-zero-eight/telegram-userbot-parser","last_synced_at":"2025-05-07T13:54:44.916Z","repository":{"id":244426411,"uuid":"815205711","full_name":"one-zero-eight/telegram-userbot-parser","owner":"one-zero-eight","description":"Telegram User bot on Pyrogram for parsing posts in Innopolis channels. The data will be sent to InNoHassle Search backend.","archived":false,"fork":false,"pushed_at":"2024-12-20T12:52:55.000Z","size":53,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-07T13:54:42.059Z","etag":null,"topics":["innohassle","parsing","pyrogram","telegram"],"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/one-zero-eight.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,"zenodo":null}},"created_at":"2024-06-14T15:25:29.000Z","updated_at":"2024-09-29T23:17:48.000Z","dependencies_parsed_at":"2024-06-14T17:15:06.391Z","dependency_job_id":"9d7b699c-5096-498b-8df4-8cfbab055d6f","html_url":"https://github.com/one-zero-eight/telegram-userbot-parser","commit_stats":null,"previous_names":["one-zero-eight/telegram-userbot-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Ftelegram-userbot-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Ftelegram-userbot-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Ftelegram-userbot-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Ftelegram-userbot-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/one-zero-eight","download_url":"https://codeload.github.com/one-zero-eight/telegram-userbot-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892530,"owners_count":21820646,"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":["innohassle","parsing","pyrogram","telegram"],"created_at":"2025-05-07T13:54:40.601Z","updated_at":"2025-05-07T13:54:44.911Z","avatar_url":"https://github.com/one-zero-eight.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Message Parser Bot\n\n## Overview\nThis Python script uses a Pyrogram to analyze messages from Telegram channels and send them to a Fast API or another server. If a failure occurs during message delivery (status code is not 200), it saves the message in a JSON file and tries again after successful delivery of a new received message from the telegram channel.\n\n## Installation\n### Requirements\n- Python 3.12\n- Poetry\n\n### Installation Steps\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/one-zero-eight/telegram-userbot-parser.git\n   cd telegram-userbot-parser\n2. Install dependencies using Poetry:\n    ```terminal\n    poetry install --with code-style\n3. Getting the API for the user bot:\n    - go to the website https://core.telegram.org/api/obtaining_api_id and use the account to get the API. Be sure to write down the api_id and api_hash that you will receive on the site.\n    - Create a Python file and use this code to get your session file to use user bot. write down your data in api_id and api_hash. Run this file and go through all the necessary steps. You can read more here https://docs.pyrogram.org/intro/quickstart\n        ```python\n            import asyncio\n            from pyrogram import Client\n\n            api_id = 12345\n            api_hash = \"0123456789abcdef0123456789abcdef\"\n\n\n            async def main():\n                async with Client(\"my_account\", api_id, api_hash) as app:\n                    await app.send_message(\"me\", \"Greetings from **Pyrogram**!\")\n\n\n            asyncio.run(main())\n\n4. Using the example .env.example, fill it in with your data. In the \"url\", specify the address of your server. In \"PROGRAM_SESSION_STRING\" - specify the name of your session file for program\n\n5. Run the file pyrogram_parser.py\n    ```python\n    python pyrogram_parser.py\n\n### Futures\n - Parses messages from specified Telegram channels.\n - Sends parsed data to a server via HTTP POST requests.\n - Retries sending messages stored in a JSON file upon server error.\n\n### Technologies Used\n - Python 3.12\n - Pyrogram\n - FastAPI\n - httpx\n - dotenv\n - Docker, Docker Compose\n\n### License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-zero-eight%2Ftelegram-userbot-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-zero-eight%2Ftelegram-userbot-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-zero-eight%2Ftelegram-userbot-parser/lists"}