D
D
DimaCretu2021-09-14 00:02:45
Telegram
DimaCretu, 2021-09-14 00:02:45

I can not enable the code for the telegram bot, can someone explain?

I do not understand how to activate the code for the bot.
When I write in the command line - python bot.py , it gives the following "[Errno 2] No such file or directory" (The file with the code is called bot.py)
Here are these 2 lines of
C: \Users\dima1>python bot.py
python: can't open file 'C:\Users\dima1\bot.py': [Errno 2] No such file or directory

Thank you for your help, maybe an easy/stupid question for someone but unfortunately I can't figure out what the problem is.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Old_TyT, 2021-09-14
@Old_TyT

Go to the directory with the executable
For Windows:
61403885e5ede737959353.png
Write "cmd" in the path where the path is specified, and already in the command line python bot.py
For Linux:
Just write python bot.py (in the directory with the file)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question