mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(notifications): Telegram set sender (#1723)
feat(notifications): add conditional sender payload for telegram
This commit is contained in:
parent
51265b6702
commit
e56bf1f8fc
3 changed files with 6 additions and 0 deletions
|
@ -63,6 +63,9 @@ func NewTelegramSender(log zerolog.Logger, settings domain.Notification) domain.
|
|||
}
|
||||
|
||||
func (s *telegramSender) Send(event domain.NotificationEvent, payload domain.NotificationPayload) error {
|
||||
|
||||
payload.Sender = "autobrr"
|
||||
|
||||
message := s.builder.BuildBody(payload)
|
||||
m := TelegramMessage{
|
||||
ChatID: s.Settings.Channel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue