Answer the question
In order to leave comments, you need to log in
Bug in Python bot?
I found an article on Habré:
https://habr.com/ru/post/584134/
Telegram bot that shows the weather.
I tried to write, I put all the code in main.py and got an error -
Traceback (most recent call last):
File "C:/Users/Huawei/PycharmProjects/botweather/main.py", line 8, in <module>
token = environ['5086285465:AAETFuhSHGa5y5Xup0gBdFPX6P05bn_F8zA']
File "C:\Users\Huawei\AppData\Local\Programs\Python\Python38-32\lib\os.py", line 675, in __getitem__
raise KeyError(key) from None
KeyError: '5086285465:AAETFuhSHGa5y5Xup0gBdFPX6P05bn_F8zA'
Answer the question
In order to leave comments, you need to log in
token = environ['5086285465:AAETFuhSHGa5y5Xup0gBdFPX6P05bn_F8zA']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question