{"id":24764147,"url":"https://github.com/milesonerd/telegram-bot","last_synced_at":"2026-05-16T11:03:51.687Z","repository":{"id":272502520,"uuid":"916672160","full_name":"MilesONerd/telegram-bot","owner":"MilesONerd","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-18T18:23:25.000Z","size":81,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T22:50:40.031Z","etag":null,"topics":["ai","artificial-intelligence","bart","facebook-bart","llama","llama3","llama3-1-nemotron","meta-bart","milesonerd","milesonerdai","milesonerdbot","python","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"https://t.me/MilesONerdBot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MilesONerd.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-14T14:56:17.000Z","updated_at":"2025-01-16T19:35:33.000Z","dependencies_parsed_at":"2025-01-14T21:19:21.684Z","dependency_job_id":"9b12c536-53ab-4ca0-b552-7af92f5a78cd","html_url":"https://github.com/MilesONerd/telegram-bot","commit_stats":null,"previous_names":["milesonerd/telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MilesONerd/telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilesONerd%2Ftelegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilesONerd%2Ftelegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilesONerd%2Ftelegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilesONerd%2Ftelegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MilesONerd","download_url":"https://codeload.github.com/MilesONerd/telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilesONerd%2Ftelegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ai","artificial-intelligence","bart","facebook-bart","llama","llama3","llama3-1-nemotron","meta-bart","milesonerd","milesonerdai","milesonerdbot","python","telegram","telegram-bot"],"created_at":"2025-01-28T21:33:19.089Z","updated_at":"2026-05-16T11:03:51.655Z","avatar_url":"https://github.com/MilesONerd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MilesONerd AI Telegram Bot\n\nAn intelligent Telegram bot powered by advanced AI models and internet search capabilities. The bot uses Llama 3.1-Nemotron for text generation and BART for text summarization, with future plans for internet search integration.\n\n## Features\n\n- Advanced language understanding using multiple AI models\n- Text summarization for long messages\n- Intelligent response generation\n- Continuous learning capabilities (planned)\n- Internet search integration (planned)\n\n## Requirements\n\n- Python 3.8+\n- pip (Python package manager)\n- A Telegram Bot Token (get it from [@BotFather](https://t.me/BotFather))\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/MilesONerd/telegram-bot.git\ncd telegram-bot\n```\n\n2. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n3. Configure environment variables:\n```bash\ncp .env.example .env\n```\nEdit `.env` and set your Telegram Bot Token:\n```\nTELEGRAM_BOT_TOKEN=your_bot_token_here\n```\n\n## Usage\n\n1. Start the bot:\n```bash\npython bot.py\n```\n\n2. Open Telegram and search for your bot using the username you set with @BotFather\n\n3. Start chatting with the bot using these commands:\n- `/start` - Begin interaction with the bot\n- `/help` - Show available commands\n- `/about` - Learn more about the bot\n\n## Message Handling\n\nThe bot processes messages differently based on their content:\n- Short questions (\u003c 10 words): Quick responses using Llama 3.3\n- Long messages (\u003e 100 words): Summarization using BART + detailed response\n- Messages containing 'summarize' or 'tldr': Text summarization\n- Chat-related queries: Optimized conversation handling\n- Regular messages: Comprehensive AI-powered responses\n\n## Environment Variables\n\n- `TELEGRAM_BOT_TOKEN`: Your Telegram Bot API token (required)\n- `SERPAPI_API_KEY`: Google Search API key (optional, for future use)\n- `DEFAULT_MODEL`: Default AI model to use (default: llama)\n- `ENABLE_CONTINUOUS_LEARNING`: Enable/disable learning capabilities (default: true)\n\n## Project Structure\n\n```\ntelegram-bot/\n├── bot.py              # Main bot implementation\n├── ai_handler.py       # AI model handling and text generation\n├── requirements.txt    # Python dependencies\n├── .env.example        # Environment variables template\n├── README.md          # Project documentation\n└── LICENSE            # Project License\n```\n\n## Development Status\n\n- [x] Basic bot implementation\n- [x] Llama 3.1-Nemotron integration\n- [x] BART integration\n- [ ] Llama 3.3 integration\n- [ ] Mistral Mathstral\n- [ ] Mistral Mamba Codestral\n- [ ] Mistral Pixtral\n- [ ] Internet search integration\n- [ ] Continuous learning implementation\n- [ ] Advanced error handling\n- [ ] Performance optimizations\n\n## License\n\nThis project is [BSD 3-Clause License](https://github.com/MilesONerd/telegram-bot/blob/main/LICENSE). All rights reserved to [Enzo Fuke (MilesONerd)](https://milesonerd.github.io).\n\n## Author\n\nCreated by [MilesONerd](https://github.com/MilesONerd)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesonerd%2Ftelegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilesonerd%2Ftelegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesonerd%2Ftelegram-bot/lists"}