2023-08-13 08:14:10 +00:00
|
|
|
package messenger
|
|
|
|
|
2023-08-13 13:22:15 +00:00
|
|
|
//go:generate mockgen -source=$GOFILE -destination=mocks/$GOFILE -package=mocks
|
|
|
|
|
2023-08-13 08:14:10 +00:00
|
|
|
import "context"
|
|
|
|
|
|
|
|
type Message struct {
|
|
|
|
ChatID string
|
|
|
|
UserID string
|
|
|
|
Text string
|
|
|
|
}
|
|
|
|
|
|
|
|
type IMessenger interface {
|
|
|
|
GetMessage(ctx context.Context) (*Message, error)
|
|
|
|
SendMessage(ctx context.Context, msg *Message) error
|
|
|
|
}
|