/image-gen-bot

Primary LanguageTypeScript

image-gen-bot

Setup

  yarn install
  yarn start

Deployment

Webhook deployment in fly.io

  fly launch
  fly secrets set ENV_PORT=VALUE, TELEGRAM_HTTP_KEY=KEY...
  fly deploy

Linking Webhook to Telegram's bot

After fly.io deployment, retrieve Webhook url (e.g. https://telegram-bot.fly.dev) and run the following curl to linked webhook to the Telegram bot.

    curl "https://api.telegram.org/$TELEGRAM_HTTP_KEY/setWebhook?url=$WEBHOOK_URL"