yarn install
yarn start
- Obtain a bot token by interacting with @BotFather
- update .env variable file
- For bot deploying using webhook, it's required to configured the bot allowing updates with the following tool: https://tools.grammy.dev/webhook-utility
fly launch
fly secrets set ENV_PORT=VALUE, TELEGRAM_HTTP_KEY=KEY...
fly deploy
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"