问题描述
我正在使用python从我的twilio帐户发送whatsapp文本和pdf。
但是问题是,whatsapp文本消息被转换为pdf文件名。如何显示文本和pdf。
我的代码是
client.messages.create(body=data.get('text'),from_=f"whatsapp:{sender_number}",to=f"whatsapp:{data.get('receiver_number')}",media_url=attachment)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)