mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-16 14:43:05 +01:00
Update content of files
This commit is contained in:
parent
9a1915a9f2
commit
41c41f43f4
3 changed files with 14 additions and 5 deletions
|
@ -45,7 +45,9 @@
|
|||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p>Users can edit and localize the profile picture, name, about text and description of <a href="/api/bots">bots</a> they own; the same can be done by the bots themselves. </p>
|
||||
<pre><code><a href='/constructor/bots.botInfo'>bots.botInfo</a>#e8a775b0 name:<a href='/type/string'>string</a> about:<a href='/type/string'>string</a> description:<a href='/type/string'>string</a> = <a href='/type/bots.BotInfo'>bots.BotInfo</a>;
|
||||
<pre><code><a href='/constructor/user'>user</a>#8f97c628 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> = <a href='/type/User'>User</a>;
|
||||
|
||||
<a href='/constructor/bots.botInfo'>bots.botInfo</a>#e8a775b0 name:<a href='/type/string'>string</a> about:<a href='/type/string'>string</a> description:<a href='/type/string'>string</a> = <a href='/type/bots.BotInfo'>bots.BotInfo</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
@ -55,7 +57,7 @@
|
|||
<a href='/method/photos.uploadProfilePhoto'>photos.uploadProfilePhoto</a>#388a3b5 flags:<a href='/type/%23'>#</a> fallback:flags.3?<a href='/constructor/true'>true</a> bot:flags.5?<a href='/type/InputUser'>InputUser</a> file:flags.0?<a href='/type/InputFile'>InputFile</a> video:flags.1?<a href='/type/InputFile'>InputFile</a> video_start_ts:flags.2?<a href='/type/double'>double</a> video_emoji_markup:flags.4?<a href='/type/VideoSize'>VideoSize</a> = <a href='/type/photos.Photo'>photos.Photo</a>; </code></pre>
|
||||
<p>Bots may invoke <a href="/method/bots.setBotInfo">bots.setBotInfo</a> set a localized version of their name, about text and description; <a href="/method/bots.getBotInfo">bots.getBotInfo</a> may be used to obtain previously set values.<br>
|
||||
Bots may also invoke <a href="/method/photos.uploadProfilePhoto">photos.uploadProfilePhoto</a> as specified in the <a href="/api/files#uploading-profile-or-chat-pictures">files documentation »</a> to set profile photos, videos or stickers. </p>
|
||||
<p>The same methods may be invoked by the user that owns the bot to modify the bot's information: to do so, specify the bot's peer information in the <code>bot</code> parameter.</p></div>
|
||||
<p>The same methods may be invoked by the user that owns the bot (bots owned by the current user have the <a href="/constructor/user">user</a>.<code>bot_can_edit</code> flag set) to modify the bot's information: to do so, specify the bot's peer information in the <code>bot</code> parameter.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -46,10 +46,13 @@
|
|||
|
||||
<p>Below you will find information on schema changes. For more details on the use of layers, see <a href="/api/invoking#layers">Invoking API methods</a>.</p>
|
||||
<h3><a class="anchor" href="#layer-158" id="layer-158" name="layer-158"><i class="anchor-icon"></i></a><a href="/schema?layer=158">Layer 158</a></h3>
|
||||
<p><a href="/api/folders#shared-folders">Shareable folders »</a>, <a href="/api/fragment">collectible usernames for bots »</a>, <a href="/method/messages.setChatWallPaper">set custom per-chat wallpapers »</a>.<br>
|
||||
<p>To view all the changes since the last update, start reading the changelog @ <a href="/api/layers#layer-146">Layer 146</a>. </p>
|
||||
<p>You can now <a href="/api/folders#shared-folders">share folders »</a>, <a href="/api/fragment">use collectible usernames for bots »</a>, <a href="/method/messages.setChatWallPaper">set custom per-chat wallpapers »</a> and <a href="/method/auth.resetLoginEmail">reset the login email »</a>.<br>
|
||||
Users may now edit the <a href="/api/bots/info">usernames, name, about text, description and profile picture</a> of bots they own using the API.<br>
|
||||
Bots can now directly invoke <a href="/method/photos.updateProfilePhoto">photos.updateProfilePhoto</a> and <a href="/method/photos.uploadProfilePhoto">photos.uploadProfilePhoto</a> to edit their own profile picture.<br>
|
||||
Bots may also now specify a custom peer filter when using <a href="/constructor/keyboardButtonSwitchInline">keyboardButtonSwitchInline</a> buttons. </p>
|
||||
Bots may also now specify a custom peer filter when using <a href="/constructor/keyboardButtonSwitchInline">keyboardButtonSwitchInline</a> buttons.</p>
|
||||
<p>Added the <a href="/api/config#small-queue-max-active-operations-count"><code>small_queue_max_active_operations_count</code> »</a> and <a href="/api/config#large-queue-max-active-operations-count"><code>large_queue_max_active_operations_count</code> »</a> client configuration parameters, used to limit parallelism when downloading multiple files in parallel as described in the <a href="/api/files#downloading-files">docs »</a>. </p>
|
||||
<p>The <a href="/api/errors#error-database">RPC error database »</a> was also updated, and a small clarification for open-source push notification standards like UnifiedPush was added to the <a href="/api/push-updates">push notifications documentation »</a>.</p>
|
||||
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
||||
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
|
||||
<ul>
|
||||
|
@ -155,7 +158,6 @@ Bots may also now specify a custom peer filter when using <a href="/constructor/
|
|||
<a href="/method/messages.setChatWallPaper">messages.setChatWallPaper</a>#8ffacae1 flags:<a href="/type/%23">#</a> peer:<a href="/type/InputPeer">InputPeer</a> wallpaper:flags.0?<a href="/type/InputWallPaper">InputWallPaper</a> settings:flags.2?<a href="/type/WallPaperSettings">WallPaperSettings</a> id:flags.1?<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;<br></code></pre></div>
|
||||
<h3><a class="anchor" href="#layer-155" id="layer-155" name="layer-155"><i class="anchor-icon"></i></a><a href="/schema?layer=155">Layer 155</a></h3>
|
||||
<p>Reaction dates.</p>
|
||||
<p>The <a href="/api/errors#error-database">RPC error database »</a> was also updated.</p>
|
||||
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
||||
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
||||
<ul>
|
||||
|
|
|
@ -82,6 +82,11 @@
|
|||
<td>Whether the reaction wasn't yet marked as read by the current user</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>my</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Peer">Peer</a></td>
|
||||
<td>Peer that reacted to the message</td>
|
||||
|
|
Loading…
Reference in a new issue