reply

package
v0.0.0-...-ccaf0b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JoinGroupReplyFunc

type JoinGroupReplyFunc func(ctx context.Context) ([]linebot.SendingMessage, error)

type Reply

type Reply interface {
	WelcomeReply(ctx context.Context, userID string) ([]linebot.SendingMessage, error)
	MessageTextReply(
		ctx context.Context, typ linebot.EventSourceType,
		groupId, userID, msg string, session sessions.Session,
	) ([]linebot.SendingMessage, textreply.DelayedMessage, error)
	JoinGroupReply(ctx context.Context) ([]linebot.SendingMessage, error)
}

func NewReply

func NewReply(
	replyOptions ...ReplyOption,
) Reply

type ReplyOption

type ReplyOption func(r *replyImpl)

func WithJoinGroupReply

func WithJoinGroupReply(f JoinGroupReplyFunc) ReplyOption

func WithTextReply

func WithTextReply(replies ...textreply.LineKeywordReply) ReplyOption

func WithTracer

func WithTracer(tracer trace.Tracer) ReplyOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL