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

[Feature request] Sending Stickers #156

Closed
dcsan opened this issue Dec 22, 2016 · 6 comments
Closed

[Feature request] Sending Stickers #156

dcsan opened this issue Dec 22, 2016 · 6 comments

Comments

@dcsan
Copy link

dcsan commented Dec 22, 2016

I searched the repo and there doesn't seem to be any specific issues except the Image/Video on #4

It would be awesome if Wechaty could support stickers. It seems to give
WARN MediaMessage stream() exception: Error: protocol unknown: null
currently on receiving.

But Sending would be the major thing to support.
I guess this is quite a large task since static image sending is not supported either yet.

But one of the big differences between a 1:1 chat with a person and an official account 'bot is animated stickers... so would be a great feature addition

related steps:
#4 (comment)

⬆️ upvotes ⬆️

icon_006

@huan
Copy link
Member

huan commented Dec 23, 2016

Yes, I agree that sending sticker is a must have feature for Wechaty.

Can you post how to reproduce WARN MediaMessage stream() exception: Error: protocol unknown: null here? Because it's not expected.

And for receiving stickers, you can have a try with example/media-file-bot.ts, it will save all the files(including stickers) to local files.

@dcsan
Copy link
Author

dcsan commented Dec 24, 2016

The error:
I used the code from media-file-bot
When I send a sticker to myself I got the above error
Perhaps this is with official "paid" stickers (like the one above) rather than just free .gifs. The webUI currently I don't think enables ordinary "user generated" stickers to be sent?
I will check again and confirm later.

It seems to capture incoming gifs very well.

@huan
Copy link
Member

huan commented Dec 28, 2016

It seems that wechat server had denied the web image link for sticker package according to geeeeeeeeek/electronic-wechat#2 and geeeeeeeeek/electronic-wechat#393

@huan huan modified the milestones: v0.9, v0.8 Jan 11, 2017
@huan
Copy link
Member

huan commented Aug 18, 2017

@binsee Do you think this could be implemented based on your file upload & mediaId code?

See: #718

@binsee
Copy link
Member

binsee commented Aug 18, 2017

The server filters the stickers message, webwx can not get.

https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=&skey=@&pass_ticket=
paid stickers json:

"MsgType": 47,
"Content": "",      // is blank

But,a small part can be passed, such as Tusky. Can be sent, but available in small quantities.

@huan
Copy link
Member

huan commented Oct 4, 2017

It seems we have not found any good way to implement/resolve this issue.

Closed now.

Please let me know if there's any future enhancement we could do.

@huan huan closed this as completed Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants