Google Cloud

The Google Cloud Platform

Go to site

Integrate the Google Cloud API with the Telegram Bot API

Setup the Google Cloud API trigger to run a workflow which integrates with the Telegram Bot API. Pipedream's integration platform allows you to integrate Google Cloud and Telegram Bot remarkably fast. Free for developers.

Send Telegram Message

Sends a message using the sendMessage API method: https://core.telegram.org/bots/api#sendmessage

 
Try it
google_cloud_storage_upload_file

Upload json file to GCStorage

 
Try it
Google Cloud Storage - Delete Bucket

Deletes a bucket

 
Try it
Google Cloud Storage - Delete File

Deletes a file from a bucket

 
Try it
Google Cloud Storage - List Buckets

Lists buckets in storage account

 
Try it

Connect Google Cloud

// Required workaround to get the @google-cloud/storage package
// working correctly on Pipedream
require("@dylburger/umask")()

const { Storage } = require('@google-cloud/storage')

const key = JSON.parse(auths.google_cloud.key_json)
 
// Creates a client from a Google service account key.
// See https://cloud.google.com/nodejs/docs/reference/storage/1.6.x/global#ClientConfig
const storage = new Storage({
  projectId: key.project_id,
  credentials: {
    client_email: key.client_email,
    private_key: key.private_key,
  }
})

// Uncomment this section and rename for your bucket before running this code
// const bucketName = 'pipedream-test-bucket';

await storage.createBucket(bucketName)
console.log(`Bucket ${bucketName} created.`)

Connect Telegram Bot

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.telegram.org/bot${auths.telegram_bot_api.token}/getMe`,
})