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

itchat.send_video 运行没有效果 #1007

Open
tramp00 opened this issue Nov 23, 2023 · 2 comments
Open

itchat.send_video 运行没有效果 #1007

tramp00 opened this issue Nov 23, 2023 · 2 comments

Comments

@tramp00
Copy link

tramp00 commented Nov 23, 2023

    with open('test.mp4', 'rb') as f:
        r = itchat.send_video('test.mp4', user_id, file_=f)
    with open('1.txt', 'rb') as f:
        r = itchat.send_file('1.txt', toUserName=user_id, file_=f)
    with open('boy.png', 'rb') as f:
        r = itchat.send_image(f,  toUserName=user_id)

文件 和 图像都可以 音频不行

音频upload_file时候有问题
返回{'BaseResponse': {'Ret': 0, 'ErrMsg': '请求成功', 'RawMsg': '请求成功'}, 'MediaId': '', 'StartPos': 258, 'CDNThumbImgHeight': 0, 'CDNThumbImgWidth': 0, 'EncryFileName': 'test%2Emp4'}
没有 MediaId'

@kill136
Copy link

kill136 commented Mar 15, 2024

我也遇到了 这个问题

@tramp00
Copy link
Author

tramp00 commented Mar 21, 2024 via email

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