初玩whatsapp 的命令行小伙伴

whatsapp 的命令行小伙伴

环境:仅限在中国大陆地区联通手机用户
网络:无需翻墙

1 注册

请求注册

`
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

使用注册码,get密码

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

2 使用

预先配置账号config

## Actual config starts below ##    
cc=86 #if not specified it will be autodetected
phone=86xxxxxxxxxx
password=xxxxxxxxxxxxxxx=

demo登陆


yowsup-cli demos --yowsup --config config

勤用/help

列举常用命令

/L                                                          Quick login         
/message broadcast <numbers> <content> Broadcast message. numbers should comma separated phone numbers
/message send <number> <content> Send message to a friend
/image send <number> <path> [caption] Send an image with optional caption
/groups create <subject> [jids] Create a new group with the specified subject and participants. Jids are a comma separated list but optional.
/audio send <number> <path> Send audio file

正式登陆

输入/L姐可以登陆

发消息


/message send 86xxxxxxxxxx "This is a message sent from 甲苯狗"

收消息

当然就是等待

你可能感兴趣的:(初玩whatsapp 的命令行小伙伴)