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

不好意思,想问下如何发送本地文件夹下图片 #95

Open
zsq2010 opened this issue Feb 7, 2021 · 2 comments
Open

不好意思,想问下如何发送本地文件夹下图片 #95

zsq2010 opened this issue Feb 7, 2021 · 2 comments

Comments

@zsq2010
Copy link

zsq2010 commented Feb 7, 2021

目录结构
-windows
--1.jpg
--windows_bot.go

b, _ := ioutil.ReadFile("./1.jpg")
img:="./1.jpg"
session.SendImgFromBytes(b, img, session.Bot.UserName, wxweb.RealTargetUserName(session, msg))
似乎没拼成功,不知什么问题,多谢赐教

@songtianyi
Copy link
Owner

因为发布这个项目(并不是使用这个程序)我以前的可用账号被封了,所以测试不了。
有没有具体的报错信息呢?

@songtianyi
Copy link
Owner

img 换成 '1.jpg' 试下

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