Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to prevent your bot from disconnecting after a specific time?
Make sure to include
YowIqProtocolLayer in your stack, this layer handles the ping mesages like this:
# *snip* from yowsup.layers.protocol_iq import YowIqProtocolLayer # *snip* layers = ( YourLayer, YowParallelLayer(YowAuthenticationProtocolLayer, YowMessagesProtocolLayer, YowIqProtocolLayer, YowReceiptProtocolLayer, YowAckProtocolLayer), ) + YOWSUP_CORE_LAYERS # *snip* stack = YowStack(layers) # *snip*
Clone this wiki locally
Press h to open a hovercard with more details.