{"id":20367648,"url":"https://github.com/ababaee1/llm_api_telegram_bot","last_synced_at":"2025-10-29T12:38:25.512Z","repository":{"id":260013379,"uuid":"869737020","full_name":"ababaee1/LLM_API_Telegram_bot","owner":"ababaee1","description":"Python Telegram bot with Large Language Models (OpenAI) integration for dynamic conversations.","archived":false,"fork":false,"pushed_at":"2024-10-08T22:04:00.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T05:45:01.315Z","etag":null,"topics":["large-language-models","openai","python-bot","telegram-bot-api"],"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/ababaee1.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":"2024-10-08T19:53:09.000Z","updated_at":"2024-10-09T01:38:48.000Z","dependencies_parsed_at":"2024-10-29T04:20:42.091Z","dependency_job_id":"98e08076-e7d5-4ed4-9c4c-ae44e2607b79","html_url":"https://github.com/ababaee1/LLM_API_Telegram_bot","commit_stats":null,"previous_names":["ababaee1/llm_api_telegram_bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ababaee1%2FLLM_API_Telegram_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ababaee1%2FLLM_API_Telegram_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ababaee1%2FLLM_API_Telegram_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ababaee1%2FLLM_API_Telegram_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ababaee1","download_url":"https://codeload.github.com/ababaee1/LLM_API_Telegram_bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241909244,"owners_count":20040772,"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":["large-language-models","openai","python-bot","telegram-bot-api"],"created_at":"2024-11-15T00:33:52.879Z","updated_at":"2025-10-29T12:38:20.459Z","avatar_url":"https://github.com/ababaee1.png","language":"Python","readme":"# Telegram Bot with OpenAI\n\nA simple Telegram bot that chats using OpenAI's Large language model (LLM) ! THe code can be also used for any other LLM like claude or gemini ai with slight changes. \n\nFollow these steps to set it up and start chatting.\n\n## 🚀 Features\n\n- Connects directly to OpenAI's API for dynamic responses.\n- Easy setup with minimal configuration.\n\n## 🛠 Setup\n\n### 1. Create Your Telegram Bot\n   - Message [BotFather](https://core.telegram.org/bots#botfather) on Telegram, send `/newbot`, and follow the steps.\n   - Copy your bot's token.\n\n### 2. Get OpenAI API Key\n   - Sign up at [OpenAI](https://openai.com/) and grab an API key from the API keys section. (there is a free trial credits I believe) \n\n### 3. Clone This Project\n   ```bash\n   git clone https://github.com/ababaee1/LLM_API_Telegram_bot.git\n   cd LLM_API_Telegram_bot\n```\n### 4. Install Requirements\n    pip install -r requirements.txt\n    \n### 5. Set Up Environment Variables\nenter the token values. \n\n    TELEGRAM_BOT_TOKEN=your_telegram_token\n    OPENAI_API_KEY=your_openai_key\n    \n### 6. 🚲 Run the Bot\n    python bot.py\n  \n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fababaee1%2Fllm_api_telegram_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fababaee1%2Fllm_api_telegram_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fababaee1%2Fllm_api_telegram_bot/lists"}