G
G
Gsergeevna2020-02-05 13:42:44
Python
Gsergeevna, 2020-02-05 13:42:44

How to implement the choice of cities in the Telegram bot?

So that when you enter the first letters, city options are offered (as on the site)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrew, 2020-02-05
@deepblack

So that when you enter the first letters, city options are offered (as on the site)

Just like on the site, it will not work. But only if you rewrite the client application.
The bottom line is that in order for the bot to receive input from the user, you need to send a message. Otherwise it won't work.
And it's not like on the site.

G
Gsergeevna, 2020-02-05
@Gsergeevna

And if you write a city, and the bot will offer options for consonant cities? Or the same names of villages in different regions?

D
Denis BotViber, 2020-02-05
@cellmon

I solved a similar one in Viber, but in the cart it is also possible: for example, the user entered and sent "Kur", and we answered him with the text "Apparently you meant cities" and the buttons "Kursk", "Kurgan", "Kurilsk", etc. ! Only in messengers! This is not a native app for your service - it's a bot...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question