bot

package
Version: v0.0.0-...-2b5e5cc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinePushMessage

func LinePushMessage(toID string, messages ...linebot.SendingMessage)

func LineReplyMessage

func LineReplyMessage(replyToken string, messages ...linebot.SendingMessage)

func ParseTextGenTemplate

func ParseTextGenTemplate(toID string, text string) linebot.SendingMessage

func SetLineBot

func SetLineBot() *linebot.Client

Types

type LineBotPushMessage

type LineBotPushMessage struct {
	Token string `json:"token"`
	Text  string `json:"text"`
}

type LineBotRequest

type LineBotRequest struct {
	Type       string
	GroupID    string
	RoomID     string
	UserID     string
	ReplyToken string
	Request    string
}

func (*LineBotRequest) Add

func (lineBotRequest *LineBotRequest) Add() (uint, error)

Source Files

Jump to

Keyboard shortcuts

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