mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(notifications): Pushover and Telegram formatting (#1362)
* fix(notifications): Pushover and Telegram formatting * fix(notifications): html builder * fix(notifications): escape html * fix(notifications): escaping
This commit is contained in:
parent
c377bc9157
commit
ae4427175f
8 changed files with 140 additions and 38 deletions
|
@ -31,7 +31,7 @@ type telegramSender struct {
|
|||
log zerolog.Logger
|
||||
Settings domain.Notification
|
||||
ThreadID int
|
||||
builder NotificationBuilderPlainText
|
||||
builder MessageBuilderHTML
|
||||
|
||||
httpClient *http.Client
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ func NewTelegramSender(log zerolog.Logger, settings domain.Notification) domain.
|
|||
log: log.With().Str("sender", "telegram").Logger(),
|
||||
Settings: settings,
|
||||
ThreadID: threadID,
|
||||
builder: NotificationBuilderPlainText{},
|
||||
builder: MessageBuilderHTML{},
|
||||
httpClient: &http.Client{
|
||||
Timeout: time.Second * 30,
|
||||
Transport: sharedhttp.Transport,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue