1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00

30 lines
800 B
Markdown
Raw Normal View History

# 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.
Then, you can add something like the following to your `.goreleaser.yaml` config:
```yaml
# .goreleaser.yaml
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 }}`
message_template: 'Awesome project {{.Tag}} is out!'
```
!!! tip
Learn more about the [name template engine](/customization/templates/).