title: unable to create web_app button aiogram
body: <p>Good afternoon, an update has recently been released in telegram and added web_app buttons. leading to the &quot;site&quot; in the telegram itself, the documentation says that you need to import the script to the page and create a button in the bot</p>
  <p>html:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script src=&quot;https://telegram.org/js/telegram-web-app.js&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  <p>code for sending a message with a button:</p>
  <pre class="lang-py prettyprint-override"><code>from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
  from aiogram.types.web_app_info import WebAppInfo
  await msg.reply(&quot;test&quot;, reply_markup=InlineKeyboardMarkup().add(InlineKeyboardButton(text=&quot;test&quot;, web_app=WebAppInfo(url=&quot;https://test_link&quot;))))
  </code></pre>
  <p>Error:</p>
  <pre><code>Button_type_invalid
  </code></pre>
  <p>thanks in advance for your help)</p>
  <p><strong>Update: you cannot send a message with a web_app type button in non-personal messages to the user. attempting to do so produces an error &quot;Button_type_invalid&quot;</strong></p>