mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-14 04:51:42 +01:00
Update content of files
This commit is contained in:
parent
577666d40c
commit
124885f364
3 changed files with 100 additions and 36 deletions
|
@ -300,7 +300,7 @@
|
|||
<td>An object for controlling the main button, which is displayed at the bottom of the Mini App in the Telegram interface.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SettingsButton</td>
|
||||
<td>SettingsButton <sup><mark>NEW</mark></sup></td>
|
||||
<td><a href="#settingsbutton">SettingsButton</a></td>
|
||||
<td>An object for controlling the Settings item in the context menu of the Mini App in the Telegram interface.</td>
|
||||
</tr>
|
||||
|
@ -310,7 +310,7 @@
|
|||
<td>An object for controlling haptic feedback.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CloudStorage <sup><mark>NEW</mark></sup></td>
|
||||
<td>CloudStorage</td>
|
||||
<td><a href="#cloudstorage">CloudStorage</a></td>
|
||||
<td>An object for controlling cloud storage.</td>
|
||||
</tr>
|
||||
|
@ -405,12 +405,12 @@
|
|||
<td><mark>Bot API 6.4+</mark> A method that requests text from the clipboard. The Mini App will receive the <a href="#events-available-for-mini-apps">event</a> <em>clipboardTextReceived</em>. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the clipboard will be passed as the first argument.<br><br><em>Note: this method can be called only for Mini Apps launched from the attachment menu and only in response to a user interaction with the Mini App interface (e.g. a click inside the Mini App or on the main button).</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>requestWriteAccess([callback]) <sup><mark>NEW</mark></sup></td>
|
||||
<td>requestWriteAccess([callback])</td>
|
||||
<td>Function</td>
|
||||
<td><mark>Bot API 6.9+</mark> A method that shows a native popup requesting permission for the bot to send messages to the user. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user granted this access.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>requestContact([callback]) <sup><mark>NEW</mark></sup></td>
|
||||
<td>requestContact([callback])</td>
|
||||
<td>Function</td>
|
||||
<td><mark>Bot API 6.9+</mark> A method that shows a native popup prompting the user for their phone number. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user shared its phone number.</td>
|
||||
</tr>
|
||||
|
@ -443,32 +443,67 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>header_bg_color</td>
|
||||
<td>bg_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Background color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-bg-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Main text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>hint_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Hint text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-hint-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>link_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Link color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-link-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>button_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Button color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-button-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>button_text_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Button text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-button-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>secondary_bg_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 6.1+</mark> Secondary background color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-secondary-bg-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>header_bg_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Header background color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-header-bg-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>accent_text_color</td>
|
||||
<td>accent_text_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Accent text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-accent-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>section_bg_color</td>
|
||||
<td>section_bg_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Background color for the section in the <code>#RRGGBB</code> format. It is recommended to use this in conjunction with <em>secondary_bg_color</em>.<br>Also available as the CSS variable <code>var(--tg-theme-section-bg-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>section_header_text_color</td>
|
||||
<td>section_header_text_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Header text color for the section in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-section-header-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>subtitle_text_color</td>
|
||||
<td>subtitle_text_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Subtitle text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-subtitle-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>destructive_text_color</td>
|
||||
<td>destructive_text_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Text color for destructive actions in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-destructive-text-color)</code>.</td>
|
||||
</tr>
|
||||
|
@ -754,7 +789,7 @@
|
|||
</table>
|
||||
<p>All these methods return the HapticFeedback object so they can be chained.</p>
|
||||
<h4><a class="anchor" name="cloudstorage" href="#cloudstorage"><i class="anchor-icon"></i></a>CloudStorage</h4>
|
||||
<p><sup><mark>NEW</mark></sup> This object controls the cloud storage. Each bot can store up to 1024 items per user in the cloud storage.</p>
|
||||
<p>This object controls the cloud storage. Each bot can store up to 1024 items per user in the cloud storage.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -907,12 +942,12 @@
|
|||
<td><em>Optional</em>. <em>True</em>, if this user is a Telegram Premium user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>added_to_attachment_menu <sup><mark>NEW</mark></sup></td>
|
||||
<td>added_to_attachment_menu</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if this user added the bot to the attachment menu.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>allows_write_to_pm <sup><mark>NEW</mark></sup></td>
|
||||
<td>allows_write_to_pm</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if this user allowed the bot to message them.</td>
|
||||
</tr>
|
||||
|
@ -1020,11 +1055,11 @@ if (hex(HMAC_SHA256(data_check_string, secret_key)) == hash) {
|
|||
<td><mark>Bot API 6.4+</mark> Occurrs when the <code>readTextFromClipboard</code> method is called.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the clipboard. If the clipboard contains non-text data, the field <em>data</em> will be an empty string. If the Mini App has no access to the clipboard, the field <em>data</em> will be <em>null</em>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>writeAccessRequested</code> <sup><mark>NEW</mark></sup></td>
|
||||
<td><code>writeAccessRequested</code></td>
|
||||
<td><mark>Bot API 6.9+</mark> Occurs when the write permission was requested.<br><em>eventHandler</em> receives an object with the single field <em>status</em> containing one of the statuses:<br>- <strong>allowed</strong> – user granted write permission to the bot,<br>- <strong>cancelled</strong> – user declined this request.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>contactRequested</code> <sup><mark>NEW</mark></sup></td>
|
||||
<td><code>contactRequested</code></td>
|
||||
<td><mark>Bot API 6.9+</mark> Occurrs when the user's phone number was requested.<br><em>eventHandler</em> receives an object with the single field <em>status</em> containing one of the statuses:<br>- <strong>sent</strong> – user shared their phone number with the bot,<br>- <strong>cancelled</strong> – user declined this request.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -300,7 +300,7 @@
|
|||
<td>An object for controlling the main button, which is displayed at the bottom of the Mini App in the Telegram interface.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SettingsButton</td>
|
||||
<td>SettingsButton <sup><mark>NEW</mark></sup></td>
|
||||
<td><a href="#settingsbutton">SettingsButton</a></td>
|
||||
<td>An object for controlling the Settings item in the context menu of the Mini App in the Telegram interface.</td>
|
||||
</tr>
|
||||
|
@ -310,7 +310,7 @@
|
|||
<td>An object for controlling haptic feedback.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CloudStorage <sup><mark>NEW</mark></sup></td>
|
||||
<td>CloudStorage</td>
|
||||
<td><a href="#cloudstorage">CloudStorage</a></td>
|
||||
<td>An object for controlling cloud storage.</td>
|
||||
</tr>
|
||||
|
@ -405,12 +405,12 @@
|
|||
<td><mark>Bot API 6.4+</mark> A method that requests text from the clipboard. The Mini App will receive the <a href="#events-available-for-mini-apps">event</a> <em>clipboardTextReceived</em>. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the clipboard will be passed as the first argument.<br><br><em>Note: this method can be called only for Mini Apps launched from the attachment menu and only in response to a user interaction with the Mini App interface (e.g. a click inside the Mini App or on the main button).</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>requestWriteAccess([callback]) <sup><mark>NEW</mark></sup></td>
|
||||
<td>requestWriteAccess([callback])</td>
|
||||
<td>Function</td>
|
||||
<td><mark>Bot API 6.9+</mark> A method that shows a native popup requesting permission for the bot to send messages to the user. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user granted this access.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>requestContact([callback]) <sup><mark>NEW</mark></sup></td>
|
||||
<td>requestContact([callback])</td>
|
||||
<td>Function</td>
|
||||
<td><mark>Bot API 6.9+</mark> A method that shows a native popup prompting the user for their phone number. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user shared its phone number.</td>
|
||||
</tr>
|
||||
|
@ -443,32 +443,67 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>header_bg_color</td>
|
||||
<td>bg_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Background color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-bg-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Main text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>hint_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Hint text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-hint-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>link_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Link color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-link-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>button_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Button color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-button-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>button_text_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. Button text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-button-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>secondary_bg_color</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 6.1+</mark> Secondary background color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-secondary-bg-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>header_bg_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Header background color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-header-bg-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>accent_text_color</td>
|
||||
<td>accent_text_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Accent text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-accent-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>section_bg_color</td>
|
||||
<td>section_bg_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Background color for the section in the <code>#RRGGBB</code> format. It is recommended to use this in conjunction with <em>secondary_bg_color</em>.<br>Also available as the CSS variable <code>var(--tg-theme-section-bg-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>section_header_text_color</td>
|
||||
<td>section_header_text_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Header text color for the section in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-section-header-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>subtitle_text_color</td>
|
||||
<td>subtitle_text_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Subtitle text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-subtitle-text-color)</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>destructive_text_color</td>
|
||||
<td>destructive_text_color <sup><mark>NEW</mark></sup></td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Text color for destructive actions in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-destructive-text-color)</code>.</td>
|
||||
</tr>
|
||||
|
@ -754,7 +789,7 @@
|
|||
</table>
|
||||
<p>All these methods return the HapticFeedback object so they can be chained.</p>
|
||||
<h4><a class="anchor" name="cloudstorage" href="#cloudstorage"><i class="anchor-icon"></i></a>CloudStorage</h4>
|
||||
<p><sup><mark>NEW</mark></sup> This object controls the cloud storage. Each bot can store up to 1024 items per user in the cloud storage.</p>
|
||||
<p>This object controls the cloud storage. Each bot can store up to 1024 items per user in the cloud storage.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -907,12 +942,12 @@
|
|||
<td><em>Optional</em>. <em>True</em>, if this user is a Telegram Premium user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>added_to_attachment_menu <sup><mark>NEW</mark></sup></td>
|
||||
<td>added_to_attachment_menu</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if this user added the bot to the attachment menu.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>allows_write_to_pm <sup><mark>NEW</mark></sup></td>
|
||||
<td>allows_write_to_pm</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if this user allowed the bot to message them.</td>
|
||||
</tr>
|
||||
|
@ -1020,11 +1055,11 @@ if (hex(HMAC_SHA256(data_check_string, secret_key)) == hash) {
|
|||
<td><mark>Bot API 6.4+</mark> Occurrs when the <code>readTextFromClipboard</code> method is called.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the clipboard. If the clipboard contains non-text data, the field <em>data</em> will be an empty string. If the Mini App has no access to the clipboard, the field <em>data</em> will be <em>null</em>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>writeAccessRequested</code> <sup><mark>NEW</mark></sup></td>
|
||||
<td><code>writeAccessRequested</code></td>
|
||||
<td><mark>Bot API 6.9+</mark> Occurs when the write permission was requested.<br><em>eventHandler</em> receives an object with the single field <em>status</em> containing one of the statuses:<br>- <strong>allowed</strong> – user granted write permission to the bot,<br>- <strong>cancelled</strong> – user declined this request.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>contactRequested</code> <sup><mark>NEW</mark></sup></td>
|
||||
<td><code>contactRequested</code></td>
|
||||
<td><mark>Bot API 6.9+</mark> Occurrs when the user's phone number was requested.<br><em>eventHandler</em> receives an object with the single field <em>status</em> containing one of the statuses:<br>- <strong>sent</strong> – user shared their phone number with the bot,<br>- <strong>cancelled</strong> – user declined this request.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -2218,12 +2218,6 @@ a.pr-account-button-wrap:focus {
|
|||
.field-readonly .pr-form-control-wrap:after {
|
||||
display: none;
|
||||
}
|
||||
.pr-form-control-wrap.has-locked .input,
|
||||
.pr-form-control-wrap.has-locked input.form-control,
|
||||
.pr-form-control-wrap.has-locked .select {
|
||||
padding-right: 40px;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.pr-form-control-wrap.has-photo .pr-form-control,
|
||||
.pr-form-control-wrap.has-progress.field-loading .pr-form-control {
|
||||
padding-right: 48px;
|
||||
|
|
Loading…
Add table
Reference in a new issue