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

Newsletter support (absorbs #820 and #822) #961

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

PurpShell
Copy link
Collaborator

No description provided.

vinikjkkj and others added 3 commits July 28, 2024 17:06
* initial commit

* add reactions support

* changes

* fix type error

* add enableLiveUpdates fn / remove reaction handler in decode

* add newsletter functions (to test)

* add events / other things

* fix handler

* add extract metadata

* add types

* add admin events / some fixes

* better typing

* typing / add some functions (to test)

* add parse for fetchMessages

* improve parseFetched / typing

* finish

* lint / fix metadata

* better newsletter socket structure

* fix / add tos query in newsletterCreate

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
@whiskeysockets-bot
Copy link
Contributor

Thanks for your contribution.

The next step is to wait for review and approval to merge it to main repository

The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it.

To test this PR you can run the following command below:

# NPM
npm install @whiskeysockets/baileys@WhiskeySockets/Baileys#feature/newsletter
# YARN v2
yarn add @whiskeysockets/baileys@WhiskeySockets/Baileys#feature/newsletter

@devlikepro
Copy link
Contributor

As I can see it doesn't support sending media yet right?
Because in newsletter we send raw data, not encrypted version and I don't see the changes for that (or I missed smthg?)

@guimox
Copy link

guimox commented Aug 9, 2024

I tried this version but sending image does not seems to work in desktop.

 const msg = await sock.sendMessage(contactNumber, {
        image: { url: message },
      });

image

However, in my smartphone everything works.

Screenshot_2024-08-09-08-46-17-640_com whatsapp

@PurpShell
Copy link
Collaborator Author

Raw media uploads to be added soon

@WhiskeySockets WhiskeySockets deleted a comment from guimox Aug 23, 2024
anonymous-lll

This comment was marked as off-topic.

@liwudlandi
Copy link

can't play audio

Screenshot_2024-09-23-12-05-47-96_6012fa4d4ddec268fc5c7112cbb265e7

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

Successfully merging this pull request may close these issues.

7 participants