https://github.com/chernegasergiy/cohere-telegram-bot
A Telegram bot that leverages the Cohere API to provide intelligent responses and assistance.
https://github.com/chernegasergiy/cohere-telegram-bot
ai chatbot chatgpt claude-ai cohere-ai cohere-api php7 php8 telegram-bot
Last synced: 8 months ago
JSON representation
A Telegram bot that leverages the Cohere API to provide intelligent responses and assistance.
- Host: GitHub
- URL: https://github.com/chernegasergiy/cohere-telegram-bot
- Owner: ChernegaSergiy
- License: other
- Created: 2024-11-10T04:32:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-06T18:06:15.000Z (10 months ago)
- Last Synced: 2025-10-14T18:05:38.178Z (8 months ago)
- Topics: ai, chatbot, chatgpt, claude-ai, cohere-ai, cohere-api, php7, php8, telegram-bot
- Language: PHP
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cohere Telegram Bot
A Telegram bot that utilizes the [Cohere API](https://cohere.ai/) to deliver intelligent responses and assistance. This bot manages user interactions, including terms acceptance and context retention, to create a seamless experience.
## Features
- 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.
## Getting Started
### Prerequisites
- PHP 7.4 or higher
- Composer
- A Telegram bot token (create one with [BotFather](https://t.me/BotFather))
- A Cohere API key (sign up at [Cohere](https://cohere.ai/))

*Example of interaction with the bot in Telegram.*
### Installation
1. Clone the repository:
```bash
git clone https://github.com/ChernegaSergiy/cohere-telegram-bot.git
cd cohere-telegram-bot
```
2. Install dependencies:
```bash
composer require telegram-bot/api
composer install
```
3. Configure your bot token and API key in the `bot.php` file.
4. Run the bot:
```bash
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](LICENSE) file for details.
## Acknowledgments
- [Cohere](https://cohere.ai/) for providing the API that powers the bot's intelligent responses.
- [Telegram Bot API](https://core.telegram.org/bots/api) for enabling bot functionality on Telegram.
- Special thanks to the open-source community for their contributions and support.