This is a little introduction for those new to Python programming in general.
We will write our code inside hello.py
, so you can use any text editor that you like. To run the code, use python3 hello.py
from the terminal.
Important
Don’t call your script telethon.py
! Python will try to import the client from there and it will fail with an error such as “ImportError: cannot import name ‘TelegramClient’ …”.
0 条评论