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.
- Intelligent responses powered by Cohere's AI.
- User context management for personalized interactions.
- Terms of service acceptance flow.
- Multi-language support based on user preferences.
- PHP 7.4 or higher
- Composer
- A Telegram bot token (create one with BotFather)
- A Cohere API key (sign up at Cohere)
Example of interaction with the bot in Telegram.
-
Clone the repository:
git clone https://github.com/ChernegaSergiy/cohere-telegram-bot.git cd cohere-telegram-bot
-
Install dependencies:
composer require telegram-bot/api composer install
-
Configure your bot token and API key in the
bot.php
file. -
Run the bot:
php bot.php
Contributions are welcome and appreciated! Here's how you can contribute:
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Please make sure to update tests as appropriate and adhere to the existing coding style.
This project is licensed under the CSSM Unlimited License v2 (CSSM-ULv2). See the LICENSE file for details.
- 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.