Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coslynx/ai-telegram-bot-dashboard
Project: AI-Powered Telegram Bot with Web Dashboard. Created at https://spectra.codes, which is owned by @Drix10
https://github.com/coslynx/ai-telegram-bot-dashboard
ai-telegram-bot api-integration code-generation code-quality context-aware-chat developer-tools devops express-js image-processing javascript machine-learning multi-model-chat next-js node-js openai-api postgresql software-development typescript user-database web-dashboard
Last synced: 12 days ago
JSON representation
Project: AI-Powered Telegram Bot with Web Dashboard. Created at https://spectra.codes, which is owned by @Drix10
- Host: GitHub
- URL: https://github.com/coslynx/ai-telegram-bot-dashboard
- Owner: coslynx
- Created: 2024-08-08T13:27:08.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T13:39:28.000Z (3 months ago)
- Last Synced: 2024-10-11T06:21:37.202Z (about 1 month ago)
- Topics: ai-telegram-bot, api-integration, code-generation, code-quality, context-aware-chat, developer-tools, devops, express-js, image-processing, javascript, machine-learning, multi-model-chat, next-js, node-js, openai-api, postgresql, software-development, typescript, user-database, web-dashboard
- Language: TypeScript
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ai-telegram-bot-dashboardAI-powered Telegram bot with a comprehensive web dashboard for managing and enhancing AI-assisted conversations and content analysis.
Developed with the software and tools below.
## ๐ Table of Contents
- ๐ Overview
- ๐ฆ Features
- ๐ Structure
- ๐ป Installation
- ๐๏ธ Usage
- ๐ Hosting
- ๐ License
- ๐ Authors## ๐ Overview
This repository houses the "ai-telegram-bot-dashboard" project, which brings together the power of AI and Telegram to provide a sophisticated communication and automation platform. The project features a robust web dashboard that allows for seamless management and configuration of the AI-powered bot.## ๐ฆ Features
| | Feature | Description |
|----|--------------------|--------------------------------------------------------------------------------------------------------------------|
| โ๏ธ | Architecture | The project's architecture is designed for modularity, scalability, and maintainability, with separate components for bot logic, web dashboard, and AI integration. |
| ๐ | Documentation | This README file provides a comprehensive overview of the project, its features, dependencies, and instructions for installation and usage. |
| ๐ | Dependencies | The project leverages a range of popular libraries and packages, including Next.js, Express.js, Prisma, OpenAI, and LangChain, to ensure efficient development and integration. |
| ๐งฉ | Modularity | The codebase is structured modularly, with distinct directories for frontend (web dashboard), backend (API), and telegram bot functionalities. This approach facilitates easier code maintenance and allows for efficient expansion.|
| ๐งช | Testing | Thorough testing is implemented to ensure the reliability and robustness of the codebase, utilizing frameworks like Jest. |
| โก๏ธ | Performance | Performance optimization strategies are employed to ensure a smooth and responsive user experience, including caching, database optimization, and efficient resource utilization. |
| ๐ | Security | Robust security measures are implemented to protect sensitive user data and ensure secure communication. These measures include input validation, data encryption, and regular security audits. |
| ๐ | Version Control| The project utilizes Git for version control, with GitHub Actions workflow files for automated build and release processes. |
| ๐ | Integrations | The platform integrates with various services and APIs, including the Telegram Bot API, OpenAI API, weather APIs, news APIs, image processing APIs, and translation APIs. |
| ๐ถ | Scalability | The project is designed for scalability to handle increased user loads and data volumes, leveraging cloud-based infrastructure and database optimizations. |## ๐ Structure
```
โโโ src
โ โโโ telegram
โ โ โโโ utils
โ โ โ โโโ bot.ts
โ โ โโโ services
โ โ โ โโโ openai.service.ts
โ โ โโโ types
โ โ โ โโโ types.ts
โ โ โโโ commands
โ โ โ โโโ help.ts
โ โ โ โโโ start.ts
โ โ โ โโโ translate.ts
โ โ โโโ events
โ โ โ โโโ message.ts
โ โ โโโ index.ts
โ โ โโโ constants.ts
โ โโโ web
โ โ โโโ api
โ โ โ โโโ controllers
โ โ โ โ โโโ user.controller.ts
โ โ โ โ โโโ admin.controller.ts
โ โ โ โ โโโ image.controller.ts
โ โ โ โ โโโ conversation.controller.ts
โ โ โ โ โโโ bot.controller.ts
โ โ โ โโโ middlewares
โ โ โ โ โโโ auth.middleware.ts
โ โ โ โ โโโ validate.middleware.ts
โ โ โ โโโ services
โ โ โ โ โโโ user.service.ts
โ โ โ โ โโโ image.service.ts
โ โ โ โ โโโ conversation.service.ts
โ โ โ โ โโโ bot.service.ts
โ โ โ โโโ routes.ts
โ โ โโโ pages
โ โ โ โโโ admin
โ โ โ โ โโโ dashboard
โ โ โ โ โ โโโ index.tsx
โ โ โ โ โโโ users
โ โ โ โ โ โโโ index.tsx
โ โ โ โ โโโ settings
โ โ โ โ โโโ index.tsx
โ โ โ โโโ auth
โ โ โ โ โโโ login.tsx
โ โ โ โโโ conversations
โ โ โ โ โโโ index.tsx
โ โ โ โโโ index.tsx
โ โ โโโ config
โ โ โ โโโ env.ts
โ โ โโโ app.tsx
โ โ โโโ db.ts
โ โ โโโ utils
โ โ โ โโโ error.ts
โ โ โ โโโ logger.ts
โ โ โ โโโ response.ts
โ โ โโโ types
โ โ โ โโโ types.ts
โ โ โ โโโ user.ts
โ โโโ core
โ โ โโโ config
โ โ โ โโโ openai.config.ts
โ โ โโโ utils
โ โ โ โโโ string.ts
โ โ โ โโโ time.ts
โ โ โ โโโ logger.ts
โ โ โโโ types
โ โ โ โโโ types.ts
โ โ โโโ constants.ts
โ โโโ models
โ โ โโโ User.ts
โ โ โโโ Conversation.ts
โ โ โโโ Image.ts
โ โโโ prisma
โ โโโ schema.prisma
โโโ .eslintrc.js
โโโ tsconfig.json
โโโ next.config.js
โโโ tailwind.config.js
โโโ package.json```
## ๐ป Installation
### ๐ง Prerequisites
- Node.js
- npm
- Docker### ๐ Setup Instructions
1. Clone the repository:
- `git clone https://github.com/spectra-ai-codegen/ai-telegram-bot-dashboard.git`
2. Navigate to the project directory:
- `cd ai-telegram-bot-dashboard`
3. Install dependencies:
- `npm install`
## ๐๏ธ Usage
### ๐โโ๏ธ Running the Project
1. Start the development server:
- `npm start`
2. Open your browser and navigate to [http://localhost:3000](http://localhost:3000).### โ๏ธ Configuration
Adjust configuration settings in `config.js` or `.env`.### ๐ Examples
- ๐ Example 1: Send a text message to the bot and receive an AI-generated response.
- ๐ Example 2: Utilize the image processing features to extract text from an image or generate a caption for an image.
- ๐ Example 3: Access the web dashboard to manage bot settings, monitor bot usage, and configure user access.## ๐ Hosting
### ๐ Deployment Instructions
#### Docker and Cloud Deployment
1. Build the Docker image:
- `docker build -t ai-telegram-bot-dashboard .`
2. Run the Docker container:
- `docker run -p 3000:3000 ai-telegram-bot-dashboard`#### Heroku
1. Install the Heroku CLI:
- `npm install -g heroku`
2. Login to Heroku:
- `heroku login`
3. Create a new Heroku app:
- `heroku create`
4. Deploy the code:
- `git push heroku main`### ๐ Environment Variables
- `TELEGRAM_BOT_TOKEN`: Your Telegram bot token
- `OPENAI_API_KEY`: Your OpenAI API key
- `DATABASE_URL`: Your database connection URL## ๐ API Documentation
### ๐ Endpoints
- GET /api/bot/messages: Retrieves a list of messages sent to the bot.
- POST /api/bot/messages: Sends a message to the bot.
- GET /api/admin/users: Retrieves a list of users.
- POST /api/admin/users: Creates a new user.### ๐ Authentication
Use JWT tokens for authentication.### ๐ Examples
- `curl -X GET http://localhost:3000/api/bot/messages`## ๐ License
This project is licensed under the [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/).## ๐ฅ Authors
- Author Name - [Spectra.codes](https://spectra.codes)
- Creator Name - [DRIX10](https://github.com/Drix10)
๐ Spectra.Codes
Why only generate Code? When you can generate the whole Repository!