app

package
v0.0.0-...-452abeb Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp() (*App, error)

func (*App) Start

func (a *App) Start() error

type Config

type Config struct {
	Author string `split_words:"true"`
	Debug  bool   `split_words:"true"`

	DBDsn             string `split_words:"true"`
	TelegramBotToken  string `split_words:"true"`
	OpenaiAPIKey      string `split_words:"true"`
	OpenaiAssistantID string `split_words:"true"`

	// payment
	FreeMessagesCount  int32  `split_words:"true"` // how many messages user can send for free
	PaymentToken       string `split_words:"true"` // token for payment service
	PricePerMsgPack    int64  `split_words:"true"` // price for one message pack
	PriceCurrency      string `split_words:"true"` // currency for price
	PaymentDescription string `split_words:"true"` // what to print in invoice
	MsgPack            int32  `split_words:"true"` // how many messages in one pack
}

Jump to

Keyboard shortcuts

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