Steffo99 / greed

Customizable, multilanguage Telegram shop bot with Payments support
GNU Affero General Public License v3.0
523 stars 258 forks source link

Issue: Module `telegram` has no attribute `File` #214

Open DWFEF816 opened 10 months ago

DWFEF816 commented 10 months ago

Describe the bug

When i run core.py: "AttributeError module 'telegram' has no attribute 'File' File "C:\Users\Саша\Desktop\greed-master\database.py", line 138, in Product def set_image(self, file: telegram.File): ^^^^^^^^^^^^^ File "C:\Users\Саша\Desktop\greed-master\database.py", line 90, in class Product(TableDeclarativeBase): File "C:\Users\Саша\Desktop\greed-master\core.py", line 9, in import database AttributeError: module 'telegram' has no attribute 'File'"

Steps to reproduce the behavior

No response

Additional information

No response

Steffo99 commented 10 months ago

Your Python module telegram is not provided by python-telegram-bot. Have you installed the wrong dependencies?

DWFEF816 commented 10 months ago

Your Python module telegram is not provided by python-telegram-bot. Have you installed the wrong dependencies?

Bro plz contact me in Telegram: @drainwxxd

Steffo99 commented 10 months ago

@DWFEF816 No.