mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-31 21:01:53 +02:00
Update content of files
This commit is contained in:
parent
e1d1bcdafd
commit
c3f5d6fa56
6 changed files with 531 additions and 13 deletions
data/web
blogfork.telegram.org/bots
core.telegram.org/bots
corefork.telegram.org/bots
telegram.org/blog
|
@ -54,6 +54,24 @@ To learn how to create…">
|
|||
<blockquote>
|
||||
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h3>
|
||||
<p><strong>Bot API 6.4</strong></p>
|
||||
<ul>
|
||||
<li>Added the field <em>is_persistent</em> to the class <a href="/bots/api#replykeyboardmarkup">ReplyKeyboardMarkup</a>, allowing to control when the keyboard is shown.</li>
|
||||
<li>Added the parameter <em>has_spoiler</em> to the methods <a href="/bots/api#sendphoto">sendPhoto</a>, <a href="/bots/api#sendvideo">sendVideo</a>, and <a href="/bots/api#sendanimation">sendAnimation</a>.</li>
|
||||
<li>Added the field <em>has_spoiler</em> to the classes <a href="/bots/api#inputmediaphoto">InputMediaPhoto</a>, <a href="/bots/api#inputmediavideo">InputMediaVideo</a>, and <a href="/bots/api/bots/api#inputmediaanimation">InputMediaAnimation</a>.</li>
|
||||
<li>Added the field <em>has_media_spoiler</em> to the class <a href="/bots/api#message">Message</a>.</li>
|
||||
<li>The parameters <em>name</em> and <em>icon_custom_emoji_id</em> of the method <a href="/bots/api#editforumtopic">editForumTopic</a> are now optional. If they are omitted, the existing values are kept.</li>
|
||||
<li>Added the classes <a href="/bots/api#forumtopicedited">ForumTopicEdited</a>, <a href="/bots/api#generalforumtopichidden">GeneralForumTopicHidden</a>, <a href="/bots/api#generalforumtopicunhidden">GeneralForumTopicUnhidden</a>, and <a href="/bots/api#writeaccessallowed">WriteAccessAllowed</a> and the fields <em>forum_topic_edited</em>, <em>general_forum_topic_hidden</em>, <em>general_forum_topic_unhidden</em>, and <em>write_access_allowed</em> to the class <a href="/bots/api#message">Message</a>.</li>
|
||||
<li>Added the methods <a href="/bots/api#editgeneralforumtopic">editGeneralForumTopic</a>, <a href="/bots/api#closegeneralforumtopic">closeGeneralForumTopic</a>, <a href="/bots/api#reopengeneralforumtopic">reopenGeneralForumTopic</a>, <a href="/bots/api#hidegeneralforumtopic">hideGeneralForumTopic</a>, <a href="/bots/api#unhidegeneralforumtopic">unhideGeneralForumTopic</a> for managing the General topic in forums.</li>
|
||||
<li>Added the parameter <em>message_thread_id</em> to the method <a href="/bots/api#sendchataction">sendChatAction</a> for sending chat actions to a specific message thread or a forum topic.</li>
|
||||
<li>Added the field <em>has_hidden_members</em> to the class <a href="/bots/api#chat">Chat</a>. Note that the method <a href="/bots/api#getchatmember">getChatMember</a> is only guaranteed to work if the bot is an administrator in the chat.</li>
|
||||
<li>Added the field <em>has_aggressive_anti_spam_enabled</em> to the class <a href="/bots/api#chat">Chat</a>.</li>
|
||||
<li>Added Web App events <em>qrTextReceived</em> and <em>clipboardTextReceived</em>.</li>
|
||||
<li>Added the field <em>platform</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the methods <em>showScanQrPopup</em>, <em>closeScanQrPopup</em>, and <em>readTextFromClipboard</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the parameter <em>options</em> to the method <em>openLink</em> of the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="november-5-2022" href="#november-5-2022"><i class="anchor-icon"></i></a>November 5, 2022</h3>
|
||||
<p><strong>Bot API 6.3</strong></p>
|
||||
<ul>
|
||||
|
|
|
@ -54,6 +54,24 @@ To learn how to create…">
|
|||
<blockquote>
|
||||
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h3>
|
||||
<p><strong>Bot API 6.4</strong></p>
|
||||
<ul>
|
||||
<li>Added the field <em>is_persistent</em> to the class <a href="/bots/api#replykeyboardmarkup">ReplyKeyboardMarkup</a>, allowing to control when the keyboard is shown.</li>
|
||||
<li>Added the parameter <em>has_spoiler</em> to the methods <a href="/bots/api#sendphoto">sendPhoto</a>, <a href="/bots/api#sendvideo">sendVideo</a>, and <a href="/bots/api#sendanimation">sendAnimation</a>.</li>
|
||||
<li>Added the field <em>has_spoiler</em> to the classes <a href="/bots/api#inputmediaphoto">InputMediaPhoto</a>, <a href="/bots/api#inputmediavideo">InputMediaVideo</a>, and <a href="/bots/api/bots/api#inputmediaanimation">InputMediaAnimation</a>.</li>
|
||||
<li>Added the field <em>has_media_spoiler</em> to the class <a href="/bots/api#message">Message</a>.</li>
|
||||
<li>The parameters <em>name</em> and <em>icon_custom_emoji_id</em> of the method <a href="/bots/api#editforumtopic">editForumTopic</a> are now optional. If they are omitted, the existing values are kept.</li>
|
||||
<li>Added the classes <a href="/bots/api#forumtopicedited">ForumTopicEdited</a>, <a href="/bots/api#generalforumtopichidden">GeneralForumTopicHidden</a>, <a href="/bots/api#generalforumtopicunhidden">GeneralForumTopicUnhidden</a>, and <a href="/bots/api#writeaccessallowed">WriteAccessAllowed</a> and the fields <em>forum_topic_edited</em>, <em>general_forum_topic_hidden</em>, <em>general_forum_topic_unhidden</em>, and <em>write_access_allowed</em> to the class <a href="/bots/api#message">Message</a>.</li>
|
||||
<li>Added the methods <a href="/bots/api#editgeneralforumtopic">editGeneralForumTopic</a>, <a href="/bots/api#closegeneralforumtopic">closeGeneralForumTopic</a>, <a href="/bots/api#reopengeneralforumtopic">reopenGeneralForumTopic</a>, <a href="/bots/api#hidegeneralforumtopic">hideGeneralForumTopic</a>, <a href="/bots/api#unhidegeneralforumtopic">unhideGeneralForumTopic</a> for managing the General topic in forums.</li>
|
||||
<li>Added the parameter <em>message_thread_id</em> to the method <a href="/bots/api#sendchataction">sendChatAction</a> for sending chat actions to a specific message thread or a forum topic.</li>
|
||||
<li>Added the field <em>has_hidden_members</em> to the class <a href="/bots/api#chat">Chat</a>. Note that the method <a href="/bots/api#getchatmember">getChatMember</a> is only guaranteed to work if the bot is an administrator in the chat.</li>
|
||||
<li>Added the field <em>has_aggressive_anti_spam_enabled</em> to the class <a href="/bots/api#chat">Chat</a>.</li>
|
||||
<li>Added Web App events <em>qrTextReceived</em> and <em>clipboardTextReceived</em>.</li>
|
||||
<li>Added the field <em>platform</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the methods <em>showScanQrPopup</em>, <em>closeScanQrPopup</em>, and <em>readTextFromClipboard</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the parameter <em>options</em> to the method <em>openLink</em> of the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="november-5-2022" href="#november-5-2022"><i class="anchor-icon"></i></a>November 5, 2022</h3>
|
||||
<p><strong>Bot API 6.3</strong></p>
|
||||
<ul>
|
||||
|
|
|
@ -53,6 +53,24 @@ To learn how to create…">
|
|||
<blockquote>
|
||||
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h4>
|
||||
<p><strong>Bot API 6.4</strong></p>
|
||||
<ul>
|
||||
<li>Added the field <em>is_persistent</em> to the class <a href="#replykeyboardmarkup">ReplyKeyboardMarkup</a>, allowing to control when the keyboard is shown.</li>
|
||||
<li>Added the parameter <em>has_spoiler</em> to the methods <a href="#sendphoto">sendPhoto</a>, <a href="#sendvideo">sendVideo</a>, and <a href="#sendanimation">sendAnimation</a>.</li>
|
||||
<li>Added the field <em>has_spoiler</em> to the classes <a href="#inputmediaphoto">InputMediaPhoto</a>, <a href="#inputmediavideo">InputMediaVideo</a>, and <a href="#inputmediaanimation">InputMediaAnimation</a>.</li>
|
||||
<li>Added the field <em>has_media_spoiler</em> to the class <a href="#message">Message</a>.</li>
|
||||
<li>The parameters <em>name</em> and <em>icon_custom_emoji_id</em> of the method <a href="#editforumtopic">editForumTopic</a> are now optional. If they are omitted, the existing values are kept.</li>
|
||||
<li>Added the classes <a href="#forumtopicedited">ForumTopicEdited</a>, <a href="#generalforumtopichidden">GeneralForumTopicHidden</a>, <a href="#generalforumtopicunhidden">GeneralForumTopicUnhidden</a>, and <a href="#writeaccessallowed">WriteAccessAllowed</a> and the fields <em>forum_topic_edited</em>, <em>general_forum_topic_hidden</em>, <em>general_forum_topic_unhidden</em>, and <em>write_access_allowed</em> to the class <a href="#message">Message</a>.</li>
|
||||
<li>Added the methods <a href="#editgeneralforumtopic">editGeneralForumTopic</a>, <a href="#closegeneralforumtopic">closeGeneralForumTopic</a>, <a href="#reopengeneralforumtopic">reopenGeneralForumTopic</a>, <a href="#hidegeneralforumtopic">hideGeneralForumTopic</a>, <a href="#unhidegeneralforumtopic">unhideGeneralForumTopic</a> for managing the General topic in forums.</li>
|
||||
<li>Added the parameter <em>message_thread_id</em> to the method <a href="#sendchataction">sendChatAction</a> for sending chat actions to a specific message thread or a forum topic.</li>
|
||||
<li>Added the field <em>has_hidden_members</em> to the class <a href="#chat">Chat</a>. Note that the method <a href="#getchatmember">getChatMember</a> is only guaranteed to work if the bot is an administrator in the chat.</li>
|
||||
<li>Added the field <em>has_aggressive_anti_spam_enabled</em> to the class <a href="#chat">Chat</a>.</li>
|
||||
<li>Added Web App events <em>qrTextReceived</em> and <em>clipboardTextReceived</em>.</li>
|
||||
<li>Added the field <em>platform</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the methods <em>showScanQrPopup</em>, <em>closeScanQrPopup</em>, and <em>readTextFromClipboard</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the parameter <em>options</em> to the method <em>openLink</em> of the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" name="november-5-2022" href="#november-5-2022"><i class="anchor-icon"></i></a>November 5, 2022</h4>
|
||||
<p><strong>Bot API 6.3</strong></p>
|
||||
<ul>
|
||||
|
@ -655,6 +673,16 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in <a href="#getchat">getChat</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_aggressive_anti_spam_enabled</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in <a href="#getchat">getChat</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_hidden_members</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if non-administrators can only get the list of bots and administrators in the chat. Returned only in <a href="#getchat">getChat</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_protected_content</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if messages from the chat can't be forwarded to other chats. Returned only in <a href="#getchat">getChat</a>.</td>
|
||||
|
@ -853,6 +881,11 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_media_spoiler</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if the message media is covered by a spoiler animation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>contact</td>
|
||||
<td><a href="#contact">Contact</a></td>
|
||||
<td><em>Optional</em>. Message is a shared contact, information about the contact</td>
|
||||
|
@ -958,6 +991,11 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. The domain name of the website on which the user has logged in. <a href="/widgets/login">More about Telegram Login »</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>write_access_allowed</td>
|
||||
<td><a href="#writeaccessallowed">WriteAccessAllowed</a></td>
|
||||
<td><em>Optional</em>. Service message: the user allowed the bot added to the attachment menu to write messages</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>passport_data</td>
|
||||
<td><a href="#passportdata">PassportData</a></td>
|
||||
<td><em>Optional</em>. Telegram Passport data</td>
|
||||
|
@ -973,6 +1011,11 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. Service message: forum topic created</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>forum_topic_edited</td>
|
||||
<td><a href="#forumtopicedited">ForumTopicEdited</a></td>
|
||||
<td><em>Optional</em>. Service message: forum topic edited</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>forum_topic_closed</td>
|
||||
<td><a href="#forumtopicclosed">ForumTopicClosed</a></td>
|
||||
<td><em>Optional</em>. Service message: forum topic closed</td>
|
||||
|
@ -983,6 +1026,16 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. Service message: forum topic reopened</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>general_forum_topic_hidden</td>
|
||||
<td><a href="#generalforumtopichidden">GeneralForumTopicHidden</a></td>
|
||||
<td><em>Optional</em>. Service message: the 'General' forum topic hidden</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>general_forum_topic_unhidden</td>
|
||||
<td><a href="#generalforumtopicunhidden">GeneralForumTopicUnhidden</a></td>
|
||||
<td><em>Optional</em>. Service message: the 'General' forum topic unhidden</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>video_chat_scheduled</td>
|
||||
<td><a href="#videochatscheduled">VideoChatScheduled</a></td>
|
||||
<td><em>Optional</em>. Service message: video chat scheduled</td>
|
||||
|
@ -1796,8 +1849,37 @@ To learn how to create…">
|
|||
</table>
|
||||
<h4><a class="anchor" name="forumtopicclosed" href="#forumtopicclosed"><i class="anchor-icon"></i></a>ForumTopicClosed</h4>
|
||||
<p>This object represents a service message about a forum topic closed in the chat. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="forumtopicedited" href="#forumtopicedited"><i class="anchor-icon"></i></a>ForumTopicEdited</h4>
|
||||
<p>This object represents a service message about an edited forum topic.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Field</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. New name of the topic, if it was edited</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>icon_custom_emoji_id</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="forumtopicreopened" href="#forumtopicreopened"><i class="anchor-icon"></i></a>ForumTopicReopened</h4>
|
||||
<p>This object represents a service message about a forum topic reopened in the chat. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="generalforumtopichidden" href="#generalforumtopichidden"><i class="anchor-icon"></i></a>GeneralForumTopicHidden</h4>
|
||||
<p>This object represents a service message about General forum topic hidden in the chat. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="generalforumtopicunhidden" href="#generalforumtopicunhidden"><i class="anchor-icon"></i></a>GeneralForumTopicUnhidden</h4>
|
||||
<p>This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="writeaccessallowed" href="#writeaccessallowed"><i class="anchor-icon"></i></a>WriteAccessAllowed</h4>
|
||||
<p>This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="videochatscheduled" href="#videochatscheduled"><i class="anchor-icon"></i></a>VideoChatScheduled</h4>
|
||||
<p>This object represents a service message about a video chat scheduled in the chat.</p>
|
||||
<table class="table">
|
||||
|
@ -1948,6 +2030,11 @@ To learn how to create…">
|
|||
<td>Array of button rows, each represented by an Array of <a href="#keyboardbutton">KeyboardButton</a> objects</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>is_persistent</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to <em>false</em>, in which case the custom keyboard can be hidden and opened with a keyboard icon.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>resize_keyboard</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to <em>false</em>, in which case the custom keyboard is always of the same height as the app's standard keyboard.</td>
|
||||
|
@ -3247,6 +3334,11 @@ To learn how to create…">
|
|||
<td>Array of <a href="#messageentity">MessageEntity</a></td>
|
||||
<td><em>Optional</em>. List of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="inputmediavideo" href="#inputmediavideo"><i class="anchor-icon"></i></a>InputMediaVideo</h4>
|
||||
|
@ -3310,6 +3402,11 @@ To learn how to create…">
|
|||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Pass <em>True</em> if the uploaded video is suitable for streaming</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="inputmediaanimation" href="#inputmediaanimation"><i class="anchor-icon"></i></a>InputMediaAnimation</h4>
|
||||
|
@ -3368,6 +3465,11 @@ To learn how to create…">
|
|||
<td>Integer</td>
|
||||
<td><em>Optional</em>. Animation duration in seconds</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="inputmediaaudio" href="#inputmediaaudio"><i class="anchor-icon"></i></a>InputMediaAudio</h4>
|
||||
|
@ -3593,7 +3695,7 @@ To learn how to create…">
|
|||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="formatting-options" href="#formatting-options"><i class="anchor-icon"></i></a>Formatting options</h4>
|
||||
<p>The Bot API supports basic formatting for messages. You can use bold, italic, underlined, strikethrough, and spoiler text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can use either markdown-style or HTML-style formatting.</p>
|
||||
<p>The Bot API supports basic formatting for messages. You can use bold, italic, underlined, strikethrough, and spoiler text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can specify text entities directly, or use markdown-style or HTML-style formatting.</p>
|
||||
<p>Note that Telegram clients will display an <strong>alert</strong> to the user before opening an inline link ('Open this link?' together with the full URL).</p>
|
||||
<p>Message entities can be nested, providing following restrictions are met:<br>- If two entities have common characters, then one of them is fully contained inside another.<br>- <em>bold</em>, <em>italic</em>, <em>underline</em>, <em>strikethrough</em>, and <em>spoiler</em> entities can contain and can be part of any other entities, except <em>pre</em> and <em>code</em>.<br>- All other entities can't contain each other.</p>
|
||||
<p>Links <code>tg://user?id=<user_id></code> can be used to mention a user by their ID without using a username. Please note:</p>
|
||||
|
@ -3853,6 +3955,12 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<td>A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
<td>Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>disable_notification</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
|
@ -4154,6 +4262,12 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<td>A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
<td>Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>supports_streaming</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
|
@ -4264,6 +4378,12 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<td>A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
<td>Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>disable_notification</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
|
@ -5112,6 +5232,12 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>message_thread_id</td>
|
||||
<td>Integer</td>
|
||||
<td>Optional</td>
|
||||
<td>Unique identifier for the target message thread; supergroups only</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>action</td>
|
||||
<td>String</td>
|
||||
<td>Yes</td>
|
||||
|
@ -5940,7 +6066,7 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="getchatmember" href="#getchatmember"><i class="anchor-icon"></i></a>getChatMember</h4>
|
||||
<p>Use this method to get information about a member of a chat. Returns a <a href="#chatmember">ChatMember</a> object on success.</p>
|
||||
<p>Use this method to get information about a member of a chat. The method is guaranteed to work only if the bot is an administrator in the chat. Returns a <a href="#chatmember">ChatMember</a> object on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -6078,14 +6204,14 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
<td>Yes</td>
|
||||
<td>New topic name, 1-128 characters</td>
|
||||
<td>Optional</td>
|
||||
<td>New topic name, 0-128 characters. If not specififed or empty, the current name of the topic will be kept</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>icon_custom_emoji_id</td>
|
||||
<td>String</td>
|
||||
<td>Yes</td>
|
||||
<td>New unique identifier of the custom emoji shown as the topic icon. Use <a href="#getforumtopiciconstickers">getForumTopicIconStickers</a> to get all allowed custom emoji identifiers.</td>
|
||||
<td>Optional</td>
|
||||
<td>New unique identifier of the custom emoji shown as the topic icon. Use <a href="#getforumtopiciconstickers">getForumTopicIconStickers</a> to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -6193,6 +6319,112 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="editgeneralforumtopic" href="#editgeneralforumtopic"><i class="anchor-icon"></i></a>editGeneralForumTopic</h4>
|
||||
<p>Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have <em>can_manage_topics</em> administrator rights. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
<td>Yes</td>
|
||||
<td>New topic name, 1-128 characters</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="closegeneralforumtopic" href="#closegeneralforumtopic"><i class="anchor-icon"></i></a>closeGeneralForumTopic</h4>
|
||||
<p>Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="reopengeneralforumtopic" href="#reopengeneralforumtopic"><i class="anchor-icon"></i></a>reopenGeneralForumTopic</h4>
|
||||
<p>Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. The topic will be automatically unhidden if it was hidden. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="hidegeneralforumtopic" href="#hidegeneralforumtopic"><i class="anchor-icon"></i></a>hideGeneralForumTopic</h4>
|
||||
<p>Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. The topic will be automatically closed if it was open. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="unhidegeneralforumtopic" href="#unhidegeneralforumtopic"><i class="anchor-icon"></i></a>unhideGeneralForumTopic</h4>
|
||||
<p>Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="answercallbackquery" href="#answercallbackquery"><i class="anchor-icon"></i></a>answerCallbackQuery</h4>
|
||||
<p>Use this method to send answers to callback queries sent from <a href="/bots/features#inline-keyboards">inline keyboards</a>. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, <em>True</em> is returned.</p>
|
||||
<blockquote>
|
||||
|
|
|
@ -54,6 +54,24 @@ To learn how to create…">
|
|||
<blockquote>
|
||||
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h3>
|
||||
<p><strong>Bot API 6.4</strong></p>
|
||||
<ul>
|
||||
<li>Added the field <em>is_persistent</em> to the class <a href="/bots/api#replykeyboardmarkup">ReplyKeyboardMarkup</a>, allowing to control when the keyboard is shown.</li>
|
||||
<li>Added the parameter <em>has_spoiler</em> to the methods <a href="/bots/api#sendphoto">sendPhoto</a>, <a href="/bots/api#sendvideo">sendVideo</a>, and <a href="/bots/api#sendanimation">sendAnimation</a>.</li>
|
||||
<li>Added the field <em>has_spoiler</em> to the classes <a href="/bots/api#inputmediaphoto">InputMediaPhoto</a>, <a href="/bots/api#inputmediavideo">InputMediaVideo</a>, and <a href="/bots/api/bots/api#inputmediaanimation">InputMediaAnimation</a>.</li>
|
||||
<li>Added the field <em>has_media_spoiler</em> to the class <a href="/bots/api#message">Message</a>.</li>
|
||||
<li>The parameters <em>name</em> and <em>icon_custom_emoji_id</em> of the method <a href="/bots/api#editforumtopic">editForumTopic</a> are now optional. If they are omitted, the existing values are kept.</li>
|
||||
<li>Added the classes <a href="/bots/api#forumtopicedited">ForumTopicEdited</a>, <a href="/bots/api#generalforumtopichidden">GeneralForumTopicHidden</a>, <a href="/bots/api#generalforumtopicunhidden">GeneralForumTopicUnhidden</a>, and <a href="/bots/api#writeaccessallowed">WriteAccessAllowed</a> and the fields <em>forum_topic_edited</em>, <em>general_forum_topic_hidden</em>, <em>general_forum_topic_unhidden</em>, and <em>write_access_allowed</em> to the class <a href="/bots/api#message">Message</a>.</li>
|
||||
<li>Added the methods <a href="/bots/api#editgeneralforumtopic">editGeneralForumTopic</a>, <a href="/bots/api#closegeneralforumtopic">closeGeneralForumTopic</a>, <a href="/bots/api#reopengeneralforumtopic">reopenGeneralForumTopic</a>, <a href="/bots/api#hidegeneralforumtopic">hideGeneralForumTopic</a>, <a href="/bots/api#unhidegeneralforumtopic">unhideGeneralForumTopic</a> for managing the General topic in forums.</li>
|
||||
<li>Added the parameter <em>message_thread_id</em> to the method <a href="/bots/api#sendchataction">sendChatAction</a> for sending chat actions to a specific message thread or a forum topic.</li>
|
||||
<li>Added the field <em>has_hidden_members</em> to the class <a href="/bots/api#chat">Chat</a>. Note that the method <a href="/bots/api#getchatmember">getChatMember</a> is only guaranteed to work if the bot is an administrator in the chat.</li>
|
||||
<li>Added the field <em>has_aggressive_anti_spam_enabled</em> to the class <a href="/bots/api#chat">Chat</a>.</li>
|
||||
<li>Added Web App events <em>qrTextReceived</em> and <em>clipboardTextReceived</em>.</li>
|
||||
<li>Added the field <em>platform</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the methods <em>showScanQrPopup</em>, <em>closeScanQrPopup</em>, and <em>readTextFromClipboard</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the parameter <em>options</em> to the method <em>openLink</em> of the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="november-5-2022" href="#november-5-2022"><i class="anchor-icon"></i></a>November 5, 2022</h3>
|
||||
<p><strong>Bot API 6.3</strong></p>
|
||||
<ul>
|
||||
|
|
|
@ -53,6 +53,24 @@ To learn how to create…">
|
|||
<blockquote>
|
||||
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h4>
|
||||
<p><strong>Bot API 6.4</strong></p>
|
||||
<ul>
|
||||
<li>Added the field <em>is_persistent</em> to the class <a href="#replykeyboardmarkup">ReplyKeyboardMarkup</a>, allowing to control when the keyboard is shown.</li>
|
||||
<li>Added the parameter <em>has_spoiler</em> to the methods <a href="#sendphoto">sendPhoto</a>, <a href="#sendvideo">sendVideo</a>, and <a href="#sendanimation">sendAnimation</a>.</li>
|
||||
<li>Added the field <em>has_spoiler</em> to the classes <a href="#inputmediaphoto">InputMediaPhoto</a>, <a href="#inputmediavideo">InputMediaVideo</a>, and <a href="#inputmediaanimation">InputMediaAnimation</a>.</li>
|
||||
<li>Added the field <em>has_media_spoiler</em> to the class <a href="#message">Message</a>.</li>
|
||||
<li>The parameters <em>name</em> and <em>icon_custom_emoji_id</em> of the method <a href="#editforumtopic">editForumTopic</a> are now optional. If they are omitted, the existing values are kept.</li>
|
||||
<li>Added the classes <a href="#forumtopicedited">ForumTopicEdited</a>, <a href="#generalforumtopichidden">GeneralForumTopicHidden</a>, <a href="#generalforumtopicunhidden">GeneralForumTopicUnhidden</a>, and <a href="#writeaccessallowed">WriteAccessAllowed</a> and the fields <em>forum_topic_edited</em>, <em>general_forum_topic_hidden</em>, <em>general_forum_topic_unhidden</em>, and <em>write_access_allowed</em> to the class <a href="#message">Message</a>.</li>
|
||||
<li>Added the methods <a href="#editgeneralforumtopic">editGeneralForumTopic</a>, <a href="#closegeneralforumtopic">closeGeneralForumTopic</a>, <a href="#reopengeneralforumtopic">reopenGeneralForumTopic</a>, <a href="#hidegeneralforumtopic">hideGeneralForumTopic</a>, <a href="#unhidegeneralforumtopic">unhideGeneralForumTopic</a> for managing the General topic in forums.</li>
|
||||
<li>Added the parameter <em>message_thread_id</em> to the method <a href="#sendchataction">sendChatAction</a> for sending chat actions to a specific message thread or a forum topic.</li>
|
||||
<li>Added the field <em>has_hidden_members</em> to the class <a href="#chat">Chat</a>. Note that the method <a href="#getchatmember">getChatMember</a> is only guaranteed to work if the bot is an administrator in the chat.</li>
|
||||
<li>Added the field <em>has_aggressive_anti_spam_enabled</em> to the class <a href="#chat">Chat</a>.</li>
|
||||
<li>Added Web App events <em>qrTextReceived</em> and <em>clipboardTextReceived</em>.</li>
|
||||
<li>Added the field <em>platform</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the methods <em>showScanQrPopup</em>, <em>closeScanQrPopup</em>, and <em>readTextFromClipboard</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
<li>Added the parameter <em>options</em> to the method <em>openLink</em> of the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" name="november-5-2022" href="#november-5-2022"><i class="anchor-icon"></i></a>November 5, 2022</h4>
|
||||
<p><strong>Bot API 6.3</strong></p>
|
||||
<ul>
|
||||
|
@ -655,6 +673,16 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in <a href="#getchat">getChat</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_aggressive_anti_spam_enabled</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in <a href="#getchat">getChat</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_hidden_members</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if non-administrators can only get the list of bots and administrators in the chat. Returned only in <a href="#getchat">getChat</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_protected_content</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if messages from the chat can't be forwarded to other chats. Returned only in <a href="#getchat">getChat</a>.</td>
|
||||
|
@ -853,6 +881,11 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_media_spoiler</td>
|
||||
<td>True</td>
|
||||
<td><em>Optional</em>. <em>True</em>, if the message media is covered by a spoiler animation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>contact</td>
|
||||
<td><a href="#contact">Contact</a></td>
|
||||
<td><em>Optional</em>. Message is a shared contact, information about the contact</td>
|
||||
|
@ -958,6 +991,11 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. The domain name of the website on which the user has logged in. <a href="/widgets/login">More about Telegram Login »</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>write_access_allowed</td>
|
||||
<td><a href="#writeaccessallowed">WriteAccessAllowed</a></td>
|
||||
<td><em>Optional</em>. Service message: the user allowed the bot added to the attachment menu to write messages</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>passport_data</td>
|
||||
<td><a href="#passportdata">PassportData</a></td>
|
||||
<td><em>Optional</em>. Telegram Passport data</td>
|
||||
|
@ -973,6 +1011,11 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. Service message: forum topic created</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>forum_topic_edited</td>
|
||||
<td><a href="#forumtopicedited">ForumTopicEdited</a></td>
|
||||
<td><em>Optional</em>. Service message: forum topic edited</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>forum_topic_closed</td>
|
||||
<td><a href="#forumtopicclosed">ForumTopicClosed</a></td>
|
||||
<td><em>Optional</em>. Service message: forum topic closed</td>
|
||||
|
@ -983,6 +1026,16 @@ To learn how to create…">
|
|||
<td><em>Optional</em>. Service message: forum topic reopened</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>general_forum_topic_hidden</td>
|
||||
<td><a href="#generalforumtopichidden">GeneralForumTopicHidden</a></td>
|
||||
<td><em>Optional</em>. Service message: the 'General' forum topic hidden</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>general_forum_topic_unhidden</td>
|
||||
<td><a href="#generalforumtopicunhidden">GeneralForumTopicUnhidden</a></td>
|
||||
<td><em>Optional</em>. Service message: the 'General' forum topic unhidden</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>video_chat_scheduled</td>
|
||||
<td><a href="#videochatscheduled">VideoChatScheduled</a></td>
|
||||
<td><em>Optional</em>. Service message: video chat scheduled</td>
|
||||
|
@ -1796,8 +1849,37 @@ To learn how to create…">
|
|||
</table>
|
||||
<h4><a class="anchor" name="forumtopicclosed" href="#forumtopicclosed"><i class="anchor-icon"></i></a>ForumTopicClosed</h4>
|
||||
<p>This object represents a service message about a forum topic closed in the chat. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="forumtopicedited" href="#forumtopicedited"><i class="anchor-icon"></i></a>ForumTopicEdited</h4>
|
||||
<p>This object represents a service message about an edited forum topic.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Field</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. New name of the topic, if it was edited</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>icon_custom_emoji_id</td>
|
||||
<td>String</td>
|
||||
<td><em>Optional</em>. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="forumtopicreopened" href="#forumtopicreopened"><i class="anchor-icon"></i></a>ForumTopicReopened</h4>
|
||||
<p>This object represents a service message about a forum topic reopened in the chat. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="generalforumtopichidden" href="#generalforumtopichidden"><i class="anchor-icon"></i></a>GeneralForumTopicHidden</h4>
|
||||
<p>This object represents a service message about General forum topic hidden in the chat. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="generalforumtopicunhidden" href="#generalforumtopicunhidden"><i class="anchor-icon"></i></a>GeneralForumTopicUnhidden</h4>
|
||||
<p>This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="writeaccessallowed" href="#writeaccessallowed"><i class="anchor-icon"></i></a>WriteAccessAllowed</h4>
|
||||
<p>This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.</p>
|
||||
<h4><a class="anchor" name="videochatscheduled" href="#videochatscheduled"><i class="anchor-icon"></i></a>VideoChatScheduled</h4>
|
||||
<p>This object represents a service message about a video chat scheduled in the chat.</p>
|
||||
<table class="table">
|
||||
|
@ -1948,6 +2030,11 @@ To learn how to create…">
|
|||
<td>Array of button rows, each represented by an Array of <a href="#keyboardbutton">KeyboardButton</a> objects</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>is_persistent</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to <em>false</em>, in which case the custom keyboard can be hidden and opened with a keyboard icon.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>resize_keyboard</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to <em>false</em>, in which case the custom keyboard is always of the same height as the app's standard keyboard.</td>
|
||||
|
@ -3247,6 +3334,11 @@ To learn how to create…">
|
|||
<td>Array of <a href="#messageentity">MessageEntity</a></td>
|
||||
<td><em>Optional</em>. List of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="inputmediavideo" href="#inputmediavideo"><i class="anchor-icon"></i></a>InputMediaVideo</h4>
|
||||
|
@ -3310,6 +3402,11 @@ To learn how to create…">
|
|||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Pass <em>True</em> if the uploaded video is suitable for streaming</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="inputmediaanimation" href="#inputmediaanimation"><i class="anchor-icon"></i></a>InputMediaAnimation</h4>
|
||||
|
@ -3368,6 +3465,11 @@ To learn how to create…">
|
|||
<td>Integer</td>
|
||||
<td><em>Optional</em>. Animation duration in seconds</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td><em>Optional</em>. Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="inputmediaaudio" href="#inputmediaaudio"><i class="anchor-icon"></i></a>InputMediaAudio</h4>
|
||||
|
@ -3593,7 +3695,7 @@ To learn how to create…">
|
|||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="formatting-options" href="#formatting-options"><i class="anchor-icon"></i></a>Formatting options</h4>
|
||||
<p>The Bot API supports basic formatting for messages. You can use bold, italic, underlined, strikethrough, and spoiler text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can use either markdown-style or HTML-style formatting.</p>
|
||||
<p>The Bot API supports basic formatting for messages. You can use bold, italic, underlined, strikethrough, and spoiler text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can specify text entities directly, or use markdown-style or HTML-style formatting.</p>
|
||||
<p>Note that Telegram clients will display an <strong>alert</strong> to the user before opening an inline link ('Open this link?' together with the full URL).</p>
|
||||
<p>Message entities can be nested, providing following restrictions are met:<br>- If two entities have common characters, then one of them is fully contained inside another.<br>- <em>bold</em>, <em>italic</em>, <em>underline</em>, <em>strikethrough</em>, and <em>spoiler</em> entities can contain and can be part of any other entities, except <em>pre</em> and <em>code</em>.<br>- All other entities can't contain each other.</p>
|
||||
<p>Links <code>tg://user?id=<user_id></code> can be used to mention a user by their ID without using a username. Please note:</p>
|
||||
|
@ -3853,6 +3955,12 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<td>A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
<td>Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>disable_notification</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
|
@ -4154,6 +4262,12 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<td>A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
<td>Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>supports_streaming</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
|
@ -4264,6 +4378,12 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<td>A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>has_spoiler</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
<td>Pass <em>True</em> if the photo needs to be covered with a spoiler animation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>disable_notification</td>
|
||||
<td>Boolean</td>
|
||||
<td>Optional</td>
|
||||
|
@ -5112,6 +5232,12 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>message_thread_id</td>
|
||||
<td>Integer</td>
|
||||
<td>Optional</td>
|
||||
<td>Unique identifier for the target message thread; supergroups only</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>action</td>
|
||||
<td>String</td>
|
||||
<td>Yes</td>
|
||||
|
@ -5940,7 +6066,7 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="getchatmember" href="#getchatmember"><i class="anchor-icon"></i></a>getChatMember</h4>
|
||||
<p>Use this method to get information about a member of a chat. Returns a <a href="#chatmember">ChatMember</a> object on success.</p>
|
||||
<p>Use this method to get information about a member of a chat. The method is guaranteed to work only if the bot is an administrator in the chat. Returns a <a href="#chatmember">ChatMember</a> object on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -6078,14 +6204,14 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
<td>Yes</td>
|
||||
<td>New topic name, 1-128 characters</td>
|
||||
<td>Optional</td>
|
||||
<td>New topic name, 0-128 characters. If not specififed or empty, the current name of the topic will be kept</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>icon_custom_emoji_id</td>
|
||||
<td>String</td>
|
||||
<td>Yes</td>
|
||||
<td>New unique identifier of the custom emoji shown as the topic icon. Use <a href="#getforumtopiciconstickers">getForumTopicIconStickers</a> to get all allowed custom emoji identifiers.</td>
|
||||
<td>Optional</td>
|
||||
<td>New unique identifier of the custom emoji shown as the topic icon. Use <a href="#getforumtopiciconstickers">getForumTopicIconStickers</a> to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -6193,6 +6319,112 @@ pre-formatted fixed-width code block written in the Python programming language
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="editgeneralforumtopic" href="#editgeneralforumtopic"><i class="anchor-icon"></i></a>editGeneralForumTopic</h4>
|
||||
<p>Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have <em>can_manage_topics</em> administrator rights. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
<td>Yes</td>
|
||||
<td>New topic name, 1-128 characters</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="closegeneralforumtopic" href="#closegeneralforumtopic"><i class="anchor-icon"></i></a>closeGeneralForumTopic</h4>
|
||||
<p>Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="reopengeneralforumtopic" href="#reopengeneralforumtopic"><i class="anchor-icon"></i></a>reopenGeneralForumTopic</h4>
|
||||
<p>Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. The topic will be automatically unhidden if it was hidden. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="hidegeneralforumtopic" href="#hidegeneralforumtopic"><i class="anchor-icon"></i></a>hideGeneralForumTopic</h4>
|
||||
<p>Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. The topic will be automatically closed if it was open. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="unhidegeneralforumtopic" href="#unhidegeneralforumtopic"><i class="anchor-icon"></i></a>unhideGeneralForumTopic</h4>
|
||||
<p>Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. Returns <em>True</em> on success.</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>chat_id</td>
|
||||
<td>Integer or String</td>
|
||||
<td>Yes</td>
|
||||
<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" name="answercallbackquery" href="#answercallbackquery"><i class="anchor-icon"></i></a>answerCallbackQuery</h4>
|
||||
<p>Use this method to send answers to callback queries sent from <a href="/bots/features#inline-keyboards">inline keyboards</a>. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, <em>True</em> is returned.</p>
|
||||
<blockquote>
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
<p>Find these packs and more in the <img class="icon" src="/file/464001185/1258c/nmnB-OxNkic.3215/454103137b0918b572" alt="Emoji"> <strong>emoji tab</strong> of your <img class="icon" src="/file/464001197/128f2/tWCI-lcUGug.2888/eba21ce9a2cb9ee89a" alt="Stickers"> <strong>sticker panel</strong>.</p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" name="more-interactive-emoji" href="#more-interactive-emoji"><i class="anchor-icon"></i></a>More Interactive Emoji</h3>
|
||||
<p>We keep expanding our universe of <a href="https://telegram.org/blog/chat-themes-interactive-emoji-read-receipts#interactive-emoji">interactive emoji</a>. To watch full-screen effects in sync with your chat partner, send a single <img class="emoji" src="//telegram.org/img/emoji/40/F09F8E85.png" width="20" height="20" alt="🎅" /><img class="emoji" src="//telegram.org/img/emoji/40/F09F8E84.png" width="20" height="20" alt="🎄" /><img class="emoji" src="//telegram.org/img/emoji/40/F09FA4AA.png" width="20" height="20" alt="🤪" /><img class="emoji" src="//telegram.org/img/emoji/40/F09F8692.png" width="20" height="20" alt="🆒" /><img class="emoji" src="//telegram.org/img/emoji/40/F09F97BF.png" width="20" height="20" alt="🗿" /><img class="emoji" src="//telegram.org/img/emoji/40/F09F998A.png" width="20" height="20" alt="🙊" /> in any <strong>1-on-1 chat</strong> and then tap on it.</p>
|
||||
<p>We keep expanding our universe of <a href="https://telegram.org/blog/chat-themes-interactive-emoji-read-receipts#interactive-emoji">interactive emoji</a>. To watch full-screen effects in sync with your chat partner, send a single <img class="emoji" src="//telegram.org/img/emoji/40/F09F8E85.png" width="20" height="20" alt="🎅" /><img class="emoji" src="//telegram.org/img/emoji/40/F09F8E84.png" width="20" height="20" alt="🎄" /><img class="emoji" src="//telegram.org/img/emoji/40/E29883.png" width="20" height="20" alt="☃️" /><img class="emoji" src="//telegram.org/img/emoji/40/F09F9285.png" width="20" height="20" alt="💅" /><img class="emoji" src="//telegram.org/img/emoji/40/F09F97BF.png" width="20" height="20" alt="🗿" /><img class="emoji" src="//telegram.org/img/emoji/40/F09F8692.png" width="20" height="20" alt="🆒" /><img class="emoji" src="//telegram.org/img/emoji/40/F09FA4AA.png" width="20" height="20" alt="🤪" /> in any <strong>1-on-1 chat</strong> and then tap on it.</p>
|
||||
<div class="blog_video_player_wrap" style="max-width: 600px; margin: 20px auto 20px;">
|
||||
<video class="blog_video_player tl_blog_vid_autoplay" onclick="videoTogglePlay(this)" autoplay loop controls muted poster="/file/464001896/10fb7/oSJDHBjfBCE.40967/310eed89a708d5f087" style="max-width: 600px;" title="Could be a bit early for 'Easter' Island..." alt="More Interactive Emoji">
|
||||
<source src="/file/464001340/10a5c/gqOZ27sZZ80.5548880.mp4/e322e2a16db29a7918" type="video/mp4">
|
||||
|
|
Loading…
Add table
Reference in a new issue