环境:仅限在中国大陆地区联通手机用户
网络:无需
update:
whatapp会封第三方的接口,这方面的问题没有法子,希望网友自行解决。
本文提供思路,而且是2016年的尝试,仅供参考
`
yowsup-cli registration –requestcode sms –phone 86xxx######## –cc 86 –mcc 460 –mnc 01
`
INFO:yowsup.common.http.warequest:{"status":"sent","length":6,"method":"sms","retry_after":65,"sms_wait":65,"voice_wait":65}
status: sent
retry_after: 65
length: 6
method: sms
yowsup-cli registration --register ***-*** --phone 86xxx######## --cc 86
status: ok
kind: free
pw: &&&
price: ¥6.00
price_expiration: 1471558176
currency: CNY
cost: 6.00
expiration: 4444444444.0
login: 86xxx########
type: existing
## Actual config starts below ##
cc=86 #if not specified it will be autodetected
phone=86xxxxxxxxxx
password=xxxxxxxxxxxxxxx=
yowsup-cli demos --yowsup --config config
列举常用命令
/L Quick login
/message broadcast Broadcast message. numbers should comma separated phone numbers
/message send Send message to a friend
/image send [caption] Send an image with optional caption
/groups create [jids] Create a new group with the specified subject and participants. Jids are a comma separated list but optional.
/audio send Send audio file
输入/L
姐可以登陆
/message send 86xxxxxxxxxx "This is a message sent from 甲苯狗"
当然就是等待
文本双向通信OK
多媒体有option支持,但我的环境尝试不稳定
File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_audio.py", line 96, in fromFilePath
entity = DownloadableMediaMessageProtocolEntity.fromFilePath(fpath, url, DownloadableMediaMessageProtocolEntity.MEDIA_TYPE_AUDIO, ip, to, mimeType, preview)
AttributeError: type object 'DownloadableMediaMessageProtocolEntity' has no attribute 'fromFilePath'
ERROR:yowsup.demos.cli.layer:Upload file /home/noya/Desktop/ambeHome/english_sample/espeak/wav8k/numbers/six.wav to https://mmi678.whatsapp.net/u/OC3hgm1TvTJnC6q9nfk8RreZuOUABTfM-jyi9A/Ak1pLOyURps9-V9sL7D6xZRkkpB3za1UXDml37fcDK-- for 86#########@s.whatsapp.net failed!
MESSAGE_ID = message.getId()
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 88, in handleEncMessage
self.handleWhisperMessage(node)
File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 144, in handleWhisperMessage
self.parseAndHandleMessageProto(encMessageProtocolEntity, plaintext[:-padding])
File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/axolotl/layer_receive.py", line 204, in parseAndHandleMessageProto
raise ValueError("Unhandled")
ValueError: Unhandled
python yowsup-cli demos -c /root/.yowsup/config -s 441234567890 "Hola"
python yowsup-cli demos -c /root/.yowsup/config -s 441234567890 "Hola" -n "Happy birthday"
more for this tip
official guide : yowsup-cli
guide :WhatsApp on Raspberry Pi
whatsapp 年费政策介绍
whatsapp 免费介绍
intel 论坛态度 支持whatsapp
多媒体在yowsup上面的支持情况
offical : Upload and send Media
2014年支持 多媒体的方案