Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取不到用户群组 #563

Open
studyzhanglei opened this issue Jan 8, 2025 · 1 comment
Open

获取不到用户群组 #563

studyzhanglei opened this issue Jan 8, 2025 · 1 comment

Comments

@studyzhanglei
Copy link

代码如下:

self, err := bootstrap.Bot.GetCurrentUser()

if err != nil {
    fmt.Println(err)
    global.Log.Error(err.Error())
    return
}

group, err := self.Groups()
fmt.Println(len(group), group, err, self)

打印结果

0 [] <nil> <User:学习小助手>
@Xavier9896
Copy link
Contributor

Xavier9896 commented Jan 8, 2025

需要将群聊 保存到通讯录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants