Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Cohere Telegram Bot

A Telegram bot that utilizes the Cohere API to deliver intelligent responses and assistance. This bot manages user interactions, including terms acceptance and context retention, to create a seamless experience.

Features

  • Intelligent Response Engine: Leverages Cohere's advanced AI to deliver insightful and relevant answers to user queries.
  • Context-Aware Interactions: Efficiently manages user context to ensure a seamless and personalized conversational experience.
  • Terms Acceptance Workflow: Implements a secure and structured flow for users to accept the Terms of Service before engagement.
  • Multi-Language Support: Provides dynamic language adaptation based on individual user preferences and settings.

Getting Started

Prerequisites

  • PHP 7.4 or higher
  • Composer
  • A Telegram bot token (create one with BotFather)
  • A Cohere API key (sign up at Cohere)

Cohere Telegram Bot Interface

Example of interaction with the bot in Telegram.

Installation

  1. Clone the repository:

    git clone https://github.com/ChernegaSergiy/cohere-telegram-bot.git
    cd cohere-telegram-bot
  2. Install dependencies:

    composer require telegram-bot/api
    composer install
  3. Configure your bot token and API key in the bot.php file.

  4. Run the bot:

    php bot.php

Contributing

Contributions are welcome and appreciated! Here's how you can contribute:

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please make sure to update tests as appropriate and adhere to the existing coding style.

License

This project is licensed under the CSSM Unlimited License v2.0 (CSSM-ULv2). See the LICENSE file for details.

Acknowledgments

  • Cohere for providing the API that powers the bot's intelligent responses.
  • Telegram Bot API for enabling bot functionality on Telegram.
  • Special thanks to the open-source community for their contributions and support.

About

A Telegram bot that leverages the Cohere API to provide intelligent responses and assistance.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Contributors

Languages