D
D
Daniil Lebedinsky2020-04-21 14:04:15
Python
Daniil Lebedinsky, 2020-04-21 14:04:15

How to get geodata from vk api?

I have a bot written for the community, and how can I get the city from the user? (Manual entry is not suitable)
I know that there is a "Geotag", but I don't understand how to call it.
Please help, and if possible, show an example. (simplest)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Lee, 2020-04-27
@StellandYT

1) If the user is not a liar and indicated the real city in the profile, then you can find out using the users.search method .
2) If you think that he is a liar, then you can offer him to press the Location button (I also recommend making a button for manual entry).
PS: I haven’t used api for a long time, I haven’t even tried buttons, so I don’t have an example, but I saw a lot of articles on the Internet about using the keyboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question