mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-27 21:39:20 +02:00
closes https://github.com/orgs/goreleaser/discussions/5004 --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
1.1 KiB
1.1 KiB
Telegram
For it to work, you'll need to create a new Telegram app, 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:
# .goreleaser.yaml
announce:
telegram:
# Whether its enabled or not.
enabled: true
# Integer representation of your channel
#
# Templates: allowed.
chat_id: 123456
# Message template to use while publishing.
#
# Default: '{{ mdv2escape .ProjectName }} {{ mdv2escape .Tag }} is out{{ mdv2escape "!" }} Check it out at {{ mdv2escape .ReleaseURL }}'.
# Templates: allowed.
message_template: 'Awesome project {{.Tag}} is out{{ mdv2escape "!" }}'
# Parse mode.
#
# Valid options are MarkdownV2 and HTML.
#
# Default: 'MarkdownV2'.
parse_mode: HTML
You can format your message using MarkdownV2
, for reference, see the
Telegram Bot API.