Answer the question
In order to leave comments, you need to log in
Wrote a bot in Telegram, does it crash?
I wrote a bot on a telegram, you write a city to him, and he sends a message with the weather
, only when you write not a city, it just crashes, how to fix the problem?
Answer the question
In order to leave comments, you need to log in
Add a check for "not a city". Google "python exception handling".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question