代码拉取完成,页面将自动刷新
/*
* @Author: SpenserCai
* @Date: 2023-02-20 18:15:51
* @version:
* @LastEditors: SpenserCai
* @LastEditTime: 2023-02-24 16:49:16
* @Description: file content
*/
package main
import (
"os"
"path/filepath"
"golang.org/x/sys/windows"
tele "gopkg.in/telebot.v3"
)
// 定义微信数据结构
type WeChatData struct {
Version string
NickName string
Account string
Mobile string
Key string
WeChatProcess windows.ProcessEntry32
WeChatHandle windows.Handle
WeChatWinModel windows.ModuleEntry32
}
var PROCESS_ALL_ACCESS = uint32(
windows.PROCESS_QUERY_INFORMATION |
windows.PROCESS_VM_READ |
windows.PROCESS_VM_WRITE |
windows.PROCESS_VM_OPERATION |
windows.PROCESS_CREATE_THREAD |
windows.PROCESS_DUP_HANDLE |
windows.PROCESS_TERMINATE |
windows.PROCESS_SUSPEND_RESUME |
windows.PROCESS_SET_QUOTA |
windows.PROCESS_SET_INFORMATION |
windows.PROCESS_QUERY_LIMITED_INFORMATION)
// 初始化全局的微信信息对象
var WeChatDataObject = WeChatData{}
// 获取程序内运行的目录
var CurrentPath = func() string {
dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
if err != nil {
return ""
}
return dir
}()
// TelBot对象
var TelBot *tele.Bot
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。