handler

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBot

func RunBot(botClient *BotClient, mongoDBClient *mongo.Client, ctx context.Context, openAiKey string, tBotToken string)

Types

type BotClient

type BotClient struct {
	Id       string
	Openai   *openai.Client
	Telegram *tgbotapi.BotAPI
}

type BotMessage

type BotMessage struct {
	TimeStamp int64  `json:"timestamp"`
	Role      string `json:"role"`
	Content   string `json:"content"`
}

Jump to

Keyboard shortcuts

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