Skip to content

bazhen82/presentBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PresentBot

Telegram bot that answers user messages with an AI-generated Russian response and sends the same response as a voice message.

Features

  • Receives messages from Telegram users.
  • Generates answers through OpenRouter AI.
  • Converts generated text to Russian speech with Google Text-to-Speech.
  • Sends both text and voice responses back to the user.

Tech Stack

  • Python
  • pyTelegramBotAPI
  • OpenRouter API
  • gTTS

Setup

  1. Create and activate a virtual environment:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
  1. Install dependencies:
pip install -r requirements.txt
  1. Create environment variables:
copy .env.example .env

Then add your real tokens to .env.

  1. Run the bot:
python main.py

Environment Variables

  • TELEGRAM_API_KEY - Telegram bot token from BotFather.
  • OPENROUTER_API_KEY - API key from OpenRouter.

Security

Do not commit .env or real API keys to the repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Generated from github/codespaces-blank