Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use telegram bot inline button to get user live location?

I want to ask the user of the bot to share their live location using a message with two inline buttons (https://core.telegram.org/bots/api#inlinekeyboardbutton). One to share and the other to cancel. If the user click share, i want to receive his live location without him having to start sharing live location manually.

I have checked the apis and couldn't find anything. I only found one to send live location of the bot https://core.telegram.org/bots/api#sendlocation.

Is it possible to start receiving the user live location upon clicking the inline button?

like image 500
Number 13 Avatar asked Dec 13 '25 21:12

Number 13


1 Answers

according to this answer: How i can request the user's location in inline keyboard within telegram? and the official API docs - no, that isn't possible. Custom keyboard buttons can ask for the user's location, inline buttons can not.

like image 132
Tom Avatar answered Dec 16 '25 22:12

Tom