Two use cases:
- A telegram client to send chat gpt messages on a list of user.
- A bot to generate chat gpt messages on telegram.
pip install openai telethon pyTelegramBotAPI
- Set the following variables:
- OPENAI_API_KEY
- TELEGRAM_API_ID
- TELEGRAM_API_HASH
- TELEGRAM_PHONE
- TELEGRAM_BOT_TOKEN
then to run the client, type on the terminal:
python3 client.py
otherwise to run the bot, type:
python3 bot.py