Yowsup-cli keep connect and send messages
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.
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.
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, 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.
if you using python just use WhatsAPI instead on Yowsup.
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 lolwhy? there is broadcast api for batch sending :)
@mrtass, how should I send them? @CODeRUS I tried broadcast using whatsapi, but it wont work for me (I used bulk.php from examples)
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
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 thanks. But you dont need to synchronize your contact list with server or to have conversation with all of them?
of course you should sync all contacts you sending messages. its oblivious and essential thing.
@CODeRUS so calling sendSyncContacts before sending is a must? And I guess I have to call sendTyping before sending either, to avoid ban?
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.