application

package
v0.0.0-...-e70b874 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbedFS embed.FS

Functions

func Register

func Register(g *gin.Engine)

Types

type Session

type Session struct {
	Sender      int64
	ChatSession *genai.ChatSession
}

type Sessions

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

func (*Sessions) Ask

func (sessions *Sessions) Ask(sender int64, content string) (string, error)

type TgBot

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

func (*TgBot) RecvMessage

func (bot *TgBot) RecvMessage(update *tgbotapi.Update) error

func (*TgBot) StartWebhook

func (bot *TgBot) StartWebhook() error

func (*TgBot) StopWebhook

func (bot *TgBot) StopWebhook() error

Jump to

Keyboard shortcuts

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