yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Yowsup-cli keep connect and send messages

Open CashCode opened this issue 12 years ago • 13 comments

Hey! I'm trying to keep number online and send messages on my numbers. I have about 20 contacts and sending messages, but it requires reconnect after sending and I get banned.

Could someone explain me how to connect through the yowsup-cli and keep one single connect during all session and open interactive dialog and send message, then open another interactive dialog (another number) and send message.

I guess they ban for often authorisation. It's not about spam, it's about sending notifications to my friends. Thanks for your answers.

CashCode avatar Jul 27 '14 12:07 CashCode

If you really want to make good solution you need to read books about programming. You really need to read books, programming is not just copy and paste work.

CODeRUS avatar Jul 27 '14 12:07 CODeRUS

yowsup-cli is just a simple demo how api works. You should NOT use it in your projects, you should use it only for learning api.

CODeRUS avatar Jul 27 '14 12:07 CODeRUS

CODeRUS, thanks for your answer. I'm not so good in python programming and I tried to use yowsup-cli to work from php. But can I find opensource messager working on yowsup-api or so? I just want to know how to make it right, without bans.

CashCode avatar Jul 27 '14 12:07 CashCode

if you using python just use WhatsAPI instead on Yowsup.

CODeRUS avatar Jul 27 '14 12:07 CODeRUS

I don't thing sending to all 20 in one session won't get you blocked

On Jul 27, 2014 4:34 PM, CODeRUS [email protected] wrote: if you using python just use WhatsAPI instead on Yowsup.


Reply to this email directly or view it on GitHub: https://github.com/tgalal/yowsup/issues/307#issuecomment-50263268

mrtass avatar Jul 27 '14 12:07 mrtass

@mrtass lolwhy? there is broadcast api for batch sending :)

CODeRUS avatar Jul 27 '14 12:07 CODeRUS

@mrtass, how should I send them? @CODeRUS I tried broadcast using whatsapi, but it wont work for me (I used bulk.php from examples)

CashCode avatar Jul 27 '14 12:07 CashCode

Would you mind to explain more about the batch sending

On Jul 27, 2014 4:39 PM, CODeRUS [email protected] wrote: @mrtass lolwhy? there is broadcast api for batch sending :)


Reply to this email directly or view it on GitHub: https://github.com/tgalal/yowsup/issues/307#issuecomment-50263380

mrtass avatar Jul 27 '14 12:07 mrtass

Like this (not tested and not working): https://github.com/CODeRUS/yowsup/blob/wauth2/src/Yowsup/connectionmanager.py#L512 or if you can read C++ code: https://github.com/CODeRUS/mitakuuluu2/blob/master/server/src/Whatsapp/connection.cpp#L1575

CODeRUS avatar Jul 27 '14 12:07 CODeRUS

@CODeRUS thanks. But you dont need to synchronize your contact list with server or to have conversation with all of them?

CashCode avatar Jul 27 '14 12:07 CashCode

of course you should sync all contacts you sending messages. its oblivious and essential thing.

CODeRUS avatar Jul 27 '14 12:07 CODeRUS

@CODeRUS so calling sendSyncContacts before sending is a must? And I guess I have to call sendTyping before sending either, to avoid ban?

CashCode avatar Jul 27 '14 12:07 CashCode

ideally you can store list of synced contacts for your account and sync only newly added contacts, but for now syncing number many times is okay, but nobody investigated is something will happen after frequent syncing contacts.

typing is not necessary.

CODeRUS avatar Jul 27 '14 13:07 CODeRUS