Skip to content

Commit

Permalink
Merge pull request #1315 from crazy-max/docs-migration-4.29
Browse files Browse the repository at this point in the history
docs: migration notes for telegram notification
  • Loading branch information
crazy-max authored Dec 20, 2024
2 parents e1826b2 + 150d986 commit 8678b19
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 4.29.0 (2024/12/19)

:warning: See **Migration notes** in the documentation before upgrading.

* Topics support for Telegram notifications (#1308)
* Webhook url as secret support for Discord, Slack and Teams notifications (#1302)
* Enhance error message for JSON decode response issues for Gotify, ntfy and RocketChat (#1309)
Expand Down
41 changes: 41 additions & 0 deletions docs/migration/v4.1-to-v4.29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Diun v4.28 to v4.29

## Telegram `chatdIDs` and `chatIDsFile` attributes change

The `chatIDs` attribute has changed from a list of integers to a list of
strings. If you are using Telegram notifications, you need to update your
configuration file:

!!! example "v4.1"
```yaml
notif:
telegram:
token: aabbccdd:11223344
chatIDs:
- 123456789
- 987654321
```

!!! example "v4.29"
```yaml
notif:
telegram:
token: aabbccdd:11223344
chatIDs:
- "123456789"
- "987654321"
```

The same applies for the `chatIDsFile` attribute content:

!!! example "v4.1"
```json
[123456789,987654321]
```

!!! example "v4.29"
```json
["123456789","987654321"]
```

More information on [Telegram notifications](../notif/telegram.md#configuration) page.
2 changes: 1 addition & 1 deletion docs/notif/telegram.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Multiple chat IDs can be provided in order to deliver notifications to multiple
* `DIUN_NOTIF_TELEGRAM_TEMPLATEBODY`

!!! example "chat IDs secret file"
Chat IDs secret file must be a valid JSON array like: `[123456789,987654321,"567891234:25","891256734:25;12"]`
Chat IDs secret file must be a valid JSON array like: `["123456789","987654321","567891234:25","891256734:25;12"]`

### `chatIDs` format

Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ nav:
- FAQ: faq.md
- Changelog: changelog.md
- Migration:
- Diun v4.1 to v4.29: migration/v4.1-to-v4.29.md
- Diun v4.0 to v4.17: migration/v4.0-to-v4.17.md
- Diun v3 to v4: migration/v3-to-v4.md
- Diun v2 to v3: migration/v2-to-v3.md
Expand Down

0 comments on commit 8678b19

Please sign in to comment.