MCPcopy
hub / github.com/eatmoreapple/openwechat / UnPin

Method UnPin

user.go:177–184  ·  view source on GitHub ↗

UnPin 将联系人取消置顶

()

Source from the content-addressed store, hash-verified

175
176// UnPin 将联系人取消置顶
177func (u *User) UnPin() error {
178 opt := &CallerWebWxRelationPinOptions{
179 BaseRequest: u.self.bot.Storage.Request,
180 User: u,
181 Op: 0,
182 }
183 return u.self.bot.Caller.WebWxRelationPin(u.Self().Bot().Context(), opt)
184}
185
186// IsPin 判断当前联系人(好友、群组、公众号)是否为置顶状态
187func (u *User) IsPin() bool {

Callers 1

TestPinUserFunction · 0.80

Calls 4

SelfMethod · 0.95
WebWxRelationPinMethod · 0.45
ContextMethod · 0.45
BotMethod · 0.45

Tested by 1

TestPinUserFunction · 0.64