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

fix: "any" type definition for sendFileMessage #2391

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

gekkedev
Copy link
Contributor

@gekkedev gekkedev commented Oct 1, 2024

based on the interface of assertFindChat:

export async function assertFindChat(id: string | Wid): Promise<ChatModel> {

subsequently I'll create & link a PR in WPPConnect for methods that wrap around sendFileMessage (there the ID param is documented as string-only)

Snippet I used in whatsapp web to test - but it uses a method called find, not sure if it's the same:

await WPP.chat.find(WPP.chat.getActiveChat().contact.id)

based on the interface of assertFindChat
@icleitoncosta icleitoncosta merged commit e9c4a64 into wppconnect-team:main Oct 18, 2024
23 checks passed
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.

2 participants