d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
538 stars 41 forks source link

Add support for viewing stickers #97

Closed d99kris closed 1 year ago

d99kris commented 1 year ago

Discussed in https://github.com/d99kris/nchat/discussions/95

Originally posted by **Riteo** April 13, 2023 Hi! I really like this program and, although I don't know its architecture, a few things popped to mind. Would it be possible to view the stickers? I can't seem to find a way. It looks like image stickers are WebP, video stickers are WebM and the animated vector ones are some weird https://github.com/TelegramMessenger/rlottie based thing. All of them can be downloaded as files on the "regular" clients, so, unless this client archives them in some particular way, I think that it might be easy enough to make them viewable as regular files. Again, mind that I have no actual idea on the feasibility of this proposal. Another thing is that stickers have an emoji associated so I guess that a solution that's hopefully easier to implement would be to at least show the associated sticker next to the "sticker" text, kinda like how the "regular" clients do in their notifications, so that one could get at a glance what the sticker's probably going to express.
d99kris commented 1 year ago

Support for viewing / downloading stickers have been added now for Telegram and WhatsApp.

In Telegram the equivalent emoji is shown in the message. Selecting a message (key up/down) and using CTRL-V opens the sticker in system default viewer, CTRL-R downloads the sticker.