Open joshiors opened 1 year ago
Have a look into https://wwebjs.dev/guide whatsapp-web.js
allows you to programmatically control whatsapp's webgui for anything you could do in the UI itself: Eg. Read the whole conversation.
It has no own export functionality but exporting it as txt should be easy enough. If you want to make it look more professional you might want to use a "webchat css html template" eg. this one which has already a similar style to Whatsapp https://github.com/iqbaltaufiq/chat-template
From there on exporting it as pdf is easy too.
Edit: If you need to export a chat only once then simply mark the area of the chat (you can scroll while marking), right click on the marked part and select to print it: Save it then as pdf or use printer drivers which allow you to print it as html or whatever. Its good enough to see who wrote what and if you let your gui time to download the preview of the images you get them in your pdf as well.
hey how do you can get the messages? For 1 month?
hey how do you can get the messages? For 1 month?
Ppl write to you
hey how do you can get the messages? For 1 month?
Ppl write to you
I meant for the already arrived messages that are accumulated over past one month
hey how do you can get the messages? For 1 month?
Ppl write to you
I meant for the already arrived messages that are accumulated over past one month
Check
If you need to export a chat only once then simply mark the area of the chat (you can scroll while marking), right click on the marked part and select to print it: Save it then as pdf or use printer drivers which allow you to print it as html or whatever. Its good enough to see who wrote what and if you let your gui time to download the preview of the images you get them in your pdf as well.
Anyone that forked the project was able to solve the problems? My error says _"executablepath has been deprecated, please pass in a Service object".