Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 DeepSeek Telegram Bot

A lightweight Telegram bot that integrates with the DeepSeek API to process and respond to user queries intelligently.


🚀 Features

  • Interacts with users on Telegram
  • Forwards queries to the DeepSeek API
  • Sends back intelligent responses from DeepSeek

🧰 Requirements

  • Python 3.7 or higher
  • A Telegram Bot Token
  • A DeepSeek API Key and Endpoint

📦 Installation

1. Clone the Repository

git clone https://github.com/your-username/deepseek-telegram-bot.git
cd deepseek-telegram-bot

2. Create and Activate a Virtual Environment

On macOS/Linux:

python3 -m venv venv
source venv/bin/activate

On Windows:

python -m venv venv
venv\Scripts\activate

3. Install Dependencies

Install the required libraries (including python-telegram-bot):

pip install -r requirements.txt

Or manually install if no requirements.txt:

pip install python-telegram-bot requests python-dotenv

🔐 Environment Variables

Set the following environment variables either in your shell or in a .env file:

DEEPSEEK_API_KEY=your_deepseek_api_key
DEEPSEEK_API_ENDPOINT=https://your-deepseek-api-endpoint.com
TELEGRAM_BOT_TOKEN=your_telegram_bot_token

You can create a .env file in the project directory for automatic loading.


▶️ Running the Bot

Simply run:

python bot.py

The bot will start and listen for incoming messages on Telegram.


📁 Project Structure

bot.py               # Main bot logic
.env (optional)      # Environment variables
README.md            # Project documentation
requirements.txt     # Python dependencies

🧪 Example Usage

User: "Summarize this article..."
Bot: "Here’s a summary from DeepSeek: ..."


🛠️ Customization

  • Modify bot.py to enhance behavior or add new features.
  • Leverage the full power of the python-telegram-bot library.

📄 License

This project is licensed under the MIT License.


🙌 Contributions

Feel free to fork, open issues, or submit pull requests to improve the bot!

About

A Telegram bot that uses the DeepSeek API to provide intelligent responses to user queries.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages