Versions in this module Expand all Collapse all v1 v1.0.0 Mar 8, 2025 Changes in this version + var ErrNoSession = errors.New("database session is not initialized") + var ErrTooManyRevokes = errors.New("token has been revoked too many times") + var ModelUser = &wotoGlobals.PeerInfo + func GetInputUserFromId(id int64) (*tg.InputUser, error) + func GetPeerInfoFromId(id int64) (*wg.PeerInfo, error) + func NewPeerInfo(u *wg.PeerInfo) error + func SaveChannel(id int64, hash int64) error + func SaveTgChannel(ch *tg.Channel) error + func SaveTgUser(u *tg.User) error + func SaveUser(id int64, hash int64) error + func StartDatabase(db *gorm.DB, mut *sync.Mutex) error