Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonpage committed Apr 18, 2021
1 parent 8e35102 commit e368d64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ A stateless 'function' endpoint that responds to HTTP events sent by Telegram Cl
- Uses Telegram WebHooks API so that the bot can be hosted in a serverless/Lambda environment, woken-up by inbound requests as opposed to polling for changes.
- There's a risk this could be an expensive service as it listens to every message send in a group for a music link. We'll monitor it.
- We opt-out of replying via the original inbound http response (via `webhookReply: false`) so that we can resolve the request straight away and send a string of follow-up messages after. This makes things simpler when sending more than one message response.
- We're using Now V2.
- The `now.json` defines production env vars, when we deploy to `staging` with `yarn deploy:staging` we override select env vars so that the `@SongwhipDevBot` token is used instead of `@SongwhipBot` and the staging endpoint `songwhip-telegram.wilsonpage.now.sh` is used.
- The `vercel.json` defines production env vars, when we deploy to `staging` with `yarn deploy:staging` we override select env vars so that the `@SongwhipDevBot` token is used instead of `@SongwhipBot` and the staging endpoint `songwhip-telegram.wilsonpage.now.sh` is used.
- Some bot configuration (eg. the command list or enabling 'inline' command) must be done from the Telegram app via the `@BotFather` bot.
- We're using `now secret` from the CLi to store the Telegram bot token, which is used in `now.json` via the magic `@songwhip-telegram-bot-token` placeholder.

Expand Down

0 comments on commit e368d64

Please sign in to comment.