Update content of files

This commit is contained in:
GitHub Action 2023-03-15 20:10:09 +00:00
parent d1233e13b3
commit 95540f5702
47 changed files with 440 additions and 30 deletions

View file

@ -103,6 +103,11 @@
<td>USERNAME_OCCUPIED</td>
<td>The provided username is already occupied.</td>
</tr>
<tr>
<td>400</td>
<td>USERNAME_PURCHASE_AVAILABLE</td>
<td>The specified username can be purchased on <a href="https://fragment.com">https://fragment.com</a>.</td>
</tr>
</tbody>
</table></div>

View file

@ -106,6 +106,11 @@ The generated login token should be encoded using base64url, then shown as a <co
<td>API_ID_INVALID</td>
<td>API ID invalid.</td>
</tr>
<tr>
<td>400</td>
<td>API_ID_PUBLISHED_FLOOD</td>
<td>This API id was published somewhere, you can't use it now.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>

View file

@ -98,6 +98,11 @@
<td>BUTTON_TEXT_INVALID</td>
<td>The specified button text is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>BUTTON_URL_INVALID</td>
<td>Button URL invalid.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3>

View file

@ -118,6 +118,16 @@
<td>USERNAME_INVALID</td>
<td>The provided username is not valid.</td>
</tr>
<tr>
<td>400</td>
<td>USERNAME_OCCUPIED</td>
<td>The provided username is already occupied.</td>
</tr>
<tr>
<td>400</td>
<td>USERNAME_PURCHASE_AVAILABLE</td>
<td>The specified username can be purchased on <a href="https://fragment.com">https://fragment.com</a>.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>

View file

@ -125,6 +125,11 @@
</tr>
<tr>
<td>400</td>
<td>CHANNEL_TOO_BIG</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -98,7 +98,7 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>

View file

@ -154,7 +154,7 @@
<td>You do not have the rights to do this.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -109,7 +109,7 @@
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>
@ -125,6 +125,11 @@
</tr>
<tr>
<td>400</td>
<td>FILE_PARTS_INVALID</td>
<td>The number of file parts is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>FILE_REFERENCE_INVALID</td>
<td>The specified <a href="/api/file_reference">file reference</a> is invalid.</td>
</tr>

View file

@ -109,7 +109,7 @@
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -128,12 +128,12 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -132,6 +132,28 @@ offset_date…">
</table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p><a href="/type/messages.ForumTopics">messages.ForumTopics</a></p>
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
<table class="table">
<thead>
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>400</td>
<td>CHANNEL_FORUM_MISSING</td>
<td>This supergroup is not a forum.</td>
</tr>
<tr>
<td>400</td>
<td>CHANNEL_INVALID</td>
<td>The provided channel is invalid.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3></div>
</div>

View file

@ -103,6 +103,11 @@
<td>channel/supergroup not available.</td>
</tr>
<tr>
<td>500</td>
<td>CHAT_FROM_USERNAME_CHANGED</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>CHAT_NOT_MODIFIED</td>
<td>The pinned message wasn't modified.</td>

View file

@ -114,12 +114,12 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -114,12 +114,12 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -104,7 +104,7 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>
@ -134,6 +134,11 @@
<td>You have successfully requested to join this chat or channel.</td>
</tr>
<tr>
<td>500</td>
<td>MEMBER_CHAT_ADD_FAILED</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>MSG_ID_INVALID</td>
<td>Invalid message ID provided.</td>

View file

@ -99,7 +99,7 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>

View file

@ -99,7 +99,7 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>

View file

@ -16,7 +16,10 @@ Bool
 
Result
Updates
Bots can use this method">
Possible errors
Code
Type
Description…">
<meta property="og:title" content="channels.toggleForum">
<meta property="og:image" content="">
<meta property="og:description" content="Parameters
@ -31,7 +34,10 @@ Bool
 
Result
Updates
Bots can use this method">
Possible errors
Code
Type
Description…">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
@ -111,6 +117,23 @@ Bots can use this method">
</table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p><a href="/type/Updates">Updates</a></p>
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
<table class="table">
<thead>
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>400</td>
<td>CHAT_DISCUSSION_UNALLOWED</td>
<td>You can't enable forum topics in a discussion group linked to a channel.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3></div>
</div>

View file

@ -88,6 +88,33 @@
</table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p><a href="/type/Updates">Updates</a></p>
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
<table class="table">
<thead>
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>400</td>
<td>CHANNEL_INVALID</td>
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>CHAT_ID_INVALID</td>
<td>The provided chat id is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>CHAT_PUBLIC_REQUIRED</td>
<td> </td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
<h4><a class="anchor" href="#invites" id="invites" name="invites"><i class="anchor-icon"></i></a><a href="/api/invites">Invites</a></h4>
<p>Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.</p></div>

View file

@ -100,9 +100,19 @@
<tbody>
<tr>
<td>400</td>
<td>CHANNEL_INVALID</td>
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>
<tr>
<td>400</td>
<td>CHAT_ID_INVALID</td>
<td>The provided chat id is invalid.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>

View file

@ -100,6 +100,11 @@
<tbody>
<tr>
<td>400</td>
<td>CHANNEL_INVALID</td>
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -109,7 +109,7 @@
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>
@ -138,6 +138,11 @@
<td>USERNAME_OCCUPIED</td>
<td>The provided username is already occupied.</td>
</tr>
<tr>
<td>400</td>
<td>USERNAME_PURCHASE_AVAILABLE</td>
<td>The specified username can be purchased on <a href="https://fragment.com">https://fragment.com</a>.</td>
</tr>
</tbody>
</table></div>

View file

@ -77,7 +77,24 @@
</tbody>
</table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p><a href="/type/Bool">Bool</a></p></div>
<p><a href="/type/Bool">Bool</a></p>
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
<table class="table">
<thead>
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>400</td>
<td>DATA_JSON_INVALID</td>
<td>The provided JSON data is invalid.</td>
</tr>
</tbody>
</table></div>
</div>

View file

@ -112,7 +112,7 @@
<td>The provided API id is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>INVITE_HASH_EXPIRED</td>
<td>The invite link has expired.</td>
</tr>

View file

@ -95,6 +95,11 @@
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>500</td>
<td>CHAT_MEMBERS_CHANNEL</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>INVITE_HASH_EMPTY</td>
<td>The invite hash is empty.</td>

View file

@ -90,6 +90,11 @@
<tbody>
<tr>
<td>400</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>
<tr>
<td>400</td>
<td>PEER_ID_INVALID</td>
<td>The provided peer id is invalid.</td>
</tr>

View file

@ -134,7 +134,7 @@
<td>Not enough users (to create a chat, for example).</td>
</tr>
<tr>
<td>403</td>
<td>406</td>
<td>USER_RESTRICTED</td>
<td>You're spamreported, you can't create channels or chats.</td>
</tr>

View file

@ -169,12 +169,12 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>
@ -195,6 +195,11 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_AUDIOS_FORBIDDEN</td>
<td>You can't send audio messages in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_GAME_FORBIDDEN</td>
<td>You can't send a game to this chat.</td>
</tr>
@ -210,6 +215,16 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_PHOTOS_FORBIDDEN</td>
<td>You can't send photos in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_PLAIN_FORBIDDEN</td>
<td>You can't send non-media (text) messages in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_POLL_FORBIDDEN</td>
<td>You can't send polls in this chat.</td>
</tr>
@ -220,6 +235,11 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_VIDEOS_FORBIDDEN</td>
<td>You can't send videos in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_WRITE_FORBIDDEN</td>
<td>You can't write in this chat.</td>
</tr>
@ -299,6 +319,16 @@
<td>Slowmode is enabled, you cannot forward multiple messages to this group.</td>
</tr>
<tr>
<td>406</td>
<td>TOPIC_CLOSED</td>
<td>This topic was closed, you can't send messages to it anymore.</td>
</tr>
<tr>
<td>406</td>
<td>TOPIC_DELETED</td>
<td>The specified topic was deleted.</td>
</tr>
<tr>
<td>400</td>
<td>USER_BANNED_IN_CHANNEL</td>
<td>You're banned from sending messages in supergroups/channels.</td>

View file

@ -143,6 +143,11 @@
<td>The invite link has expired.</td>
</tr>
<tr>
<td>500</td>
<td>INVITE_HASH_UNSYNC</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>PEER_ID_INVALID</td>
<td>The provided peer id is invalid.</td>

View file

@ -125,11 +125,21 @@
</thead>
<tbody>
<tr>
<td>403</td>
<td>CHAT_WRITE_FORBIDDEN</td>
<td>You can't write in this chat.</td>
</tr>
<tr>
<td>400</td>
<td>FOLDER_ID_INVALID</td>
<td>Invalid folder ID.</td>
</tr>
<tr>
<td>500</td>
<td>NEED_DOC_INVALID</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>OFFSET_PEER_ID_INVALID</td>
<td>The provided offset peer is invalid.</td>

View file

@ -112,6 +112,11 @@
<td>PEER_ID_INVALID</td>
<td>The provided peer id is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>TOPIC_ID_INVALID</td>
<td>The specified topic ID is invalid.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>

View file

@ -88,6 +88,23 @@
</table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p><a href="/type/Updates">Updates</a></p>
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
<table class="table">
<thead>
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>400</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
<h4><a class="anchor" href="#message-reactions" id="message-reactions" name="message-reactions"><i class="anchor-icon"></i></a><a href="/api/reactions">Message reactions</a></h4>
<p>Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.</p></div>

View file

@ -103,7 +103,7 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>

View file

@ -99,6 +99,11 @@
</tr>
<tr>
<td>400</td>
<td>MSG_ID_INVALID</td>
<td>Invalid message ID provided.</td>
</tr>
<tr>
<td>400</td>
<td>PEER_ID_INVALID</td>
<td>The provided peer id is invalid.</td>
</tr>

View file

@ -110,11 +110,36 @@
<tbody>
<tr>
<td>400</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>
<tr>
<td>400</td>
<td>HIDE_REQUESTER_MISSING</td>
<td>The join request was missing or was already handled.</td>
</tr>
<tr>
<td>400</td>
<td>INPUT_USER_DEACTIVATED</td>
<td>The specified user was deleted.</td>
</tr>
<tr>
<td>400</td>
<td>PEER_ID_INVALID</td>
<td>The provided peer id is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>USER_ALREADY_PARTICIPANT</td>
<td>The user is already in the group.</td>
</tr>
<tr>
<td>403</td>
<td>USER_CHANNELS_TOO_MUCH</td>
<td>One of the users you tried to add is already in too many channels/supergroups.</td>
</tr>
<tr>
<td>400</td>
<td>USER_ID_INVALID</td>
<td>The provided user ID is invalid.</td>
</tr>

View file

@ -166,7 +166,7 @@
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -169,12 +169,22 @@
<td>You must be an admin in this chat to do this.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_GUEST_SEND_FORBIDDEN</td>
<td>You join the discussion group before commenting, see <a href="/api/discussion#requiring-users-to-join-the-group">here »</a> for more info.</td>
</tr>
<tr>
<td>400</td>
<td>CHAT_RESTRICTED</td>
<td>You can't send messages in this chat, you were restricted.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_AUDIOS_FORBIDDEN</td>
<td>You can't send audio messages in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_GAME_FORBIDDEN</td>
<td>You can't send a game to this chat.</td>
</tr>
@ -195,11 +205,21 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_PHOTOS_FORBIDDEN</td>
<td>You can't send photos in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_STICKERS_FORBIDDEN</td>
<td>You can't send stickers in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_VOICES_FORBIDDEN</td>
<td>You can't send voice recordings in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_WRITE_FORBIDDEN</td>
<td>You can't write in this chat.</td>
</tr>
@ -265,6 +285,11 @@
</tr>
<tr>
<td>400</td>
<td>TOPIC_DELETED</td>
<td>The specified topic was deleted.</td>
</tr>
<tr>
<td>400</td>
<td>USER_BANNED_IN_CHANNEL</td>
<td>You're banned from sending messages in supergroups/channels.</td>
</tr>
@ -297,6 +322,8 @@
<p>Current configuration</p>
<h4><a class="anchor" href="#messagesgetinlinebotresults" id="messagesgetinlinebotresults" name="messagesgetinlinebotresults"><i class="anchor-icon"></i></a><a href="/method/messages.getInlineBotResults">messages.getInlineBotResults</a></h4>
<p>Query an inline bot</p>
<h4><a class="anchor" href="#discussion-groups" id="discussion-groups" name="discussion-groups"><i class="anchor-icon"></i></a><a href="/api/discussion">Discussion groups</a></h4>
<p>Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.</p>
<h4><a class="anchor" href="#styled-text-with-message-entities" id="styled-text-with-message-entities" name="styled-text-with-message-entities"><i class="anchor-icon"></i></a><a href="/api/entities">Styled text with message entities</a></h4>
<p>How to create styled text with message entities</p></div>

View file

@ -199,12 +199,12 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>
@ -225,6 +225,16 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_AUDIOS_FORBIDDEN</td>
<td>You can't send audio messages in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_DOCS_FORBIDDEN</td>
<td>You can't send documents in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_GIFS_FORBIDDEN</td>
<td>You can't send gifs in this chat.</td>
</tr>
@ -235,6 +245,11 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_PHOTOS_FORBIDDEN</td>
<td>You can't send photos in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_POLL_FORBIDDEN</td>
<td>You can't send polls in this chat.</td>
</tr>
@ -245,6 +260,16 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_VIDEOS_FORBIDDEN</td>
<td>You can't send videos in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_VOICES_FORBIDDEN</td>
<td>You can't send voice recordings in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_WRITE_FORBIDDEN</td>
<td>You can't write in this chat.</td>
</tr>
@ -454,6 +479,16 @@
<td>Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.</td>
</tr>
<tr>
<td>406</td>
<td>TOPIC_CLOSED</td>
<td>This topic was closed, you can't send messages to it anymore.</td>
</tr>
<tr>
<td>406</td>
<td>TOPIC_DELETED</td>
<td>The specified topic was deleted.</td>
</tr>
<tr>
<td>400</td>
<td>TTL_MEDIA_INVALID</td>
<td>Invalid media Time To Live was provided.</td>
@ -480,6 +515,11 @@
</tr>
<tr>
<td>400</td>
<td>VOICE_MESSAGES_FORBIDDEN</td>
<td>This user's privacy settings forbid you from sending voice messages.</td>
</tr>
<tr>
<td>400</td>
<td>WEBDOCUMENT_MIME_INVALID</td>
<td>Invalid webdocument mime type provided.</td>
</tr>

View file

@ -204,12 +204,12 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>
@ -230,6 +230,11 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_PLAIN_FORBIDDEN</td>
<td>You can't send non-media (text) messages in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_WRITE_FORBIDDEN</td>
<td>You can't write in this chat.</td>
</tr>
@ -279,6 +284,11 @@
<td>Invalid message ID provided.</td>
</tr>
<tr>
<td>406</td>
<td>PAYMENT_UNSUPPORTED</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>PEER_ID_INVALID</td>
<td>The provided peer id is invalid.</td>
@ -339,6 +349,16 @@
<td>Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.</td>
</tr>
<tr>
<td>406</td>
<td>TOPIC_CLOSED</td>
<td>This topic was closed, you can't send messages to it anymore.</td>
</tr>
<tr>
<td>406</td>
<td>TOPIC_DELETED</td>
<td>The specified topic was deleted.</td>
</tr>
<tr>
<td>400</td>
<td>USER_BANNED_IN_CHANNEL</td>
<td>You're banned from sending messages in supergroups/channels.</td>

View file

@ -165,6 +165,11 @@
</tr>
<tr>
<td>403</td>
<td>CHAT_SEND_MEDIA_FORBIDDEN</td>
<td>You can't send media in this chat.</td>
</tr>
<tr>
<td>403</td>
<td>CHAT_WRITE_FORBIDDEN</td>
<td>You can't write in this chat.</td>
</tr>
@ -228,6 +233,16 @@
<td>SLOWMODE_WAIT_%d</td>
<td>Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.</td>
</tr>
<tr>
<td>400</td>
<td>TOPIC_DELETED</td>
<td>The specified topic was deleted.</td>
</tr>
<tr>
<td>400</td>
<td>USER_BANNED_IN_CHANNEL</td>
<td>You're banned from sending messages in supergroups/channels.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3>

View file

@ -128,6 +128,11 @@
<td>URL_INVALID</td>
<td>Invalid URL provided.</td>
</tr>
<tr>
<td>400</td>
<td>USER_BOT_REQUIRED</td>
<td>This method can only be called by a bot.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3></div>

View file

@ -109,7 +109,7 @@
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>406</td>
<td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td>
</tr>

View file

@ -87,7 +87,29 @@
</tbody>
</table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p><a href="/type/Updates">Updates</a></p></div>
<p><a href="/type/Updates">Updates</a></p>
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
<table class="table">
<thead>
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>400</td>
<td>CHAT_NOT_MODIFIED</td>
<td>The pinned message wasn't modified.</td>
</tr>
<tr>
<td>400</td>
<td>PEER_ID_INVALID</td>
<td>The provided peer id is invalid.</td>
</tr>
</tbody>
</table></div>
</div>

View file

@ -154,6 +154,11 @@
</tr>
<tr>
<td>400</td>
<td>STICKER_MIME_INVALID</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>VIDEO_FILE_INVALID</td>
<td>The specified video file is invalid.</td>
</tr>

View file

@ -113,7 +113,7 @@
<td>You haven't joined this channel/supergroup.</td>
</tr>
<tr>
<td>400</td>
<td>403</td>
<td>CHAT_ADMIN_REQUIRED</td>
<td>You must be an admin in this chat to do this.</td>
</tr>

View file

@ -141,6 +141,11 @@
<td>Invalid message ID provided.</td>
</tr>
<tr>
<td>500</td>
<td>NEED_DOC_INVALID</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>PERSISTENT_TIMESTAMP_EMPTY</td>
<td>Persistent timestamp empty.</td>
@ -160,6 +165,11 @@
<td>USERNAME_INVALID</td>
<td>The provided username is not valid.</td>
</tr>
<tr>
<td>400</td>
<td>USER_NOT_PARTICIPANT</td>
<td>You're not a member of this supergroup/channel.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3>

View file

@ -107,6 +107,11 @@
<td>Invalid message ID provided.</td>
</tr>
<tr>
<td>500</td>
<td>NEED_DOC_INVALID</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>USER_BANNED_IN_CHANNEL</td>
<td>You're banned from sending messages in supergroups/channels.</td>