def send_image(file_dir, to_user_name=None, media_id=None):
''' send image
for options
- file_dir: dir for file ready for upload
- if it's a gif, name it like 'xx.gif'
- media_id: media_id for file.
- if set, file will not be uploaded twice
- to_user_name: 'user_name' key of friend dict
it is defined in components/messages.py
'''
return itchat.send_image(file_dir, to_user_name, media_id)
评论列表
文章目录