Reputation: 45
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?
Upvotes: 3
Views: 1267
Reputation: 2873
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.
Upvotes: 1