Skip to content

yi-jiayu/terraform-provider-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cb0c306 · Jan 15, 2023

History

52 Commits
Jan 15, 2023
Jan 15, 2023
Jan 15, 2023
Jul 25, 2020
Jan 13, 2020
Jan 15, 2023
Jan 14, 2020
Feb 7, 2021
Jan 15, 2023
Jan 15, 2023
Jan 15, 2023
Jan 11, 2020
Jan 15, 2023

Repository files navigation

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
}

You can also manage bot commands using Terraform:

resource "telegram_bot_commands" "example" {
  commands = [
    {
      command = "start",
      description = "View welcome message"
    },
    {
      command = "help",
      description = "Show help"
    }
  ]
}

Installation

You can find this provider on the Terraform Registry:

https://registry.terraform.io/providers/yi-jiayu/telegram/latest

Reference

Data Sources

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

Resources