Skip to content

๐ŸŒŒ Telegram Bot for Free Access to ChatGPT-4 and ChatGPT-3

License

Notifications You must be signed in to change notification settings

zachey01/g4f-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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:

    git clone https://github.com/zachey01/g4f-telegram-bot.git
    cd g4f-telegram-bot
  2. Install dependencies:

    npm install
  3. Configure environment variables: Create a .env file in the root directory and add your Telegram bot token:

    TELEGRAM_TOKEN=your-telegram-bot-token
  4. Run the bot:

    node src/bot.js

Using bun.sh

  1. Clone the repository:

    git clone https://github.com/zachey01/g4f-telegram-bot.git
    cd g4f-telegram-bot
  2. Install dependencies:

    bun install
  3. Configure environment variables: Create a .env file in the root directory and add your Telegram bot token:

    TELEGRAM_TOKEN=your-telegram-bot-token
  4. Run the bot:

    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.

About

๐ŸŒŒ Telegram Bot for Free Access to ChatGPT-4 and ChatGPT-3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published