I
I
impasd2021-08-14 00:26:48
Python
impasd, 2021-08-14 00:26:48

When you start the telegram bot on Python, an error occurs?

def user_link(user: types.User, include_id: bool-False) -> str:
AttributeError:
help solve problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Rokitsky, 2021-08-14
@impasd

And why didn’t I post the entire text of the error, I don’t understand why the exception is thrown. It seems like there is no attribute, maybe types do not have User? After AttributeError must be written specifically.
And what is bool-False? Maybe there is still equal (=) should be together with a hyphen.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question