Basic Google Cloud Function that will deliver inbound telnyx SMS to Telegram chat.
- Create a telegram bot (you need to obrain the bot credentials as well).
- Obtain chat id for your bot.
- Create environment.yaml configuration (use environment.example.yaml).
- Deploy function to Google Cloud.
#!/bin/sh
gcloud beta functions deploy telnyx-telegram-webhook \
--env-vars-file environment.yaml \
--configuration=template.yaml
--project <project-id> \
--trigger-http \
--account <gcloud-account> \
--runtime nodejs10 \
--source=./src \
--memory=128 \
--entry-point=handler
For gcloud deploy usage:
gcloud beta functions deploy --help
MIT - See LICENSE for more information.