{"id":15821391,"url":"https://github.com/flexoid/talk2text-telegram-bot","last_synced_at":"2026-04-27T21:31:05.487Z","repository":{"id":219036865,"uuid":"611968905","full_name":"flexoid/talk2text-telegram-bot","owner":"flexoid","description":"talk2text-telegram-bot","archived":false,"fork":false,"pushed_at":"2023-04-20T16:29:14.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-12T07:49:06.154Z","etag":null,"topics":["chatgpt","openai","telegram-bot","whisper-ai"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-03-09T23:14:32.000Z","updated_at":"2024-02-24T05:36:39.000Z","dependencies_parsed_at":"2024-01-25T05:28:28.881Z","dependency_job_id":"2ba85cd8-9f60-407a-9144-b48630c4affb","html_url":"https://github.com/flexoid/talk2text-telegram-bot","commit_stats":null,"previous_names":["flexoid/talk2text-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flexoid/talk2text-telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Ftalk2text-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Ftalk2text-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Ftalk2text-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Ftalk2text-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexoid","download_url":"https://codeload.github.com/flexoid/talk2text-telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Ftalk2text-telegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"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":["chatgpt","openai","telegram-bot","whisper-ai"],"created_at":"2024-10-05T07:21:54.435Z","updated_at":"2026-04-27T21:31:05.471Z","avatar_url":"https://github.com/flexoid.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Talk2Text Telegram Bot\n\nTalk2Text is a self-hosted Telegram bot that automatically transcribes voice messages into text and provides a summary of the transcriptions.\n\n## Features\n\n- Transcribes voice messages into text (using Whisper API, supports multiple languages)\n- Provides a summary of the transcriptions (using OpenAI GPT3.5 API)\n- Language detection for summarization\n- Simple PIN-based authentication\n\n## Authentication\n\nThe bot uses a simple PIN-based authentication mechanism to control access to its features. When a user interacts with the bot for the first time, they are prompted to enter the configured PIN code.\n\nOnce the user provides the correct PIN code, they are granted access to the bot's features. The bot remembers authenticated users by storing their user IDs in memory. If the bot is restarted, all authenticated users will have to re-authenticate.\n\nPlease read [[Developer notes]](#developer-notes) for warnings about this authentication approach.\n\n## Running the bot\n\n### Prerequisites\n\nBefore running the Talk2Text bot, make sure you have the following:\n\n- A Telegram bot token obtained from BotFather\n- An OpenAI API key\n\nIf you want to run the bot locally without Docker, you'll also need:\n- Go development environment installed\n- FFmpeg installed\n\nClone the repository and switch to the repository folder:\n\n```bash\ngit clone https://github.com/flexoid/talk2text-telegram-bot\ncd talk2text-telegram-bot\n```\n\n### Configuration\n\nCreate a .env file in the root directory of the project and add the following environment variables:\n\n```bash\nBOT_TOKEN=your_telegram_bot_token\nOPENAI_API_KEY=your_openai_api_key\nPIN_CODE=your_pin_code\n```\n\nReplace your_telegram_bot_token, your_openai_api_key, and your_pin_code with your actual Telegram bot token, OpenAI API key, and desired PIN code, respectively.\n\n### Running locally\n\nBuild the project:\n\n```go\ngo build\n```\n\nTo run the bot, execute the binary generated during the build process:\n\n```bash\n./talk2text-telegram-bot\n```\n\nThe bot should now be running, and you can interact with it through Telegram. To authenticate, send your configured PIN code to the bot.\n\n### Running on Docker\n\nMake sure you have Docker installed and running on your machine.\n\nBuild the Docker image:\n\n```bash\ndocker build -t talk2text-telegram-bot .\n```\n\nRun the Docker image:\n\n```bash\ndocker run -d --name talk2text-telegram-bot talk2text-telegram-bot\n```\n\nThe bot should now be running in a Docker container, and you can interact with it through Telegram. To authenticate, send your configured PIN code to the bot.\n\n## Developer notes\n\nThis bot was initially developed for personal use in a single evening to experiment with the Whisper API. As a result, the repository currently lacks tests and may contain bugs or not be production-ready.\n\nIt's essential to note that the authentication approach employed in this bot is not highly secure, has potential vulnerabilities, and could lead to memory leaks. This implementation is intended for demonstration purposes only and should not be used in production environments without making improvements to the security and efficiency of the authentication process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexoid%2Ftalk2text-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexoid%2Ftalk2text-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexoid%2Ftalk2text-telegram-bot/lists"}