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

Issue: Module telegram has no attribute File #214

Open
DWFEF816 opened this issue Oct 5, 2023 · 3 comments
Open

Issue: Module telegram has no attribute File #214

DWFEF816 opened this issue Oct 5, 2023 · 3 comments
Labels
question A question about how the program works.

Comments

@DWFEF816
Copy link

DWFEF816 commented Oct 5, 2023

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

@DWFEF816 DWFEF816 added the bug Something that doesn't work as expected. label Oct 5, 2023
@Steffo99
Copy link
Owner

Steffo99 commented Oct 6, 2023

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

@Steffo99 Steffo99 added question A question about how the program works. and removed bug Something that doesn't work as expected. labels Oct 6, 2023
@Steffo99 Steffo99 changed the title Bug: HEEELPP!! Issue: Module telegram has no attribute File Oct 6, 2023
@DWFEF816

This comment was marked as off-topic.

@Steffo99

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about how the program works.
Projects
None yet
Development

No branches or pull requests

2 participants