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
ffd73c3e04
commit
58bcd1ec77
10 changed files with 68 additions and 29 deletions
|
@ -161,7 +161,7 @@
|
|||
<li>Added <a href="/method/messages.getEmojiStatusGroups">messages.getEmojiStatusGroups</a> - Represents a list of <a href="/api/custom-emoji#emoji-categories">emoji categories</a>, to be used when selecting custom emojis to set as <a href="/api">custom emoji status</a>.</li>
|
||||
<li>Added <a href="/method/messages.getEmojiProfilePhotoGroups">messages.getEmojiProfilePhotoGroups</a> - Represents a list of <a href="/api/custom-emoji#emoji-categories">emoji categories</a>, to be used when selecting custom emojis to set as <a href="/api/files#sticker-profile-pictures">profile picture</a>.</li>
|
||||
<li>Added <a href="/method/messages.searchCustomEmoji">messages.searchCustomEmoji</a> - Look for <a href="/api/custom-emoji">custom emojis</a> associated to a UTF8 emoji</li>
|
||||
<li>Added <a href="/method/messages.togglePeerTranslations">messages.togglePeerTranslations</a> - Toggle <a href="/api/translation">real-time chat translation</a> for a certain chat</li>
|
||||
<li>Added <a href="/method/messages.togglePeerTranslations">messages.togglePeerTranslations</a> - Show or hide the <a href="/api/translation">real-time chat translation popup</a> for a certain chat</li>
|
||||
<li>Added <a href="/method/account.getAutoSaveSettings">account.getAutoSaveSettings</a> - Get autosave settings</li>
|
||||
<li>Added <a href="/method/account.saveAutoSaveSettings">account.saveAutoSaveSettings</a> - Modify autosave settings</li>
|
||||
<li>Added <a href="/method/account.deleteAutoSaveExceptions">account.deleteAutoSaveExceptions</a> - Clear all peer-specific autosave settings.</li>
|
||||
|
@ -1178,7 +1178,7 @@ Also, discussion group admins can now <a href="/api/discussion#requiring-users-t
|
|||
<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>
|
||||
<li>Added <a href="/method/messages.translateText">messages.translateText</a> - Translate a given text</li>
|
||||
<li>Added <a href="/method/messages.translateText">messages.translateText</a> - Translate a given text.</li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#new-constructors" id="new-constructors" name="new-constructors"><i class="anchor-icon"></i></a>New Constructors</h5>
|
||||
<ul>
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<title>Translation</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="">
|
||||
<meta property="og:title" content="Page not found">
|
||||
<meta property="description" content="Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.">
|
||||
<meta property="og:title" content="Translation">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="">
|
||||
<meta property="og:description" content="Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.">
|
||||
<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">
|
||||
|
@ -39,10 +39,36 @@
|
|||
<div class="container clearfix">
|
||||
<div class="dev_page">
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li></li></ul></div>
|
||||
<h1 id="dev_page_title">Page not found</h1>
|
||||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/api/translation" >Translation</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Translation</h1>
|
||||
|
||||
<div id="dev_page_content">The page has not been saved</div>
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p>Telegram allows translating chat messages: <a href="/api/premium">Telegram Premium</a> users may even enable real-time chat translation. </p>
|
||||
<pre><code><a href='/constructor/textWithEntities'>textWithEntities</a>#751f3146 text:<a href='/type/string'>string</a> entities:<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> = <a href='/type/TextWithEntities'>TextWithEntities</a>;
|
||||
|
||||
<a href='/constructor/messages.translateResult'>messages.translateResult</a>#33db32f8 result:<a href='/type/Vector%20t'>Vector</a><<a href='/type/TextWithEntities'>TextWithEntities</a>> = <a href='/type/messages.TranslatedText'>messages.TranslatedText</a>;
|
||||
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.translateText'>messages.translateText</a>#63183030 flags:<a href='/type/%23'>#</a> peer:flags.0?<a href='/type/InputPeer'>InputPeer</a> id:flags.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/int'>int</a>> text:flags.1?<a href='/type/Vector%20t'>Vector</a><<a href='/type/TextWithEntities'>TextWithEntities</a>> to_lang:<a href='/type/string'>string</a> = <a href='/type/messages.TranslatedText'>messages.TranslatedText</a>;</code></pre>
|
||||
<p><a href="/method/messages.translateText">messages.translateText</a> can be used to translate a list of chat messages (by populating the <code>peer</code> and <code>id</code> flags), or a generic list of messages (by populating the <code>text</code> flag, for example when translating instant view articles). </p>
|
||||
<p>The method will return a vector of <a href="/constructor/textWithEntities">textWithEntities</a> constructors, containing the translated text, and, only for <a href="/api/premium">Telegram Premium</a> users, the corresponding <a href="/api/entities">styled text entities</a> (i.e. correctly repositioned <strong>bold</strong>, <em>italic</em>, link entities for the translated message, corresponding to the same entities in the original message). </p>
|
||||
<h3><a class="anchor" href="#real-time-translation" id="real-time-translation" name="real-time-translation"><i class="anchor-icon"></i></a>Real-time translation</h3>
|
||||
<pre><code><a href='/constructor/userFull'>userFull</a>#f8d32aed flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> = <a href='/type/UserFull'>UserFull</a>;
|
||||
|
||||
<a href='/constructor/chatFull'>chatFull</a>#c9d31138 flags:<a href='/type/%23'>#</a> can_set_username:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.8?<a href='/constructor/true'>true</a> translations_disabled:flags.19?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants:<a href='/type/ChatParticipants'>ChatParticipants</a> chat_photo:flags.2?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.13?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> pinned_msg_id:flags.6?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> call:flags.12?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.14?<a href='/type/int'>int</a> groupcall_default_join_as:flags.15?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.16?<a href='/type/string'>string</a> requests_pending:flags.17?<a href='/type/int'>int</a> recent_requesters:flags.17?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> available_reactions:flags.18?<a href='/type/ChatReactions'>ChatReactions</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
<a href='/constructor/channelFull'>channelFull</a>#f2355507 flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.togglePeerTranslations'>messages.togglePeerTranslations</a>#e47cb579 flags:<a href='/type/%23'>#</a> disabled:flags.0?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Bool'>Bool</a>;</code></pre>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users may also enable real-time chat translation.<br>
|
||||
If the currently logged in account is a Premium account, and the <code>translations_disabled</code> flag of <a href="/constructor/userFull">userFull</a>, <a href="/constructor/chatFull">chatFull</a>, <a href="/constructor/channelFull">channelFull</a> is <strong>not</strong> set, the client should run a local language recognition model for all messages received from private chats (not secret chats), chats and channels, and if a language different from the current user's language is detected for the majority of messages, a popup should be displayed to the user, offering to enable real-time chat translation. </p>
|
||||
<p>If the user dismisses the autotranslation popup, invoke <a href="/method/messages.togglePeerTranslations">messages.togglePeerTranslations</a> with the <code>disabled</code> flag set: this will set the <code>translations_disabled</code> flag in the corresponding full info constructor, signaling to the other sessions that the autotranslation popup should not be displayed. </p>
|
||||
<p>If the user enables autotranslation, store the preference locally and invoke <a href="/method/messages.translateText">messages.translateText</a> for every received message, preferrably batching requests by specifying multiple message IDs in <code>id</code>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -109,8 +135,11 @@
|
|||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?47"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js?1"></script>
|
||||
|
||||
<script>window.initDevPageNav&&initDevPageNav();
|
||||
backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -134,7 +134,7 @@
|
|||
<tr>
|
||||
<td><strong>translations_disabled</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags2</a>.3?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether <a href="/api/translation">real-time chat translation</a> is disabled.</td>
|
||||
<td>Whether the <a href="/api/translation">real-time chat translation popup</a> should be hidden.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
|
@ -323,6 +323,7 @@
|
|||
<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="#translation" id="translation" name="translation"><i class="anchor-icon"></i></a><a href="/api/translation">Translation</a></h4>
|
||||
<p>Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.</p>
|
||||
<h4><a class="anchor" href="#admin-banned-default-rights" id="admin-banned-default-rights" name="admin-banned-default-rights"><i class="anchor-icon"></i></a><a href="/api/rights">Admin, banned, default rights</a></h4>
|
||||
<p>How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.</p>
|
||||
<h4><a class="anchor" href="#channels-supergroups-gigagroups-and-basic-groups" id="channels-supergroups-gigagroups-and-basic-groups" name="channels-supergroups-gigagroups-and-basic-groups"><i class="anchor-icon"></i></a><a href="/api/channel">Channels, supergroups, gigagroups and basic groups</a></h4>
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
<tr>
|
||||
<td><strong>translations_disabled</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.19?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether <a href="/api/translation">real-time chat translation</a> is disabled.</td>
|
||||
<td>Whether the <a href="/api/translation">real-time chat translation popup</a> should be hidden.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
|
@ -174,6 +174,7 @@
|
|||
<h4><a class="anchor" href="#scheduled-messages" id="scheduled-messages" name="scheduled-messages"><i class="anchor-icon"></i></a><a href="/api/scheduled-messages">Scheduled messages</a></h4>
|
||||
<p>Telegram allows scheduling messages</p>
|
||||
<h4><a class="anchor" href="#translation" id="translation" name="translation"><i class="anchor-icon"></i></a><a href="/api/translation">Translation</a></h4>
|
||||
<p>Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.</p>
|
||||
<h4><a class="anchor" href="#pinned-messages" id="pinned-messages" name="pinned-messages"><i class="anchor-icon"></i></a><a href="/api/pin">Pinned messages</a></h4>
|
||||
<p>Telegram allows pinning multiple messages on top of a specific chat.</p>
|
||||
<h4><a class="anchor" href="#folders" id="folders" name="folders"><i class="anchor-icon"></i></a><a href="/api/folders">Folders</a></h4>
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
<tr>
|
||||
<td><strong>translations_disabled</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.23?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether the <a href="/api/translation">real-time chat translation popup</a> should be hidden.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
|
@ -203,6 +203,8 @@
|
|||
<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="#scheduled-messages" id="scheduled-messages" name="scheduled-messages"><i class="anchor-icon"></i></a><a href="/api/scheduled-messages">Scheduled messages</a></h4>
|
||||
<p>Telegram allows scheduling messages</p>
|
||||
<h4><a class="anchor" href="#translation" id="translation" name="translation"><i class="anchor-icon"></i></a><a href="/api/translation">Translation</a></h4>
|
||||
<p>Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.</p>
|
||||
<h4><a class="anchor" href="#pinned-messages" id="pinned-messages" name="pinned-messages"><i class="anchor-icon"></i></a><a href="/api/pin">Pinned messages</a></h4>
|
||||
<p>Telegram allows pinning multiple messages on top of a specific chat.</p>
|
||||
<h4><a class="anchor" href="#folders" id="folders" name="folders"><i class="anchor-icon"></i></a><a href="/api/folders">Folders</a></h4>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.togglePeerTranslations</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Toggle real-time chat translation for a certain chat">
|
||||
<meta property="description" content="Show or hide the real-time chat translation popup for a certain chat">
|
||||
<meta property="og:title" content="messages.togglePeerTranslations">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Toggle real-time chat translation for a certain chat">
|
||||
<meta property="og:description" content="Show or hide the real-time chat translation popup for a certain chat">
|
||||
<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">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/messages.togglePeerTranslations" >messages.togglePeerTranslations</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.togglePeerTranslations</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Toggle <a href="/api/translation">real-time chat translation</a> for a certain chat</p>
|
||||
<div id="dev_page_content"><p>Show or hide the <a href="/api/translation">real-time chat translation popup</a> for a certain chat</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -77,12 +77,12 @@
|
|||
<tr>
|
||||
<td><strong>disabled</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether to disable or enable real-time chat translation</td>
|
||||
<td>Whether to disable or enable the real-time chat translation popup</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputPeer">InputPeer</a></td>
|
||||
<td>Peer where to enable or disable real-time chat translation</td>
|
||||
<td>The peer</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -90,7 +90,8 @@
|
|||
<p><a href="/type/Bool">Bool</a></p>
|
||||
<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>
|
||||
<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="#translation" id="translation" name="translation"><i class="anchor-icon"></i></a><a href="/api/translation">Translation</a></h4></div>
|
||||
<h4><a class="anchor" href="#translation" id="translation" name="translation"><i class="anchor-icon"></i></a><a href="/api/translation">Translation</a></h4>
|
||||
<p>Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.translateText</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Translate a given text">
|
||||
<meta property="description" content="Translate a given text.">
|
||||
<meta property="og:title" content="messages.translateText">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Translate a given text">
|
||||
<meta property="og:description" content="Translate a given text.">
|
||||
<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">
|
||||
|
@ -42,7 +42,8 @@
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/messages.translateText" >messages.translateText</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.translateText</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Translate a given text</p>
|
||||
<div id="dev_page_content"><p>Translate a given text.</p>
|
||||
<p><a href="/api/entities">Styled text entities</a> will only be preserved for <a href="/api/premium">Telegram Premium</a> users.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -86,7 +87,7 @@
|
|||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/TextWithEntities">TextWithEntities</a>></td>
|
||||
<td>The text to translate</td>
|
||||
<td>A list of styled messages to translate</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>to_lang</strong></td>
|
||||
|
@ -128,7 +129,11 @@
|
|||
<td>The specified destination language is invalid.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</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="#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>
|
||||
<h4><a class="anchor" href="#telegram-premium" id="telegram-premium" name="telegram-premium"><i class="anchor-icon"></i></a><a href="/api/premium">Telegram Premium</a></h4></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1144,11 +1144,11 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/messages.translateText">messages.translateText</a></td>
|
||||
<td>Translate a given text</td>
|
||||
<td>Translate a given text.<br><br><a href="/api/entities">Styled text entities</a> will only be preserved for <a href="/api/premium">Telegram Premium</a> users.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/messages.togglePeerTranslations">messages.togglePeerTranslations</a></td>
|
||||
<td>Toggle <a href="/api/translation">real-time chat translation</a> for a certain chat</td>
|
||||
<td>Show or hide the <a href="/api/translation">real-time chat translation popup</a> for a certain chat</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -756,7 +756,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/messages.togglePeerTranslations">messages.togglePeerTranslations</a></td>
|
||||
<td>Toggle <a href="/api/translation">real-time chat translation</a> for a certain chat</td>
|
||||
<td>Show or hide the <a href="/api/translation">real-time chat translation popup</a> for a certain chat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/account.saveAutoSaveSettings">account.saveAutoSaveSettings</a></td>
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/messages.translateText">messages.translateText</a></td>
|
||||
<td>Translate a given text</td>
|
||||
<td>Translate a given text.<br><br>Text formatting will only be preserved for <a href="/api/premium">Telegram Premium</a> users.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
Loading…
Reference in a new issue