S
S
Savely2019-08-24 23:19:09
Python
Savely, 2019-08-24 23:19:09

How to make yowsup work?

Hello.
Tell me, pliz, how to make the echoclient example from the yowsup library work ?
Through below command everything works fine

python yowsup-cli demos -c ./phone/config.json --echo

But I want to make it work through a smaller script, I create:
-run.py
-stack.py
-init.py
-layer.py
And I get various errors, I tried a dozen different variations - there is no working result.
Please share your experience of writing bots.
I need a basic example, which I myself will add later.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2019-08-25
@dimonchik2013

the code is open

S
Saveliy, 2019-08-29
@aaland

Understood.
1) There was some kind of error, like - "handshake failed exception", the module was not found. I committed the import line and the exception itself in the library. It became easier.
2) It is important to pass valid json with parameters and the full path to it.
3) the very location of the test file is also important. I placed it in the first folder "yowsup"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question