Metadata-Version: 2.1
Name: telegpt
Version: 0.1.1
Maintainer: Fernando Perez-Garcia
Maintainer-email: fepegar@gmail.com
License: MIT
Project-URL: Source, https://github.com/fepegar/telegram-gpt-bot
Platform: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Typing :: Typed
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# Telegram bot for ChatGPT

Send voice notes in any language (which will be translated to English) or text messages to ChatGPT.

## Set environment variables

- `TELEGRAM_BOT_TOKEN`: Telegram token from bot created using [@BotFather](https://t.me/botfather)
- `TELEGRAM_CLIENT_ID`: Telegram client ID from [@userinfobot](https://t.me/userinfobot)
- `OPENAI_API_KEY`: OpenAI API key from [OpenAI](https://beta.openai.com/)

## Installation

```shell
pip install telegpt
```

## Launch the bot

```shell
telegpt
```

## Usage

- Text `/new` to the bot to restart so it forget the last conversation.
- Voice notes in any language will be translated to English before being passed to ChatGPT.
