MCPcopy Create free account
hub / github.com/chanxuehong/wechat / SetAsScanCodeWaitMsgButton

Method SetAsScanCodeWaitMsgButton

mp/menu/menu.go:105–113  ·  view source on GitHub ↗

设置 btn 指向的 Button 为 扫码推事件且弹出"消息接收中"提示框 类型按钮.

(name, key string)

Source from the content-addressed store, hash-verified

103
104// 设置 btn 指向的 Button 为 扫码推事件且弹出"消息接收中"提示框 类型按钮.
105func (btn *Button) SetAsScanCodeWaitMsgButton(name, key string) {
106 btn.Type = ButtonTypeScanCodeWaitMsg
107 btn.Name = name
108 btn.Key = key
109
110 btn.URL = ""
111 btn.MediaId = ""
112 btn.SubButtons = nil
113}
114
115// 设置 btn 指向的 Button 为 弹出系统拍照发图 类型按钮.
116func (btn *Button) SetAsPicSysPhotoButton(name, key string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected