joaoricardo000 / whatsapp-bot-seed

A small python framework to create a whatsapp bot, with regex-callback message routing.
727 stars 245 forks source link

"Last seen at" never Updated #47

Open wbeirigo opened 8 years ago

wbeirigo commented 8 years ago

Hi, Congratulations for the great app. Cn they help-me to adapt this issue to whatsapp-bot-seed? https://github.com/tgalal/yowsup/issues/566

x23piracy commented 8 years ago

Hi, i am also interested in a solution since my last seen also not update, within the link you referenced i found this: https://github.com/tgalal/yowsup/issues/955

Problem solved!
replace line
from yowsup.layers.presence import YowPresenceProtocolLayer

by
from yowsup.layers.protocol_presence import YowPresenceProtocolLayer

Well the question is if this is the solution, where we have to place this? server.py? I don't know. @joaoricardo000 can you help here please?

Edit:

server.py?

from yowsup.layers.presence import YowPresenceProtocolLayer
add to layers stack: YowPresenceProtocolLayer

layers.py/router.py?

from yowsup.layers.protocol_presence.protocolentities import AvailablePresenceProtocolEntity

def sendAvailable(self):
    self.toLower(AvailablePresenceProtocolEntity())

Regards

StrangeNoob commented 5 years ago

where to add these lines ?? At the end of sever.py ?