tomer8007 / kik-bot-api-unofficial

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

Gif sending issue. #199

Closed Jumvah closed 3 years ago

Jumvah commented 3 years ago

I've searched but can't find out how the send_gif_image function works. Where does the tenor api key and image ID go?

Also, if I use: send_custom_gif_image(group_jid, 'test.gif', '') I can send a still gif but not an animated one, but when I use: send_custom_gif_image(group_jid, '', tenor_gif_url) I get nothing sent to group.

Sitiaro commented 3 years ago

You'll have to go to kik_unofficial>datatypes>xmpp>chatting.py Scroll down and you'll find def get_gif_data, that's where you'll have to put the tenor api key. Screenshot_20210731-195111_Termux

Edit: You won't be able to see an animated gif if you're using an outdated mod or a mod that has anti-loggers like blue pirho (3.2) or blue kik (3.4), so stick to stock while testing it out. It'll just be an image for you if you're on either of those mods, or on a mod that isn't up to date so do keep that in mind.

bluemods commented 3 years ago

By the way, Kik has a hard coded API key within the APK. I use that API key rather than getting my own as I know it won't be rate limited or revoked.

On the "doesn't send to group" this bot is detected by Kik and one of the penalties is that GIFs can't be sent under 12 hour rule in public groups, only non-detected clients like apps or improved / different / private APIs can. No public open source API is able to do this though.

Jumvah commented 3 years ago

Where is the hard coded API Key? Using your kik unofficial api, I couldn't get gifs to send unless I coded my own api key in

On Sun, Aug 15, 2021 at 10:35 AM Tomer @.***> wrote:

Closed #199 https://github.com/tomer8007/kik-bot-api-unofficial/issues/199.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tomer8007/kik-bot-api-unofficial/issues/199#event-5159538641, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJQ7OOM7XOJEVGKL7DTVJDT46C7LANCNFSM5BKOC2HA .