Skip to content

Telegram bot powered by OpenAI's ChatGPT, enabling text and audio interactions.

License

Notifications You must be signed in to change notification settings

wntmorder/ChatGPT-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT Telegram Bot

This is a Telegram bot powered by OpenAI's ChatGPT and designed to provide text and audio-based interactions. It can transcribe voice messages and respond to text messages.

Table of Contents

Getting Started

Prerequisites

Before you can run this bot, you'll need the following:

  • .NET Core SDK
  • Telegram Bot API Token
  • OpenAI API Key

Installation

  1. Clone the repository:

    git clone https://github.com/wntmorder/ChatGPT-Bot.git
  2. Navigate to the project directory:

    cd ChatGPT-Bot
  3. Create an appsettings.json file and add your Telegram Bot API Token and OpenAI API Key:

    {
        "TelegramApiKey": "YOUR_TELEGRAM_API_KEY",
        "GptApiKey": "YOUR_OPENAI_API_KEY"
    }
  4. Build and run the bot:

    dotnet run

Usage

  • Start a chat with your bot on Telegram.
  • Send text messages to chat with ChatGPT.
  • Send voice messages, and the bot will transcribe and respond with text

Configuration

You can configure the bot by modifying the appsettings.json file. Make sure to specify your Telegram API Key and OpenAI API Key in this file. You can also explore the library OpenAI-DotNet and add new functionality (e.g. photo processing).

Contributing

If you'd like to improve or extend the functionality of this bot, feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License.

About

Telegram bot powered by OpenAI's ChatGPT, enabling text and audio interactions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages