fix(tgc): first login

This commit is contained in:
iyear 2022-09-27 01:28:19 +08:00
parent 45293a9da5
commit 7ae63d7028

View File

@ -36,7 +36,7 @@ func New(login bool, middlewares ...telegram.Middleware) (*telegram.Client, *kv.
mode, err := kvd.Get(key.App())
if err != nil {
return nil, nil, err
mode = []byte(consts.AppBuiltin)
}
app, ok := consts.Apps[string(mode)]
if !ok {