This Telegram bot is a Google Cloud function. It also uses Google Cloud Datastore. It shows how to use Telegram location services, keyboards, and more.
- Create a telegram bot https://core.telegram.org/bots
- Deploy this bot to GCP using the gcloud tool (use --trigger-http type). https://cloud.google.com/functions/docs/deploying/filesystem
- Call the setWebHook method in the Bot API via the following url: https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}. More info here https://core.telegram.org/bots/api#setwebhook