Skip to content

A free Telegram chatbot that uses Cohere AI to generate intelligent responses to user messages.

License

Notifications You must be signed in to change notification settings

derssen/AI-Telegram-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Telegram Chatbot

This project is a simple Telegram chatbot that integrates with Cohere AI to generate responses to user messages. The bot listens for any text messages, sends them to the AI model, and returns the generated response.

Features

  • Responds to any text message in the chat
  • Uses Cohere's AI model to generate intelligent responses
  • Easy to set up and customize

Prerequisites

To run this bot, you will need:

  • Python 3.6+
  • A Cohere API key
  • A Telegram Bot API token

Installation

  1. Clone the repository:

    git clone https://github.com/derssen/AI-Telegram-Chatbot.git
    cd your-repo-name
  2. Install the required Python libraries:

    pip install -r requirements.txt
  3. Create a .env file (optional) to store your API keys:

    echo "AI_API_KEY=your-cohere-api-key" > .env
    echo "API_TOKEN=your-telegram-bot-token" >> .env
  4. Update the script with your API keys:

    • Replace 'your-cohere-api-key-here' with your Cohere API key.
    • Replace 'your-telegram-bot-token-here' with your Telegram Bot API token.

Usage

  1. Run the bot:

    python bot.py
  2. Start a conversation with your bot in Telegram. Any message you send will be processed by the AI, and it will generate a response.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A free Telegram chatbot that uses Cohere AI to generate intelligent responses to user messages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages