Skip to content
Terraform provider for Telegram
Go HCL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
.idea
telegram
website/docs
.gitignore
.goreleaser.yml
LICENSE
README.md
go.mod
go.sum
main.go
main.tf

README.md

Terraform Provider for Telegram

Manage Telegram resources with Terraform

Example Usage

If we have a bot implemented as a Google Cloud Function, we can set the bot webhook in the same Terraform project:

resource "google_cloudfunctions_function" "my_bot" {
  name         = "my-bot"
  trigger_http = true

  # other arguments
}

resource "telegram_bot_webhook" "my_bot" {
  url = google_cloudfunctions_function.my_bot.https_trigger_url
}

Installation

Download the latest release for your OS and extract it to the user plugins directory, which is located at %APPDATA%\terraform.d\plugins on Windows and ~/.terraform.d/plugins on Linux and macOS.

See also the Terraform documentation on third-party providers.

Reference

Telegram provider

Data Sources

  • telegram_bot - Get information about the currently-authenticated Telegram bot

Resources

You can’t perform that action at this time.