How to capture user's phone number and location using Telegram Bot API?
<p>I'm currently playing with telegram bot api via the telegram python package. So far I don't have any problem creating custom keyboards with the following code:</p>

<blockquote>
  <p>bot.sendMessage(chat_id,
                         text="Where are you now? "
                              "/cancel to abort",
                         reply_markup=ReplyKeyboardMarkup([['Home', 'Office']], one_time_keyboard=True))</p>
</blockquote>

<p>Basically the above will give me two button, "Home" and "Office".</p>

<p>I'm now trying to capture user's phone number and location, which should be doable based on the Telegram API Bot documentation at <a href="https://core.telegram.org/bots/api#keyboardbutton" rel="nofollow">https://core.telegram.org/bots/api#keyboardbutton</a>. However I'm really having a hard time figuring out how to get it to work.</p>

<p>Any ideas?</p>