Wit

package
v0.0.0-...-78e7102 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WitClient

type WitClient struct {
	ApiKey               string
	Client               *witai.Client
	TeleWitChan          chan string
	AwaitingCallbackData *map[string]interface{}
}

func SetUp

func SetUp(config *Config.Config) WitClient

func (*WitClient) Generate_markup

func (client *WitClient) Generate_markup(filepath string) *tgbotapi.InlineKeyboardMarkup

Generate_markup generates a markup for the interactive interface that the telegram user gets as a message

func (*WitClient) Init

func (client *WitClient) Init()

Init creates a new Wit Ai client to parse messages

func (*WitClient) MessageParser

func (client *WitClient) MessageParser(message string) (string, interface{})

MessageParser Receives a message, parses it and executes a function based on the message intent

Jump to

Keyboard shortcuts

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