R
R
RedSs2017-09-25 18:50:12
PHP
RedSs, 2017-09-25 18:50:12

How to find out from the user his address, through the telegram bot?

It is necessary that when a user purchases a product in a telegram, ask for his postal address in the format postal code, city, street number, apartment number - first name last name of the recipient.
And if the address matches the format, enter it into the database. php language

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2017-09-25
Ahen @Ahen

I implemented this on yandex api using Inline, it turned out a little inconvenient, because to enter the inline mode you need to quote the bot. Also in the telegram, you can ask the user for geolocation. Everything is processed on direct and reverse geocoding.
You can see how it works with the bot https://telegram.me/foursquare , quote it and write the name of the institution / address, then we see a list of locations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question