mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-21 00:17:06 +01:00
Update content of files
This commit is contained in:
parent
46d66001c0
commit
0ee11ffe40
4 changed files with 15 additions and 2 deletions
|
@ -653,11 +653,15 @@ Note that the stickerset can be fetched using <a href="/constructor/inputSticker
|
|||
<h4><a class="anchor" href="#business-chat-links-limit" id="business-chat-links-limit" name="business-chat-links-limit"><i class="anchor-icon"></i></a><code>business_chat_links_limit</code></h4>
|
||||
<p>Maximum number of active <a href="/api/business#business-chat-links">business chat links</a>. (integer)</p>
|
||||
<h4><a class="anchor" href="#upload-premium-speedup-upload" id="upload-premium-speedup-upload" name="upload-premium-speedup-upload"><i class="anchor-icon"></i></a><code>upload_premium_speedup_upload</code></h4>
|
||||
<p>Indicates the file upload speedup enjoyed by <a href="/api/premium">Premium subscribers</a>, used <a href="/api/files#uploading-files">as specified here »</a> in the Premium modal shown when receiving <code>FLOOD_WAIT_PREMIUM_X</code> errors during file uploads. (integer)</p>
|
||||
<h4><a class="anchor" href="#upload-premium-speedup-download" id="upload-premium-speedup-download" name="upload-premium-speedup-download"><i class="anchor-icon"></i></a><code>upload_premium_speedup_download</code></h4>
|
||||
<p>Indicates the file download speedup enjoyed by <a href="/api/premium">Premium subscribers</a>, used <a href="/api/files#downloading-files">as specified here »</a> in the Premium modal shown when receiving <code>FLOOD_WAIT_PREMIUM_X</code> errors during file downloads. (integer)</p>
|
||||
<h4><a class="anchor" href="#upload-premium-speedup-notify-period" id="upload-premium-speedup-notify-period" name="upload-premium-speedup-notify-period"><i class="anchor-icon"></i></a><code>upload_premium_speedup_notify_period</code></h4>
|
||||
<p>The Premium modal shown when receiving <code>FLOOD_WAIT_PREMIUM_X</code> errors during file uploads/downloads should be shown at most every <code>upload_premium_speedup_notify_period</code> seconds. (integer)</p>
|
||||
<h4><a class="anchor" href="#channel-revenue-withdrawal-enabled" id="channel-revenue-withdrawal-enabled" name="channel-revenue-withdrawal-enabled"><i class="anchor-icon"></i></a><code>channel_revenue_withdrawal_enabled</code></h4>
|
||||
<h4><a class="anchor" href="#dismissed-suggestions" id="dismissed-suggestions" name="dismissed-suggestions"><i class="anchor-icon"></i></a><code>dismissed_suggestions</code></h4>
|
||||
<h4><a class="anchor" href="#stories-pinned-to-top-count-max" id="stories-pinned-to-top-count-max" name="stories-pinned-to-top-count-max"><i class="anchor-icon"></i></a><code>stories_pinned_to_top_count_max</code></h4>
|
||||
<p>The maximum number of <a href="/api/stories#pinned-or-archived-stories">stories that can be pinned on top of the profile »</a>. </p>
|
||||
<h4><a class="anchor" href="#stars-purchase-blocked" id="stars-purchase-blocked" name="stars-purchase-blocked"><i class="anchor-icon"></i></a><code>stars_purchase_blocked</code></h4>
|
||||
<h4><a class="anchor" href="#stories-area-url-max" id="stories-area-url-max" name="stories-area-url-max"><i class="anchor-icon"></i></a><code>stories_area_url_max</code></h4>
|
||||
<h4><a class="anchor" href="#stars-revenue-withdrawal-min" id="stars-revenue-withdrawal-min" name="stars-revenue-withdrawal-min"><i class="anchor-icon"></i></a><code>stars_revenue_withdrawal_min</code></h4>
|
||||
|
|
|
@ -99,6 +99,10 @@
|
|||
<li>FILE_PART_EMPTY: The file part sent is empty</li>
|
||||
<li>FILE_PART_SIZE_INVALID - 512KB cannot be evenly divided by <strong>part_size</strong></li>
|
||||
<li>FILE_PART_SIZE_CHANGED - The part size is different from the size of one of the previous parts in the same file</li>
|
||||
<li>FLOOD_PREMIUM_WAIT_X: Indicates that upload speed is limited because the current account does not have a <a href="/api/premium">Premium</a> subscription, and that the query must be automatically repeated by the client after X seconds.<br>
|
||||
When receiving this error, clients should display the <a href="/api/premium">Telegram Premium subscription modal</a>, offering the user to purchase a Premium subscription to increase upload speed <a href="/api/config#upload-premium-speedup-upload">upload_premium_speedup_upload »</a> times.<br>
|
||||
Note that this modal should only be displayed if the file that is being uploaded is currently visible to the user; if it isn't, the modal should be displayed once the loading/already loaded media becomes visible.<br>
|
||||
Also, this modal should only be shown <strong>at most</strong> every <a href="/api/config#upload-premium-speedup-notify-period">upload_premium_speedup_notify_period »</a>, to avoid bombarding the user with this popup for every file whose upload is slowed down. </li>
|
||||
</ul>
|
||||
<p>While the parts are being uploaded, an <a href="https://en.wikipedia.org/wiki/MD5">MD5 hash</a> of the file contents can also be computed to be used later as the <strong>md5_checksum</strong> parameter in the <a href="/constructor/inputFile">inputFile</a> constructor (since it is checked only by the server, for encrypted secret chat files it must be generated from the encrypted file).<br>
|
||||
After the entire file is successfully saved, the final method may be called and passed the generated <a href="/type/InputFile">inputFile</a> object. In case the <a href="/method/upload.saveBigFilePart">upload.saveBigFilePart</a> method is used, the <a href="/constructor/inputFileBig">inputFileBig</a> constructor must be passed, in other cases use <a href="/constructor/inputFile">inputFile</a>.</p>
|
||||
|
@ -319,6 +323,11 @@ The file download operation may also return one of the following <a href="/api/e
|
|||
<li>OFFSET_INVALID: The <strong>offset</strong> value is invalid</li>
|
||||
<li>LIMIT_INVALID: The <strong>limit</strong> value is invalid</li>
|
||||
<li>FILE_MIGRATE_X: The file is in the datacenter No. X</li>
|
||||
<li>FLOOD_WAIT_X: Repeat the query after X seconds</li>
|
||||
<li>FLOOD_PREMIUM_WAIT_X: Indicates that download speed is limited because the current account does not have a <a href="/api/premium">Premium</a> subscription, and that the query must be automatically repeated by the client after X seconds.<br>
|
||||
When receiving this error, clients should display the <a href="/api/premium">Telegram Premium subscription modal</a>, offering the user to purchase a Premium subscription to increase download speed <a href="/api/config#upload-premium-speedup-download">upload_premium_speedup_download »</a> times.<br>
|
||||
Note that this modal should only be displayed if the file that is being downloaded is currently visible to the user; if it isn't, the modal should be displayed once the loading/already loaded media becomes visible.<br>
|
||||
Also, this modal should only be shown <strong>at most</strong> every <a href="/api/config#upload-premium-speedup-notify-period">upload_premium_speedup_notify_period »</a>, to avoid bombarding the user with this popup for every file whose download is slowed down. </li>
|
||||
</ul>
|
||||
<h4><a class="anchor" href="#verifying-downloaded-chunks" id="verifying-downloaded-chunks" name="verifying-downloaded-chunks"><i class="anchor-icon"></i></a>Verifying downloaded chunks</h4>
|
||||
<pre><code><a href='/constructor/fileHash'>fileHash</a>#f39b035c offset:<a href='/type/long'>long</a> limit:<a href='/type/int'>int</a> hash:<a href='/type/bytes'>bytes</a> = <a href='/type/FileHash'>FileHash</a>;
|
||||
|
|
|
@ -107,7 +107,7 @@ Clicking on this button in the settings, clicking on the <a href="#badge">badge<
|
|||
<p><code>more_upload</code> - Premium users can upload bigger files, as specified by the <a href="/api/config#upload-max-fileparts-default">upload_max_fileparts_default</a> vs <a href="/api/config#upload-max-fileparts-premium">upload_max_fileparts_premium</a> config keys.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>faster_download</code> - Premium users have no download speed limits.</p>
|
||||
<p><code>faster_download</code> - Premium users have no download speed limits (i.e. they can't receive <code>FLOOD_PREMIUM_WAIT_X</code> errors when downloading files, see <a href="/api/files">here »</a> for more info).</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>wallpapers</code> - Premium users <a href="/api/wallpapers#installing-wallpapers-in-a-specific-chat-or-channel">can set custom chat wallpapers both for them and the other user in the chat</a>.</p>
|
||||
|
|
|
@ -113,7 +113,7 @@ Note that if any of the conditions changes in the period between the call to <a
|
|||
<p>Use <a href="/method/stories.getStoriesArchive">stories.getStoriesArchive</a> to fetch stories in the story archive. </p>
|
||||
<p>Archived stories may then be pinned on the profile, where they may be fetched using <a href="/method/stories.getPinnedStories">stories.getPinnedStories</a> by users who explicitly open your profile: use <a href="/method/stories.togglePinned">stories.togglePinned</a> to pin or unpin one or more stories to your profile. </p>
|
||||
<p>Stories may also be autopinned upon expiration if the <code>pinned</code> flag is set <a href="#posting-stories">when posting them</a>. </p>
|
||||
<p>Additionally, stories pinned to a profile may be also pinned to the top of the profile using <a href="/method/stories.togglePinnedToTop">stories.togglePinnedToTop</a>; stories that are pinned to the top of the profile (max <a href="/api/config#stories-pinned-to-top-count-max">stories_pinned_to_top_count_max</a>) should be displayed first when opening the profile.<br>
|
||||
<p>Additionally, stories pinned to a profile may <strong>also</strong> be pinned <strong>to the top of the profile</strong> using <a href="/method/stories.togglePinnedToTop">stories.togglePinnedToTop</a>; stories that are pinned to the top of the profile (max <a href="/api/config#stories-pinned-to-top-count-max">stories_pinned_to_top_count_max</a>) should be displayed first when opening the profile.<br>
|
||||
Stories pinned to the top of the profile will be returned first when invoking <a href="/method/stories.getPinnedStories">stories.getPinnedStories</a> with <code>offset_id=0</code>, and their IDs will also be contained in <a href="/constructor/stories.stories">stories.stories</a>.<code>pinned_to_top</code>. </p>
|
||||
<h4><a class="anchor" href="#deleting-stories" id="deleting-stories" name="deleting-stories"><i class="anchor-icon"></i></a>Deleting stories</h4>
|
||||
<pre><code>---functions---
|
||||
|
|
Loading…
Reference in a new issue