2021-10-07 15:01:31 +02:00
|
|
|
# Telegram
|
|
|
|
|
|
|
|
For it to work, you'll need to [create a new Telegram app](https://core.telegram.org/bots), and set
|
|
|
|
some environment variables on your pipeline:
|
|
|
|
|
|
|
|
- `TELEGRAM_TOKEN`
|
|
|
|
|
|
|
|
Also you need to know your channel's chat ID to talk with.
|
|
|
|
|
2021-12-23 01:52:01 +01:00
|
|
|
Then, you can add something like the following to your `.goreleaser.yaml` config:
|
2021-10-07 15:01:31 +02:00
|
|
|
|
|
|
|
```yaml
|
2021-12-23 01:52:01 +01:00
|
|
|
# .goreleaser.yaml
|
2021-10-07 15:01:31 +02:00
|
|
|
announce:
|
|
|
|
telegram:
|
|
|
|
# Whether its enabled or not.
|
|
|
|
# Defaults to false.
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
# Integer representation of your channel
|
|
|
|
chat_id: 123456
|
|
|
|
|
|
|
|
# Message template to use while publishing.
|
2021-11-06 16:49:33 -03:00
|
|
|
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}`
|
2021-10-07 15:01:31 +02:00
|
|
|
message_template: 'Awesome project {{.Tag}} is out!'
|
|
|
|
```
|
|
|
|
|
|
|
|
!!! tip
|
|
|
|
Learn more about the [name template engine](/customization/templates/).
|