title: How to get data from inline keyboard as single result?
body: <p>I have a telegram bot that is set up and connected to my backend. When users choose the &quot;enter password&quot; option I send an inline keyboard next to the request so that the user can enter his numeric password. I do this so that the password will not be shown in the chat. The problem I have is that I make use of the callback_data to assign a value to the pressed button, but these callbacks come through one by one as the button is pressed. I would like to know is it possible to build up an accumulative string of pressed characters, and once the &quot;Submit&quot; button is pressed send through the user's response.</p>
  <p>My Inline Request Currently looks as follow:</p>
  <pre><code>{
    &quot;chat_id&quot;: 99999999,
    &quot;text&quot;: &quot;Enter Password&quot;,
    &quot;reply_markup&quot;: {
    
      &quot;inline_keyboard&quot;: [
          
        [{&quot;text&quot;: &quot;1&quot;,&quot;callback_data&quot;:&quot;1&quot;,&quot;pay&quot;:true},{&quot;text&quot;: &quot;2&quot;,&quot;callback_data&quot;:&quot;2&quot;},{&quot;text&quot;: &quot;3&quot;,&quot;callback_data&quot;:&quot;3&quot;}],
        [{&quot;text&quot;: &quot;4&quot;,&quot;callback_data&quot;:&quot;4&quot;},{&quot;text&quot;: &quot;5&quot;,&quot;callback_data&quot;:&quot;5&quot;},{&quot;text&quot;: &quot;6&quot;,&quot;callback_data&quot;:&quot;6&quot;}],
        [{&quot;text&quot;: &quot;7&quot;,&quot;callback_data&quot;:&quot;7&quot;},{&quot;text&quot;: &quot;8&quot;,&quot;callback_data&quot;:&quot;8&quot;},{&quot;text&quot;: &quot;9&quot;,&quot;callback_data&quot;:&quot;9&quot;}],
        [{&quot;text&quot;: &quot;0&quot;,&quot;callback_data&quot;:&quot;0&quot;}],
        [{&quot;text&quot;: &quot;Submit&quot;,&quot;callback_data&quot;:&quot;Submit&quot;}]
      ]
    }
  }
  </code></pre>
  <p>Further more is it possible to make the inline buttons go away after the submit has been pressed, I have gone through the telegram bot documentation, and can find any option like this.
  <a href="https://core.telegram.org/bots/api#sendmessage" rel="nofollow noreferrer">https://core.telegram.org/bots/api#sendmessage</a></p>
  <p>Kindly advise if this is possible or if I should take another approach.</p>