-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket interface answers/errors #272
Comments
I believe when we send msg (command 'msg') also return nothing. Can we have some status whether msg is send or not. |
aneip, are you making remote client or local wrapper? |
Yep, I'll add some kind of answer. |
Can we have replies when the CLI failed (eg. parsing the string)? |
Also, some commands return just a new line ("\n") and some the "ANSWER [Bytes]" string. Parsing the answer would be much easier this way. 👍 |
There should be better (as in more) error messages. |
I did a fork/branch thingy gaining in that direction: |
@Lord-Evil Can you please rename this thread to something more meaningful, like "Socket interface answers/errors"? |
+1 👍 |
@luckydonald done |
Added some error codes |
E.g. user in a contact list with no history. We do sock.send("history username") but beeing blocked on reed because telegram-cli says nothing :-) Pleas add "ANSWER 0" as reply to whatever socket command if there's no data to reply.
The text was updated successfully, but these errors were encountered: