bottype

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullUsage

type FullUsage struct {
	Uploadtd   C.Bwidth // Upload Until Last Refresh
	Downloadtd C.Bwidth
	Download   C.Bwidth
	Upload     C.Bwidth
}

Upload and Download should include today values

func (FullUsage) Full

func (f FullUsage) Full() C.Bwidth

func (FullUsage) Today

func (f FullUsage) Today() C.Bwidth

type HelpCommandInfo

type HelpCommandInfo struct {
	InfoPageCount     int16 `json:"info_pages"`
	TutorialPageCount int16 `json:"tuto_pages"`
	CommandPageCount  int16 `json:"cmd_pages"`
	BuilderHelp       int16 `json:"builder_pages"`
}

type UsageHistory

type UsageHistory struct {
	Total        int
	Thissession  int
	Usagehistory []db.UsageHistory
	UserId       int64
}

type User

type User struct {
	Id     int64
	Tguser *tgbotapi.User
	*db.User
	Newuser bool
	// contains filtered or unexported fields
}

Standar Userfor all aplication

func Newuser

func Newuser(tguser *tgbotapi.User, dbuser *db.User) *User

func (*User) Getdbuser

func (u *User) Getdbuser() *db.User

func (*User) Info

func (u *User) Info() string

func (*User) IsBannedAny

func (u *User) IsBannedAny() bool

func (*User) Isbotstarted

func (u *User) Isbotstarted() bool

func (*User) IsnewUser

func (u *User) IsnewUser() bool

func (*User) IsremovedUser

func (u *User) IsremovedUser() bool

func (*User) Isverified

func (u *User) Isverified() bool

Jump to

Keyboard shortcuts

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