Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'StickerSet' object has no attribute 'animated' #74

Open
Hagbear opened this issue May 6, 2024 · 3 comments · May be fixed by #78
Open

AttributeError: 'StickerSet' object has no attribute 'animated' #74

Hagbear opened this issue May 6, 2024 · 3 comments · May be fixed by #78

Comments

@Hagbear
Copy link

Hagbear commented May 6, 2024

Hi,

since a few days i get the following error, if i try to import a pack.

Traceback (most recent call last):
  File "/usr/local/bin/sticker-import", line 8, in <module>
    sys.exit(cmd())
  File "/usr/local/lib/python3.9/site-packages/sticker/stickerimport.py", line 165, in cmd
    asyncio.get_event_loop().run_until_complete(main(parser.parse_args()))
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.9/site-packages/sticker/stickerimport.py", line 157, in main
    await reupload_pack(client, pack, args.output_dir)
  File "/usr/local/lib/python3.9/site-packages/sticker/stickerimport.py", line 59, in reupload_pack
    if pack.set.animated:
AttributeError: 'StickerSet' object has no attribute 'animated'

I thought maybe is was a problem with my new python version, so i put in a docker container with python3.9 but i get the same error. Has telegram change some infos in their packs?

Greetings Marian

@Hagbear
Copy link
Author

Hagbear commented May 6, 2024

i comment out

    if pack.set.animated:
        print("Animated stickerpacks are currently not supported")
        return

on file sticker/stickerimport.py
and now it works again. but maybe not the best solution.

@Fangliding
Copy link

same question

@mistydemeo
Copy link

Looks like this was fixed in 125d057.

@xz-dev xz-dev linked a pull request Jul 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants