{"id":26095283,"url":"https://github.com/osoianmarcel/telegram-openai-bot","last_synced_at":"2026-04-18T19:31:24.416Z","repository":{"id":65541998,"uuid":"585290153","full_name":"OsoianMarcel/telegram-openai-bot","owner":"OsoianMarcel","description":"Telegram Bot made for communication with OpenAI.","archived":false,"fork":false,"pushed_at":"2023-02-27T18:31:17.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-26T05:54:34.866Z","etag":null,"topics":["ai","bot","golang","openai","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","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/OsoianMarcel.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":"2023-01-04T19:53:04.000Z","updated_at":"2023-03-22T04:43:47.000Z","dependencies_parsed_at":"2025-06-07T22:45:52.294Z","dependency_job_id":null,"html_url":"https://github.com/OsoianMarcel/telegram-openai-bot","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/OsoianMarcel/telegram-openai-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsoianMarcel%2Ftelegram-openai-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsoianMarcel%2Ftelegram-openai-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsoianMarcel%2Ftelegram-openai-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsoianMarcel%2Ftelegram-openai-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OsoianMarcel","download_url":"https://codeload.github.com/OsoianMarcel/telegram-openai-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsoianMarcel%2Ftelegram-openai-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: 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","bot","golang","openai","telegram","telegram-bot"],"created_at":"2025-03-09T13:15:28.124Z","updated_at":"2026-04-18T19:31:24.397Z","avatar_url":"https://github.com/OsoianMarcel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram OpenAI Bot\n\nTelegram Bot made for communication with OpenAI.\n\n*The conversation mode is not implemented.\n\n## Build\n\nTo build the executable run:\n\n```\ngo build ./cmd/tgbot\n```\n\nTo build the executable for different platforms, check the Go documentation.\n\n## Environment variables\n\nTo run this project, you will need to set the following environment variables:\n\n**Required**\n\n`TG_APITOKEN` - Telegram bot API token. \n\n`GPT_AUTH_TOKEN` - OpenAI API key.\n\n**Optional**\n\n`TG_ADMIN_CHATID` - Bot owner chat id (used for feedback command).\n\n`STATS_FILE` - The file path for storing the statistics (JSON format).\n\n## Example\n\nA bot example can be found here https://t.me/ask_openai_bot\n\nWarning: This bot is served from my home Raspberry Pi, so I cannot guarantee 100% uptime. \n\n## TODO\n\n- Store Telegram update offset, and use it on startup.\n- Keep sending typing action until the AI responds.\n- Flush dirty stats to disk once in X seconds.\n- Change the stats model (no user stats, daily, weekly, monthly stats).\n- Implement conversational mode.\n\n## Give a Star ⭐\nIf you find this repository useful, please give it a star to show your support for this project. 😊\n\n## License\nAll contents of this repository are licensed under the [MIT license].\n\n[MIT license]: https://github.com/OsoianMarcel/telegram-openai-bot/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosoianmarcel%2Ftelegram-openai-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosoianmarcel%2Ftelegram-openai-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosoianmarcel%2Ftelegram-openai-bot/lists"}