mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-05 18:38:19 +01:00
Update content of files
This commit is contained in:
parent
b0c5285751
commit
583044840e
4 changed files with 23 additions and 10 deletions
|
@ -54,7 +54,12 @@
|
|||
---functions---
|
||||
|
||||
<a href='/method/messages.requestMainWebView'>messages.requestMainWebView</a>#c9e01e7b flags:<a href='/type/%23'>#</a> compact:flags.7?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> bot:<a href='/type/InputUser'>InputUser</a> start_param:flags.1?<a href='/type/string'>string</a> theme_params:flags.0?<a href='/type/DataJSON'>DataJSON</a> platform:<a href='/type/string'>string</a> = <a href='/type/WebViewResult'>WebViewResult</a>;</code></pre>
|
||||
<p>Main Mini Apps should be opened when the user clicks a <a href="/constructor/keyboardButtonSimpleWebView">keyboardButtonSimpleWebView</a> contained in a reply keyboard identified by a <a href="/constructor/replyKeyboardMarkup">replyKeyboardMarkup</a> constructor, by invoking <a href="/method/messages.requestMainWebView">messages.requestMainWebView</a> passing the button's <code>url</code> to the <code>url</code> parameter. </p>
|
||||
<p>Main Mini Apps are configured through <a href="https://t.me/botfather">@botfather</a>. </p>
|
||||
<p>Once enabled, the <a href="/constructor/user">user</a>.<code>bot_has_main_app</code> flag will be set, and an "Open App" button should be shown on the bot's profile page. </p>
|
||||
<p>Clicking on this button should open the Main Mini App, by invoking <a href="/method/messages.requestMainWebView">messages.requestMainWebView</a>: no URL needs to be passed to the method, because the Main Mini App URL is configured through <a href="https://t.me/botfather">@botfather</a>. </p>
|
||||
<p>The bot's profile page should also show a list of photos and videos, previewing the features offered by the Main Mini App, see <a href="#main-mini-app-previews">Main Mini App previews</a> for more info on how to configure and render them. </p>
|
||||
<p>Main Mini Apps are also featured in the in-app <a href="/api/search#apps-tab">Mini App Store »</a>. </p>
|
||||
<p>The Main Mini App should also be directly opened when <a href="/api/links#main-mini-app-links">clicking on a Main Mini App deep link »</a>. </p>
|
||||
<h4><a class="anchor" href="#main-mini-app-previews" id="main-mini-app-previews" name="main-mini-app-previews"><i class="anchor-icon"></i></a>Main Mini App previews</h4>
|
||||
<pre><code><a href='/constructor/botInfo'>botInfo</a>#8f300b57 flags:<a href='/type/%23'>#</a> has_preview_medias:flags.6?<a href='/constructor/true'>true</a> user_id:flags.0?<a href='/type/long'>long</a> description:flags.1?<a href='/type/string'>string</a> description_photo:flags.4?<a href='/type/Photo'>Photo</a> description_document:flags.5?<a href='/type/Document'>Document</a> commands:flags.2?<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotCommand'>BotCommand</a>> menu_button:flags.3?<a href='/type/BotMenuButton'>BotMenuButton</a> = <a href='/type/BotInfo'>BotInfo</a>;
|
||||
|
||||
|
|
|
@ -1230,10 +1230,10 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#mini-app-links" id="mini-app-links" name="mini-app-links"><i class="anchor-icon"></i></a>Mini App links</h3>
|
||||
<p>Used to install and open a <a href="/api/bots/attach">bot attachment or side menu »</a>.<br>
|
||||
Clients should first <a href="/api/bots/attach">install the associated bot attachment or side menu entry as specified here »</a>, and if the user accepts the installation prompt, open the Mini App using the following logic. </p>
|
||||
<p>After installing the attachment/side menu entry globally, opens the associated mini app using <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a> with the <code>from_side_menu</code> flag set, regardless of the currently open Telegram chat (in fact, the Mini App should opened with that flag even if the client itself is minimized). </p>
|
||||
<h3><a class="anchor" href="#main-mini-app-links" id="main-mini-app-links" name="main-mini-app-links"><i class="anchor-icon"></i></a>Main Mini App links</h3>
|
||||
<p>Used to open <a href="/api/bots/webapps#main-mini-apps">Main Mini Apps »</a>. </p>
|
||||
<p>If the specified bot <strong>does not</strong> have a configured Main Mini App (i.e. the <a href="/constructor/user">user</a>.<code>bot_has_main_app</code> flag will <strong>not</strong> be set), fall back to the behavior of <a href="#public-username-links">username links »</a>. </p>
|
||||
<p>The main mini app should be opened using <a href="/method/messages.requestMainWebView">messages.requestMainWebView</a>. </p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/<bot_username>?startapp&mode=<mode>
|
||||
t.me/<bot_username>?startapp=<start_parameter>&mode=<mode></code></pre>
|
||||
|
@ -1254,17 +1254,17 @@ tg://resolve?domain=<bot_username>&startapp=<start_parameter>&am
|
|||
<tr>
|
||||
<td><code>bot_username</code></td>
|
||||
<td style="text-align: center;">Required</td>
|
||||
<td>Username of the bot that owns the <a href="/api/bots/attach">attachment/side menu entry</a></td>
|
||||
<td>Username of the bot that owns the <a href="/api/bots/webapps#main-mini-apps">main mini app »</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>start_parameter</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td>If provided, should be passed to <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a>.<code>start_param</code></td>
|
||||
<td>If provided, should be passed to <a href="/method/messages.requestMainWebView">messages.requestMainWebView</a>.<code>start_param</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>mode</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td>If equal to <code>compact</code>, the <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a>.<code>compact</code> flag must be set.</td>
|
||||
<td>If equal to <code>compact</code>, the <a href="/method/messages.requestMainWebView">messages.requestMainWebView</a>.<code>compact</code> flag must be set.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -108,7 +108,7 @@ This implies that if a certain client is offline, and another session purchases
|
|||
<p>For all messages satisfying the above conditions, make a single query to <a href="/method/messages.getExtendedMedia">messages.getExtendedMedia</a>, aggregating matching message IDs in <code>id</code>.<br>
|
||||
The method will return an array of <a href="/constructor/updateMessageExtendedMedia">updateMessageExtendedMedia</a> updates, only for passed messages containing <strong>already bought</strong> paid media.<br>
|
||||
No information will be returned for passed messages containing not yet bought paid media, or not containing paid media. </p>
|
||||
<p>Repeat the method call every 15 seconds if at least one of the messages satisfying the above conditions is still visible.
|
||||
<p>Repeat the method call every 15 seconds if at least one of the messages satisfying the above conditions is still visible.<br>
|
||||
Repeat the method call immediately if a new paid message satisfying the above conditions scrolls into view.</p>
|
||||
</li>
|
||||
</ul></div>
|
||||
|
|
|
@ -587,6 +587,8 @@ i.icon {
|
|||
right: 0;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
padding-left: env(safe-area-inset-left);
|
||||
padding-right: env(safe-area-inset-right);
|
||||
background-color: var(--header-bg-color);
|
||||
-webkit-backdrop-filter: blur(25px);
|
||||
backdrop-filter: blur(25px);
|
||||
|
@ -937,6 +939,7 @@ a.tm-pagination-item.active:focus {
|
|||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
background: var(--bg-color);
|
||||
transition: transform var(--def-transition);
|
||||
}
|
||||
|
@ -1135,6 +1138,8 @@ a.tm-menu-link:focus {
|
|||
}
|
||||
|
||||
.tm-footer {
|
||||
padding-left: env(safe-area-inset-left);
|
||||
padding-right: env(safe-area-inset-right);
|
||||
background-color: var(--footer-bg-color);
|
||||
}
|
||||
.tm-footer-links {
|
||||
|
@ -1305,7 +1310,7 @@ a.tm-menu-link:focus {
|
|||
|
||||
.tm-main {
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
width: auto;
|
||||
max-width: 480px;
|
||||
padding-bottom: 70px;
|
||||
flex-grow: 1;
|
||||
|
@ -3816,6 +3821,9 @@ a.tm-table-action-link:hover {
|
|||
|
||||
.tm-main {
|
||||
max-width: 720px;
|
||||
box-sizing: content-box;
|
||||
padding-left: env(safe-area-inset-left);
|
||||
padding-right: env(safe-area-inset-right);
|
||||
}
|
||||
.tm-main-premium {
|
||||
max-width: 480px;
|
||||
|
|
Loading…
Reference in a new issue