{"id":27122338,"url":"https://github.com/l1ve4code/telegram-ai-assistant","last_synced_at":"2025-06-10T15:35:28.704Z","repository":{"id":284548318,"uuid":"955277439","full_name":"l1ve4code/telegram-ai-assistant","owner":"l1ve4code","description":"Personal AI-powered assistant for one-on-one Telegram conversations with context awareness","archived":false,"fork":false,"pushed_at":"2025-03-28T08:48:17.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T11:40:52.861Z","etag":null,"topics":["assistant","deepseek","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/l1ve4code.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":"2025-03-26T11:48:37.000Z","updated_at":"2025-03-28T08:48:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"77793d28-404c-4850-b050-b1c6ca1c332d","html_url":"https://github.com/l1ve4code/telegram-ai-assistant","commit_stats":null,"previous_names":["l1ve4code/telegram-ai-assistant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1ve4code%2Ftelegram-ai-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1ve4code%2Ftelegram-ai-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1ve4code%2Ftelegram-ai-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1ve4code%2Ftelegram-ai-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l1ve4code","download_url":"https://codeload.github.com/l1ve4code/telegram-ai-assistant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1ve4code%2Ftelegram-ai-assistant/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259102797,"owners_count":22805561,"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":["assistant","deepseek","telegram-bot"],"created_at":"2025-04-07T11:35:59.273Z","updated_at":"2025-06-10T15:35:28.695Z","avatar_url":"https://github.com/l1ve4code.png","language":"Python","readme":"# telegram-ai-assistant\n\n## About\n\n- **Purpose**: Personal AI-powered assistant for one-on-one Telegram conversations with context awareness\n- **Key Features**:\n  - Real-time conversation with a specific Telegram user\n  - Context-aware responses using conversation history\n  - Integration with Rimunace AI API for intelligent replies\n  - Typing indicators for natural interaction\n  - Conversation history management with `/clear` command\n  - Automatic reconnection and error handling\n\n### Technologies\n\n* Language: **Python 3.9+**\n* Libraries: **Telethon, requests, asyncio**\n* APIs: **Telegram API, Rimunace AI API**\n* Deployment: **Docker (optional)**\n\n## Installing\n\n### Clone the Project\n\n```shell\ngit clone https://github.com/l1ve4code/telegram-ai-assistant.git\n```\n\n### Replace Placeholders in `docker-compose.yml`\n\n```yaml\nservices:\n  telegram-ai-bot:\n    build: .\n    container_name: telegram-ai-bot\n    environment:\n      - API_ID=YOUR_API_ID\n      - API_HASH=YOUR_API_HASH\n      - AI_API_KEY=YOUR_AI_API_KEY\n    restart: unless-stopped\n```\n\n## Running the Project\n\n### Using Docker Compose\n\n1. Build and start the container:\n\n```shell\ndocker-compose up --build\n```\n\n2. Stop the container:\n\n```shell\ndocker-compose down\n```\n\n### Running Locally\n\n1. Install dependencies:\n\n```shell\npip install -r requirements.txt\n```\n\n2. Run the script:\n\n```shell\npython main.py\n```\n\n## How It Works\n\n### Main commands (send it to **Saved Messages**)\n\n| Command               | Description                     |\n|-----------------------|---------------------------------|\n| `/start`              | Activate bot                    |\n| `/stop`               | Stop bot                        |\n| `/set_user @username` | Change the conversation partner |\n| `/clear`              | Clear the dialog history        |\n\n### Automatic deletion of messages\n- Your commands will delete after **1 second**\n- The bot's responses are deleted after **10 seconds**\n\n### Simple communication\n1. Activate bot using command `/start`\n2. Write to any user (who added the bot to the contacts)\n3. The bot will respond based on the context of the conversation\n\n### Work features\n- Communication context saves **last 10 messages**\n- The context is reset after restarting the bot\n\n## Author\n\n* Telegram: **[@live4code](https://t.me/live4code)**\n* Email: **steven.marelly@gmail.com**\n\nGood luck with your Telegram Chat AI Assistant! 🚀","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl1ve4code%2Ftelegram-ai-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl1ve4code%2Ftelegram-ai-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl1ve4code%2Ftelegram-ai-assistant/lists"}