title: Telegram Inline keyboards PHP
body: <p>I would like to know how to change the text when clicked button attached to it (Inline keyboards). It's in a telegram channel.</p>
  
  <p>Something like <a href="https://miro.medium.com/max/656/1*B2zgpY5eVXfpoiWYYsA3AQ.gif" rel="nofollow noreferrer">this</a> but with my code below (no need for more options).</p>
  
  <p>The code I have now:</p>
  
  <pre><code>$data = [
              'text' =&gt; 'choose options yes or no', 
              'chat_id' =&gt; '-100234234234'
            ];
  
  $keyboard = array(
      "inline_keyboard" =&gt; array(
          array(
              array(
                  "text" =&gt; "Yes",
                  "callback_data" =&gt; "myCallbackData"
              ),
              array(
                  "text" =&gt; "No",
                  "callback_data" =&gt; "myCallbackData"
              )
          )
      )
  
  file_get_contents("https://api.telegram.org/bot$token/sendMessage?" . http_build_query($data) . "&amp;parse_mode=html&amp;reply_markup=$keyboard");
  </code></pre>