CodeSnailss
CodeSnailss
要在编辑页面设置具体的请求方式 
> > > > > > > accept_friend > > > > > > > > > > > > > > > > > > 搞定了, > > >...
不可以,没有这个接口,网页端也无法发送语音
> 那能接受语音信息吗? 可以呀,用`@itchat.msg_register(RECORDING)` ```python @itchat.msg_register(RECORDING) def download_audio(msg): # 检查并创建文件夹(如果不存在) if not os.path.exists(chat_audio_directory): os.makedirs(chat_audio_directory) print(f"文件夹 {chat_audio_directory} 不存在,已创建。") file_path = os.path.join(chat_audio_directory, msg.fileName) try: # 保存语音消息到本地 msg.download(f"{file_path}") print(f"收到语音消息,已保存为 {file_path}") except Exception as e:...