star-39 / moe-sticker-bot

A Telegram bot that imports LINE/kakao stickers or creates/manages new sticker set.
GNU General Public License v3.0
272 stars 31 forks source link

the animate stickers runs with Fatal error result #8

Closed makusujp closed 2 years ago

makusujp commented 2 years ago

I self host the bot by clone in debian11.1 previously the bot works fine. the animated sticker just goes to the static pictures.

this update I deleted the whole moe-sticker-bot folder, and recheck install of the requirement. but the bot returns this result below

Traceback (most recent call last): File "/home/debian/Downloads/moe-sticker-bot/helper.py", line 41, in retry_do func() File "/home/debian/Downloads/moe-sticker-bot/main.py", line 71, in <lambda> err = retry_do(lambda: ctx.bot.create_new_sticker_set(user_id=update.effective_user.id, File "/home/debian/.local/lib/python3.9/site-packages/telegram/bot.py", line 130, in decorator result = func(*args, **kwargs) TypeError: create_new_sticker_set() got an unexpected keyword argument 'webm_sticker'

and i tested once at your official one works. does the requirements added something new but not listed?

star-39 commented 2 years ago

Hello! This is because Telegram has recently updated Bot API to support video sticker.

The python-telegram-bot package you are using is too old, please update to 13.11.

You can try running

pip3 install -U python-telegram-bot
makusujp commented 2 years ago

thanks that upgrade did help