settings

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package settings consists of an interface that must provide user settings to the bot.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LangCode

type LangCode string

LangCode is a language code like 'ru' or 'en'.

type OptionsFetcher

type OptionsFetcher interface {
	FetchUserOptions(uid int64, defaultLang string) (LangCode, UserOptions)
}

OptionsFetcher is an interface which you should implement if you want to have your specific options to be injected into the github.com/kozalosev/goSadTgBot/base.RequestEnv struct automatically.

type UserOptions

type UserOptions any

UserOptions stored in the database.

Jump to

Keyboard shortcuts

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