Skip to content
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

Old Messages #450

Closed
techupin opened this issue Dec 13, 2014 · 4 comments
Closed

Old Messages #450

techupin opened this issue Dec 13, 2014 · 4 comments

Comments

@techupin
Copy link

Hello,

I just downloaded Yowsup 2.0 and logged in through the command line using yowsup-cli demos -y option...

My question is...

I logged and and all my messages just flashed and paged down... I logged out and logged back in.
How do I fetch/see my old messages?

Thanks!

TU

@mgp25
Copy link
Contributor

mgp25 commented Dec 13, 2014

You can't. Messages are only stored in the server until you receive them, once you got the messages, the server doesn't stores it and you can't see them anymore.

What you can do, its a database and save your messages there.

Regards

@techupin
Copy link
Author

Ouch! I just lost my 10-day messages !!

I just did /login, and there was this stream of messages that just flashed, and filled the screen. With insufficient history-page size, was not even able to page-up to view the messages. Should be more careful next time, its like nuking the messages :-)!

Thanks for the information!

@CODeRUS
Copy link
Contributor

CODeRUS commented Dec 13, 2014

you shouldn't use demos. it's only demos. you should write own solution based on demos code.

@tgalal tgalal closed this as completed Dec 15, 2014
@kerel-fs
Copy link

To recover your messages from console output, you could use this regular expression:

\[(?P<senderid>[0-9]*)\/(?P<groupid>[0-9]*-[0-9]*)@g.us\((?P<datetime>(?:[0-9]{2}\-){2}2015 [0-9]{2}:[0-9]{2})\)\]:\[(?P<id>[A-Z0-9a-z]{13}|.*)\]\t (?P<body>.*)\nMessage (?P=id): Sent delivered receipt\n\[connected]:

https://regex101.com/r/sQ6uK6/3
https://gist.github.com/kerel-fs/d64f12c5a23577ca2b9a

(yowsup version 2.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants