S
S
slava_volkov20212022-03-30 10:23:01
Bots
slava_volkov2021, 2022-03-30 10:23:01

Hello, I ran into a problem, I want to write a weather forecast for a telebot on my code does not work?

how to make the program check on the telebot whether the user wrote his city correctly, if he enters his city incorrectly, the user receives a notification
how to do this

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2022-03-30
@GavriKos

I want to write a weather forecast

how to do it

program.
That's honest. If you want to write, write. If you want to write for you - pay. Where are your attempts to write something, algorithms, at least fabrications how to solve this problem?

D
Danil Gorev, 2022-03-30
@ketovv

Start with a problematic, describe the specific problem you want to solve.
If the question is how to validate the city that the user wrote, then look towards the FIAS, try the API of the Dadata service . As an option - display a list of buttons with cities that are similar to what the user wrote.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question