Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram geolocation

I have an idea to use a telegram bot for food ordering from a smartphone. So, you have a menu, prices, there is a payment gateway. This part seems clear to me.

I was wondering if there any way to get a geolocation information inside telegram? So smartphone owner location is sent automatically.

The alternative I see are:

  • writing address thru telegram (too much work and probably restaurant has to call back);
  • Install a small Android/iOS app just to send a location to the service. Kinda feels awkward, but a little better that first option.

Maybe you can see better ways, perhaps telegram already got some related functionality?

Thank you!

like image 854
B.I. Avatar asked Jun 23 '16 05:06

B.I.


People also ask

Does Telegram show your location?

If you want to show your Telegram friends and contacts your exact location, you can share your live location with your group or private conversations. In this way, there's no need to give complex instructions to tell people where you are. You can use the live location feature on the Telegram mobile app.


1 Answers

On some step (don't do it too early) you can send a button with the request_location field set to true.

When the user presses that button, Telegram asks the user if he wants to share his location with the bot.

The user then sends a location. Note that the user could also spoof the location.

like image 69
Johannes Kuhn Avatar answered Oct 13 '22 06:10

Johannes Kuhn