Yowsup: My number banned with no activity.

Created on 22 Aug 2017  Â·  9Comments  Â·  Source: tgalal/yowsup

Hello. I registered my number, just send 3 messages to 1 number - like a test, in a week send only 1 message to same number. Pass one more week I try to setup my demo to work - and number is banned.
I am using echo demo with saving messages to mysql db.
What is the best behavior for not being banned?
Thanks.

All 9 comments

So I'm using a simple technique to simulate normal user input.
First you have to set the Message you recive as beeing read but before you have to put your presence to online.
Than you have to update the status to "... is writing"
After a small delay you can send your message, disable "... is writing" and set your presence to offline again.

Hope if it's understandable. If not, reach out to me.

Thank you so much. I understand your idea. If you can share your code with me - it will be cool.
Also when you receive messages, any advice with this - i use a bit changed echo demo with saving into db. Any nuances?

And how often(period) you check new ones?

@AragurDEV I didnt found any statuses in documentation, So will be grateful for help.

This is the code I'm using also with a working timing (see time.sleep)

time.sleep(0.5)
self.toLower(messageProtocolEntity.ack()) #Set recived (double v)
time.sleep(0.5)
self.toLower(PresenceProtocolEntity(name = name)) #Set name Presence
time.sleep(0.5)
self.toLower(AvailablePresenceProtocolEntity()) #Set online
time.sleep(0.5)
self.toLower(messageProtocolEntity.ack(True)) #Set read (double v blue)
time.sleep(0.5)
self.onTextMessage(messageProtocolEntity) #Send the answer
time.sleep(3)
self.toLower(UnavailablePresenceProtocolEntity()) #Set offline

Because you are running S40 with a registered with android

Saludos,
Pablo

On Wed, Aug 30, 2017 at 10:23 AM, AragurDEV notifications@github.com
wrote:

time.sleep(0.5) self.toLower(messageProtocolEntity.ack()) #Set recived
(double v) time.sleep(0.5) self.toLower(PresenceProtocolEntity(name =
name)) #Set name Presence time.sleep(0.5) self.toLower(
AvailablePresenceProtocolEntity()) #Set online time.sleep(0.5)
self.toLower(messageProtocolEntity.ack(True)) #Set read (double v blue)
time.sleep(0.5) self.onTextMessage(messageProtocolEntity) #Send the
answer time.sleep(3) self.toLower(UnavailablePresenceProtocolEntity())

Set offline

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tgalal/yowsup/issues/2217#issuecomment-325988659, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEymzVKepw1fD2uqJhUYYRaowMWcm8AWks5sdWJjgaJpZM4O_JDN
.

@AragurDEV thanks a lot

@pablosharper you are right demos by default use S40. So i need to change DEFAULT = "s40" in env/env.py to 'android'? Cos i try to run with -E android and it is doesn't work.
Thanks!

I try to do it with android in env settings, but i got yowsup.layers.network.layer:Disconnected, reason: Connection Closed this error.

On this case more debug information is needed.
Please run the programm in Debug mode and post the log on pastebin (and link it here of course)

Was this page helpful?
0 / 5 - 0 ratings