Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zachey01/g4f-telegram-bot
🌌 Telegram Bot for Free Access to ChatGPT-4 and ChatGPT-3
https://github.com/zachey01/g4f-telegram-bot
bun chatgpt free g4f gpt-35-turbo gpt-4 telegram-bot
Last synced: 7 days ago
JSON representation
🌌 Telegram Bot for Free Access to ChatGPT-4 and ChatGPT-3
- Host: GitHub
- URL: https://github.com/zachey01/g4f-telegram-bot
- Owner: zachey01
- License: mit
- Created: 2024-06-28T15:07:31.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-28T15:31:29.000Z (7 months ago)
- Last Synced: 2024-11-12T12:09:17.384Z (2 months ago)
- Topics: bun, chatgpt, free, g4f, gpt-35-turbo, gpt-4, telegram-bot
- Language: JavaScript
- Homepage:
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram Bot for Free Access to ChatGPT-4 and ChatGPT-3
This Telegram bot provides free access to ChatGPT-4 and ChatGPT-3. Users can select their preferred language, clear chat history, and all user data is stored in `dialogues.db`.
## Features
- Access to ChatGPT-4 and ChatGPT-3
- Language selection
- Clear chat history
- User data storage in `dialogues.db`## Prerequisites
- Node or Bun
## Installation and Setup
### Using npm
1. **Clone the repository:**
```sh
git clone https://github.com/zachey01/g4f-telegram-bot.git
cd g4f-telegram-bot
```2. **Install dependencies:**
```sh
npm install
```3. **Configure environment variables:**
Create a `.env` file in the root directory and add your Telegram bot token:```env
TELEGRAM_TOKEN=your-telegram-bot-token
```4. **Run the bot:**
```sh
node src/bot.js
```### Using bun.sh
1. **Clone the repository:**
```sh
git clone https://github.com/zachey01/g4f-telegram-bot.git
cd g4f-telegram-bot
```2. **Install dependencies:**
```sh
bun install
```3. **Configure environment variables:**
Create a `.env` file in the root directory and add your Telegram bot token:```env
TELEGRAM_TOKEN=your-telegram-bot-token
```4. **Run the bot:**
```sh
bun run src/bot.js
```## Database
All user data, including chat history, is stored in `dialogues.db`.
## Contributing
Feel free to open issues or submit pull requests if you have any improvements or bug fixes.
## License
This project is licensed under the MIT License.