This repository contains two Telegram bots for transcribing and summarizing voice messages and audio files:
- SumvoiceBot - A traditional Telegram bot that uses a bot token
- Sumvoice Userbot - A userbot that runs on your personal Telegram account
- Python 3.7+
- Groq API key (for AI transcription and summarization)
- Clone this repository
- Install dependencies:
pip install -r requirements.txt - Create a
.envfile with the following variables:# Required for both bots GROQ_API_KEY=your_groq_api_key # Required only for SumvoiceBot TELEGRAM_TOKEN=your_telegram_bot_token ADMIN_ID=your_telegram_user_id # Required for /whitelist and /toggle_whitelist commands WHITELIST_IDS=comma,separated,list,of,allowed,user,ids # Required only for Sumvoice Userbot PYROGRAM_API_ID=your_pyrogram_api_id PYROGRAM_API_HASH=your_pyrogram_api_hash
Run the traditional bot with:
python sumvoice_bot.py
Send a voice message or audio file to the bot, and it will transcribe and summarize it. You can then ask questions about the content.
Run the userbot with:
python sumvoice_userbot.py
On first run, you'll need to authenticate with your Telegram account.
To use the userbot:
- Find a voice message or audio file in any chat
- Reply to it with
.sumvoice - The userbot will process it and reply with a summary
- Transcription and summarization of voice messages and audio files
- Question answering about transcribed content
- User whitelist system
- Admin commands for managing users
- Simple command-based interface (
.sumvoice) - Works in private chats and groups
- Lightweight with minimal features
- Runs on your personal Telegram account
/start- Start the bot and get a welcome message/help- Display help information