Skip to content

Instantly share code, notes, and snippets.

@jskherman
Created March 7, 2023 12:59
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jskherman/2ec833964edf2aed349f8b060a887214 to your computer and use it in GitHub Desktop.
Save jskherman/2ec833964edf2aed349f8b060a887214 to your computer and use it in GitHub Desktop.
Guide to deploying n3d1117's ChatGPT Telegram bot to Fly.io

Prerequisites

Guide

  1. Optional: Fork the n3d1117/chatgpt-telegram-bot repository.
  2. Clone the repository using Git to a local folder:
    $ git clone https://github.com/n3d1117/chatgpt-telegram-bot.git
    $ cd chatgpt-telegram-bot
  3. Configure the Telegram bot's settings as pointed out in the repository.
  4. Once you're satisfied with the settings, launch a Fly.io app with the command:
    $ flyctl launch
  5. 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
    
  6. Wait until the app has finished deploying by checking out the monitoring.
  7. Once done, you can start chatting by sending /start to your bot in Telegram which you configured in step 3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment