Skip to content

Issue: Module telegram has no attribute File #214

@DWFEF816

Description

@DWFEF816

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA question about how the program works.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions