zeroone2numeral2 / sticker-thief

Telegram bot to build custom sticker packs
https://t.me/stickersthiefbot
MIT License
68 stars 42 forks source link

Unable to add animated stickers #43

Closed shuapok closed 3 years ago

shuapok commented 3 years ago

Hello, stickerthief bot is not able to accept adding animated stickers for some reason. Please help! Screenshot_20210306-185654_Telegram

zeroone2numeral2 commented 3 years ago

Hello there, sorry for the late answer

Can you tell me the pack link? The only thing I can think about is that, for some weird reasons, the bot saved the pack in the database as a static one

shuapok commented 3 years ago

Sure! the pack is https://t.me/addstickers/pokkycatreupload_by_stickersthiefbot

zeroone2numeral2 commented 3 years ago

@shuapok thanks. It looks like the pack is properly flagged as animated in the database too.

I'm afraid you might've ended up in a nested conversation. Can you use /cancel twice and post the screenshot?

zeroone2numeral2 commented 3 years ago

Wait wait that's the wrong bot

shuapok commented 3 years ago

My bad Sir! Screenshot_20210310-220039_Telegram

zeroone2numeral2 commented 3 years ago

@shuapok thanks. What if you try to add some stickers now?

shuapok commented 3 years ago

Screenshot_20210310-220652_Telegram No luck, same issue.

zeroone2numeral2 commented 3 years ago

Thanks, spotted the bug. If you have two packs with the same title, and the bot asks you to pick the pack by name, it will always expect a static sticker: https://github.com/zeroone2numeral2/sticker-thief/blob/master/bot/handlers/stickers/add.py#L140

Will fix soon. Thanks for spotting the issue

shuapok commented 3 years ago

Hahahaa you're the code pro so I'll leave that to you! While I don't understand the codings, I understand what you just described! Thanks for looking into this, and for your amazing bot still :)

zeroone2numeral2 commented 3 years ago

I updated the bot. Should be fixed now

shuapok commented 3 years ago

works like a charm! thanks buddy!