github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/announce/telegram.md (about)

     1  # Telegram
     2  
     3  For it to work, you'll need to
     4  [create a new Telegram app](https://core.telegram.org/bots), and set
     5  some environment variables on your pipeline:
     6  
     7  - `TELEGRAM_TOKEN`
     8  
     9  Also you need to know your channel's chat ID to talk with.
    10  
    11  Then, you can add something like the following to your `.goreleaser.yaml`
    12  config:
    13  
    14  ```yaml
    15  # .goreleaser.yaml
    16  announce:
    17    telegram:
    18      # Whether its enabled or not.
    19      enabled: true
    20  
    21      # Integer representation of your channel
    22      #
    23      # Templates: allowed (since v1.15)
    24      chat_id: 123456
    25  
    26      # Message template to use while publishing.
    27      #
    28      # Default: '{{ .ProjectName }} {{ mdv2escape .Tag }} is out! Check it out at {{ mdv2escape .ReleaseURL }}'
    29      # Templates: allowed
    30      message_template: 'Awesome project {{.Tag}} is out!'
    31  
    32      # Parse mode.
    33      #
    34      # Valid options are MarkdownV2 and HTML.
    35      #
    36      # Default: MarkdownV2
    37      # Since: v1.19
    38      parse_mode: HTML
    39  ```
    40  
    41  You can format your message using `MarkdownV2`, for reference, see the
    42  [Telegram Bot API](https://core.telegram.org/bots/api#markdownv2-style).
    43  
    44  !!! tip
    45      Learn more about the [name template engine](/customization/templates/).
    46      In the specific case of `MarkdownV2`, you'll probably need the `mdv2escape`
    47      function.