new settlement flow

This commit is contained in:
Stephan D
2026-01-20 22:29:30 +01:00
parent ae6c617136
commit e0d7320fad
42 changed files with 428 additions and 73 deletions

View File

@@ -0,0 +1,9 @@
package handler
import (
"context"
"github.com/tech/sendico/pkg/model"
)
type TelegramReactionHandler = func(context.Context, *model.TelegramReactionRequest) error

View File

@@ -0,0 +1,18 @@
package notifications
import (
messaging "github.com/tech/sendico/pkg/messaging/envelope"
tinternal "github.com/tech/sendico/pkg/messaging/internal/notifications/telegram"
np "github.com/tech/sendico/pkg/messaging/notifications/processor"
ch "github.com/tech/sendico/pkg/messaging/notifications/telegram/handler"
"github.com/tech/sendico/pkg/mlogger"
"github.com/tech/sendico/pkg/model"
)
func TelegramReaction(sender string, request *model.TelegramReactionRequest) messaging.Envelope {
return tinternal.NewTelegramReactionEnvelope(sender, request)
}
func NewTelegramReactionProcessor(logger mlogger.Logger, handler ch.TelegramReactionHandler) np.EnvelopeProcessor {
return tinternal.NewTelegramReactionProcessor(logger, handler)
}