How to hide ReplyKeyboardMarkup after user click in Telegram Bot API
<p>I am using Node.js <a href="https://github.com/mast/telegram-bot-api" rel="noreferrer">telegram-bot-api</a>.</p>

<p>Idea:</p>

<ol>
<li>Show a custom keyboard with one button - "Share my phone number".</li>
<li>When user clicks this button, contact should be sent and button should be removed from screen.</li>
</ol>

<p>Here is a code I am using right now:</p>

<pre class="lang-js prettyprint-override"><code>bot.sendMessage({
    text: 'Please give us your phone number',
    reply_markup: JSON.stringify({
        keyboard: [
            [{
                text: 'Share my phone number',
                request_contact: true
            }]
        ],
        resize_keyboard: true,
        one_time_keyboard: true
    })
});
</code></pre>

<p>Problems:</p>

<ul>
<li>When user clicks "Share my phone number" button, it shares his contact but button is visible even after that.</li>
<li>When I am not using <code>request_contact</code> flag, <code>one_time_keyboard</code> works correctly (hides the button after its usage), but even in that case it just hides the button, so user can click an icon to bring it back to screen, which is not good at all.</li>
</ul>

<p>Please tell me if I am doing something wrong here. Thanks</p>