update doc
This commit is contained in:
parent
00e99ed293
commit
b509a11a6d
7
bot.go
7
bot.go
@ -76,12 +76,7 @@ func (b *Bot) Login() error {
|
|||||||
return b.login(scanLogin)
|
return b.login(scanLogin)
|
||||||
}
|
}
|
||||||
|
|
||||||
// HotLogin 热登录,可实现重复登录,
|
// HotLogin 热登录,可实现在单位时间内免重复扫码登录
|
||||||
// retry设置为true可在热登录失效后进行普通登录行为
|
|
||||||
//
|
|
||||||
// Storage := NewJsonFileHotReloadStorage("Storage.json")
|
|
||||||
// err := bot.HotLogin(Storage, true)
|
|
||||||
// fmt.Println(err)
|
|
||||||
func (b *Bot) HotLogin(storage HotReloadStorage, opts ...HotLoginOptionFunc) error {
|
func (b *Bot) HotLogin(storage HotReloadStorage, opts ...HotLoginOptionFunc) error {
|
||||||
hotLogin := &HotLogin{storage: storage}
|
hotLogin := &HotLogin{storage: storage}
|
||||||
for _, opt := range opts {
|
for _, opt := range opts {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user