10 lines
310 B
Go
10 lines
310 B
Go
package notifier
|
|
|
|
// Notifier defines the interface for sending notifications.
|
|
type Notifier interface {
|
|
// Notify sends a message to a specific chat ID.
|
|
SendTo(chatID int64, message string) error
|
|
// Broadcast sends a message to a given list of chat IDs.
|
|
Broadcast(chatIDs []int64, message string) error
|
|
}
|