Update content of files

This commit is contained in:
GitHub Action 2022-09-12 15:58:30 +00:00
parent 2241937073
commit 0e96de1805

View file

@ -63,10 +63,10 @@ The GamingCommunication and bot web app libraries by default will use <code>'*'<
<p><code>eventType</code> is a simple string indicating the event type, and <code>eventData</code> is a payload with an object that will be parsed by the Telegram app.</p>
<h4><a class="anchor" href="#web-app-close" id="web-app-close" name="web-app-close"><i class="anchor-icon"></i></a><code>web_app_close</code></h4>
<p>No event payload. </p>
<p>Emitted by bot web apps when the web app webview should be closed.</p>
<p>Emitted by <a href="/api/bots/webapps">bot web apps</a> when the web app webview should be closed.</p>
<h4><a class="anchor" href="#web-app-request-phone" id="web-app-request-phone" name="web-app-request-phone"><i class="anchor-icon"></i></a><code>web_app_request_phone</code></h4>
<p>No event payload. </p>
<p>Emitted by bot web apps when they request the user's phone number: Telegram clients should show a prompt to the user, asking to share the phone number.</p>
<p>Emitted by <a href="/api/bots/webapps">bot web apps</a> when they request the user's phone number: Telegram clients should show a prompt to the user, asking to share the phone number.</p>
<ul>
<li>If the user refuses, call <code>window.Telegram.WebView.receiveEvent("phone_requested", {})</code></li>
<li>If the user accepts, call <code>window.Telegram.WebView.receiveEvent("phone_requested", {"phone_number": "Phone number"})</code></li>
@ -187,12 +187,12 @@ Typically done by using <a href="/method/messages.forwardMessages">messages.forw
Typically done by using <a href="/method/messages.forwardMessages">messages.forwardMessages</a> on the game message without the <code>with_my_score</code> flag, or by sharing the game's <a href="/api/links#game-links">deep link</a>.</p>
<h4><a class="anchor" href="#game-over" id="game-over" name="game-over"><i class="anchor-icon"></i></a><code>game_over</code></h4>
<p>No event payload.</p>
<p>Can be called by games when the user loses a game</p>
<p>Can be called by games when the user loses a game.</p>
<h4><a class="anchor" href="#game-loaded" id="game-loaded" name="game-loaded"><i class="anchor-icon"></i></a><code>game_loaded</code></h4>
<p>No event payload.</p>
<p>Can be called by games once the game fully loads.</p>
<h4><a class="anchor" href="#resize-frame" id="resize-frame" name="resize-frame"><i class="anchor-icon"></i></a><code>resize_frame</code></h4>
<p>Event payload: JSON object with <code>height</code> field</p>
<p>Event payload: JSON object with <code>height</code> field.</p>
<p>Called by supported pages inside of <a href="https://instantview.telegram.org">IV</a> iframe embeds, indicates the new size of the embed frame.</p></div>
</div>