Skip to content

Telnyx inbound SMS delivery for Telegram Google Cloud Function (serverless)

License

Notifications You must be signed in to change notification settings

themondays/telnyx-telegram-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telnyx inbound SMS delivery for Telegram

Basic Google Cloud Function that will deliver inbound telnyx SMS to Telegram chat.

Installation

  1. Create a telegram bot (you need to obrain the bot credentials as well).
  2. Obtain chat id for your bot.
  3. Create environment.yaml configuration (use environment.example.yaml).
  4. Deploy function to Google Cloud.

Deployment

#!/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

References

License

MIT - See LICENSE for more information.

Releases

No releases published

Packages

No packages published