E
E
ecoempath2021-06-18 01:15:01
Bots
ecoempath, 2021-06-18 01:15:01

Python: can't open file 'bot.py': [Errno 2] No such file or directory, how to solve the error?

Hello, I wanted to create a chat bot in telegram and I got an error. There is someone who understands this topic and can help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kentavr16, 2021-06-18
@Kentavr16

The path to the folder containing the file is incorrect. ru or the file name is misspelled. The compiler cannot find the file you are trying to open.

B
Bl4ckm45k, 2021-06-18
@Bl4ckm45k

To parse the error, you need more logs from TraceBack, and a piece of code that was executed.
Information here can help to figure it out:
Github aiogram
Russian-speaking community aiogram in telegram
Lessons, examples with the aiogram library on YouTube

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question