linebot

package
v1.4.22 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Set provides a wire set.

Functions

This section is empty.

Types

type Image added in v1.2.0

type Image struct {
	// contains filtered or unexported fields
}

func (*Image) ToMessage added in v1.2.0

func (i *Image) ToMessage() linebot.SendingMessage

type LINEBot

type LINEBot struct {
	// contains filtered or unexported fields
}

LINEBot implements repository.Bot.

func NewLINEBot

func NewLINEBot(conf *config.LINEBot) (*LINEBot, error)

func (*LINEBot) EventsFromRequest

func (b *LINEBot) EventsFromRequest(r *http.Request) ([]*model.Event, error)

func (*LINEBot) PushMessage added in v1.1.0

func (*LINEBot) ReplyMessage

func (b *LINEBot) ReplyMessage(ctx context.Context, e *model.Event, p repository.MessageProvider) error

type MessageProviderSet

type MessageProviderSet struct{}

MessageProviderSet implements repository.MessageProviderSet.

func NewMessageProviderSet

func NewMessageProviderSet() *MessageProviderSet

func (*MessageProviderSet) Image added in v1.2.0

func (s *MessageProviderSet) Image(originalURL, previewURL string) repository.MessageProvider

func (*MessageProviderSet) ReminderChoices added in v1.1.0

func (s *MessageProviderSet) ReminderChoices(text string, labels []string, types []model.ExecutorType) repository.MessageProvider

func (*MessageProviderSet) ReminderDeleteConfirmation added in v1.1.0

func (s *MessageProviderSet) ReminderDeleteConfirmation(text, data string) repository.MessageProvider

func (*MessageProviderSet) ReminderMenu added in v1.1.0

func (*MessageProviderSet) ShoppingDeleteConfirmation

func (s *MessageProviderSet) ShoppingDeleteConfirmation(text string) repository.MessageProvider

func (*MessageProviderSet) ShoppingMenu

func (*MessageProviderSet) Text

func (*MessageProviderSet) TimePicker added in v1.1.0

func (s *MessageProviderSet) TimePicker(text, data string) repository.MessageProvider

type ReminderChoices added in v1.1.0

type ReminderChoices struct {
	// contains filtered or unexported fields
}

func (*ReminderChoices) ToMessage added in v1.1.3

func (r *ReminderChoices) ToMessage() linebot.SendingMessage

type ReminderDeleteConfirmation added in v1.1.0

type ReminderDeleteConfirmation struct {
	// contains filtered or unexported fields
}

func (*ReminderDeleteConfirmation) ToMessage added in v1.1.3

type ReminderItem added in v1.1.0

type ReminderItem struct {
	Title        string `json:"title"`
	SubTitle     string `json:"subTitle"`
	Next         string `json:"next"`
	DeleteTarget string `json:"deleteTarget"`
}

type ReminderMenu added in v1.1.0

type ReminderMenu struct {
	// contains filtered or unexported fields
}

ShoppingMenu implements repository.MessageProvider.

func (*ReminderMenu) ToMessage added in v1.1.3

func (r *ReminderMenu) ToMessage() linebot.SendingMessage

type ShoppingDeleteConfirmation

type ShoppingDeleteConfirmation struct {
	// contains filtered or unexported fields
}

Message implements repository.MessageProvider.

func (*ShoppingDeleteConfirmation) ToMessage added in v1.1.3

AsMessage assigns the message to the given *linebot.SendingMessage.

type ShoppingMenu

type ShoppingMenu struct {
	// contains filtered or unexported fields
}

ShoppingMenu implements repository.MessageProvider.

func (*ShoppingMenu) ToMessage added in v1.1.3

func (p *ShoppingMenu) ToMessage() linebot.SendingMessage

type TextMessage

type TextMessage struct {
	// contains filtered or unexported fields
}

func (*TextMessage) ToMessage added in v1.1.3

func (p *TextMessage) ToMessage() linebot.SendingMessage

type TimePicker added in v1.1.0

type TimePicker struct {
	// contains filtered or unexported fields
}

func (*TimePicker) ToMessage added in v1.1.3

func (p *TimePicker) ToMessage() linebot.SendingMessage

Jump to

Keyboard shortcuts

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