Wunderfitz / harbour-fernschreiber

Fernschreiber is a Telegram client for Sailfish OS
GNU General Public License v3.0
42 stars 33 forks source link

Implement functionality of telegrams @gif-Bot #91

Closed fridlmue closed 3 years ago

fridlmue commented 3 years ago

In the official Android- and Desktop-App there is the @gif functionality. Typing that, a subset of GIF-Images is opened. With typing text after @gif, the available GIF's match that keyword. I would love to see that function in Fernschreiber.

Wunderfitz commented 3 years ago

Should be feasible - Telegram FOSS seems to use Tenor: https://tenor.com/gifapi/documentation#quickstart

jgibbon commented 3 years ago

Actually it's the bot (with special username gif, also there's at least vid, pic, bing, wiki, imdb, bold, youtube, music, foursquare, sticker – taken from the link below) that handles the tenor integration. So, we could either "fake" this bot with a custom tenor integration and own API Keys or implement support for inline bot queries. https://core.telegram.org/bots/inline

Assuming we go the inline route, there'd actually be a whole lot to do. I don't think I grasped the process completely by quickly reading over the docs, but here's my initial take on it:

cheers

Wunderfitz commented 3 years ago

Thanks for researching the details, @jgibbon. That's actually quite a lot, but it may be worth the effort... Let's see, other things come a little earlier.