methods

package
v0.0.0-...-984ec8c Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAdmin

func AddAdmin(telegramUserID int64)

func DeleteAdmin

func DeleteAdmin(telegramUserID int64)

func GetConfig

func GetConfig(field string) string

func GetUserByTelegramUserID

func GetUserByTelegramUserID(telegramUserID int64) *models.User

func IsAdmin

func IsAdmin(telegramUserID int64) bool

func IsBlacklisted

func IsBlacklisted(telegramUserID int64) bool

func IsWhitelisted

func IsWhitelisted(telegramUserID int64) bool

func SetAdmin

func SetAdmin(telegramUserID int64, isAdmin bool)

func SetConfig

func SetConfig(field, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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