We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
probably this is duplicate , but i tried to send a sticker in this library but i get some problem to implement this code for injected.js
window.WWebJS.sendSticker = async (sticker, chatId, metadata, type) =>{ var chat = await window.Store.Chat.get(chatId); if(chat.erro === false || chat.__x_id){ var ListChat = await Store.Chat.get(chatId), stick = new window.Store.Sticker.modelClass(); stick.__x_clientUrl = sticker.clientUrl; stick.__x_filehash = sticker.filehash; stick.__x_id = sticker.filehash; stick.__x_uploadhash = sticker.uploadhash; stick.__x_mediaKey = sticker.mediaKey; stick.__x_initialized = false; stick.__x_mediaData.mediaStage = 'INIT'; stick.mimetype = 'image/webp'; stick.height = metadata && metadata.height ? metadata.height : 512; stick.width = metadata && metadata.width ? metadata.width : 512; await stick.initialize(); var result = await (Promise.all((ListChat)? await stick.sendToChat(chat, {stickerIsFirstParty: false, stickerSendOrigin: 6}) : "")); result = result.join(''); var m = {type: type}, To = await WWebJS.getChat(chatId); }else{ return chat; } }
that's show undefinied in console or something wrong on that?
i mean like this
hope this feature will available in this library
The text was updated successfully, but these errors were encountered:
Hey, check this PR
Sorry, something went wrong.
Implemented in #479 (ff7586a) and will be released soon!
Successfully merging a pull request may close this issue.
probably this is duplicate , but i tried to send a sticker in this library
but i get some problem to implement this code for injected.js
that's show undefinied in console
or something wrong on that?
i mean like this
![jjj](https://user-images.githubusercontent.com/66521965/94431489-e1c49600-0184-11eb-9594-addf079f7c80.PNG)
hope this feature will available in this library
The text was updated successfully, but these errors were encountered: