star-39 / moe-sticker-bot

A Telegram bot that imports LINE/kakao stickers or creates/manages new sticker set.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't Import Kakaotalk stickers

ReturnToFirst opened this issue · comments

ScreenShot 2024-06-04 183006

Bot can't download kakaotalk's sticker.

It seems like endpoint that download kakaotalk's stickers zip file(item.kakaocdn.net)'s API was changed.

I checked API, There is change on way to get Emoticon ID in Kakao emoticon store.
It change every request, need to find some way to 'real' emoticon id.

https://github.com/laggykiller/sticker-convert/blob/1be9034ebede7be2a35163e71a839e5f1f740b20/src/sticker_convert/downloaders/download_kakao.py#L45-L86

The fake emoticon id needs to be converted to real emoticon id by javascript function emoticonDeepLink() involving xor and adding. The fake emoticon id and the numbers inside that function are different everytime, but the real emoticon id calculated are the same everytime.

I have same problem. Do you know how it works?

@star-39 I have written the solution in the comment above, you may take some inspiration from my code

Others may use http://github.com/laggykiller/sticker-convert while this problem is solved