-
Notifications
You must be signed in to change notification settings - Fork 341
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
如何设置公众号刚被关注时给用户发的消息的内容? #31
Comments
来我教你 @itchatmp.msg_register(itchatmp.content.EVENT)
def user_management(event):
if(event['Event']=='subscribe'):
return u'你就这样给用户发信息就好了' |
@SJK132 非常感谢,可行了!还有个问题想请教一下,如果我是个人号(没有认证),那是不是 @itchatmp.msg_register([TEXT])
def reply_img(msg):
toUserName = msg['FromUserName']
print(toUserName)
itchatmp.send('hello', toUserName) 如果不行的话,只用 |
如果用户主动找你了 你应该可以用send() 再24/48hr内 (我不记得是哪个了) |
@SJK132 对我的意思就是用户主动找我了,用户给我发消息了。然而我发现这里调用 |
试试这个 r = itchatmp.send('hello',tousername)
print(r) |
@SJK132 谢谢!看到错误了, |
还有我也在研究如何return个图片回去 是可以做到的 微信里有这接口 |
@SJK132 我现在尝试了一下,如果是本地的图片,直接 |
谢! |
RT,找了半天文档,似乎没有找着,求助
The text was updated successfully, but these errors were encountered: