- A Fly.io account
- Fly.io's CLI is installed on your machine
- Prerequisites in the repository
- An OpenAI account and API key (note: this is pay as you go).
- Telegram, a Telegram bot, and its token.
- Python 3.10 and pipenv (optional, only if you want to edit the bot locally)
- Optional: Fork the
n3d1117/chatgpt-telegram-bot
repository. - Clone the repository using Git to a local folder:
$ git clone https://github.com/n3d1117/chatgpt-telegram-bot.git $ cd chatgpt-telegram-bot
- Configure the Telegram bot's settings as pointed out in the repository.
- Once you're satisfied with the settings, launch a Fly.io app with the command:
$ flyctl launch
- Configure the settings for the Fly.io app with prompts asked by the CLI, for example in the Fly.io Dockerfile guide:
? App Name (leave blank to use an auto-generated name): telechatgpt ? Select organization: Your Name Here (personal) ? Select region: lax (Los Angeles, California (US)) Created app telechatgpt in organization personal Wrote config file fly.toml ? Would you like to deploy now? (y/N) y
- Wait until the app has finished deploying by checking out the monitoring.
- Once done, you can start chatting by sending
/start
to your bot in Telegram which you configured in step 3.