line

package
v0.0.0-...-6f746f0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeBot

func InitializeBot(container *ioc.Container) (domain.LineBotClient, error)

InitializeBot initiate line-bot-sdk-go client

Types

type Bot

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

Bot is our bot implementation that contains actual line-bot-sdk-go

func (*Bot) ParseRequest

func (bot *Bot) ParseRequest(r *http.Request) ([]*linebot.Event, error)

ParseRequest will call line-bot-sdk-go client's ParseRequest

func (*Bot) ReplyMessage

func (bot *Bot) ReplyMessage(replyToken string, messages ...linebot.SendingMessage) domain.LineBotPushMessageCall

ReplyMessage will call line-bot-sdk-go client's ReplyMessage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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