tomer8007 / kik-bot-api-unofficial

Python API for writing unoffical Kik bots that act like humans
MIT License
126 stars 76 forks source link

sending gifs no longer works #222

Closed Doktor-Apokalypse closed 10 months ago

Doktor-Apokalypse commented 1 year ago

Since tenor updated their API to V2 sending gifs no longer works. I have changed the search address used to the V2 but I am still getting errors with it.

self.client.send_gif_image(groupjid, "ping-annoying-dont-complain-penguin")

File "C:\Users\Jason\AppData\Local\Programs\Python\Python38\lib\site-packages\kik_unofficial\client.py", line 232, in send_gif_image return self._send_xmpp_element(chatting.OutgoingGIFMessage(peer_jid, search_term, True)) File "C:\Users\Jason\AppData\Local\Programs\Python\Python38\lib\site-packages\kik_unofficial\datatypes\xmpp\chatting.py", line 428, in init self.gif_preview, self.gif_data = self.get_gif_data(search_term) File "C:\Users\Jason\AppData\Local\Programs\Python\Python38\lib\site-packages\kik_unofficial\datatypes\xmpp\chatting.py", line 479, in get_gif_data img = Image.open(BytesIO(response.content)) File "C:\Users\Jason\AppData\Local\Programs\Python\Python38\lib\site-packages\PIL\Image.py", line 3283, in open raise UnidentifiedImageError(msg) PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x000002058D20B400>

PointlessUser commented 10 months ago

We just updated it to v2. This should be resolved now

PointlessUser commented 10 months ago

@tomer8007 You can close this issue