mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-29 11:43:05 +01:00
1164 lines
239 KiB
HTML
1164 lines
239 KiB
HTML
<!DOCTYPE html>
|
|
<html class="">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Layers</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta property="description" content="API schema changelog">
|
|
<meta property="og:title" content="Layers">
|
|
<meta property="og:image" content="">
|
|
<meta property="og:description" content="API schema changelog">
|
|
<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">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
|
|
<link rel="alternate icon" href="/img/favicon.ico" type="image/x-icon" />
|
|
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
|
|
|
<link href="/css/telegram.css?241" rel="stylesheet" media="screen">
|
|
<style>
|
|
</style>
|
|
</head>
|
|
<body class="preload">
|
|
<div class="dev_page_wrap">
|
|
<div class="dev_page_head navbar navbar-static-top navbar-tg">
|
|
<div class="navbar-inner">
|
|
<div class="container clearfix">
|
|
<ul class="nav navbar-nav navbar-right hidden-xs"><li class="navbar-twitter"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i><span> Twitter</span></a></li></ul>
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="//telegram.org/">Home</a></li>
|
|
<li class="hidden-xs"><a href="//telegram.org/faq">FAQ</a></li>
|
|
<li class="hidden-xs"><a href="//telegram.org/apps">Apps</a></li>
|
|
<li class="active"><a href="/api">API</a></li>
|
|
<li class=""><a href="/mtproto">Protocol</a></li>
|
|
<li class=""><a href="/schema">Schema</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<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><a href="/api/layers" >Layers</a></li></ul></div>
|
|
<h1 id="dev_page_title">Layers</h1>
|
|
|
|
<div id="dev_page_content"><!-- scroll_nav -->
|
|
|
|
<p>Below you will find information on schema changes. For more details on the use of layers, see <a href="/api/invoking#layers">Invoking API methods</a>.</p>
|
|
<h3><a class="anchor" href="#layer-185" id="layer-185" name="layer-185"><i class="anchor-icon"></i></a><a href="/schema?layer=185">Layer 185</a></h3>
|
|
<p>Start reading the changelog at <a href="#layer-171">layer 171</a> to view all changes since the last refresh of the documentation.</p>
|
|
<p>The following detailed articles about <em>pre-existing</em> features were added:</p>
|
|
<ul>
|
|
<li><a href="/api/bots/ids">Bot API dialog IDs »</a></li>
|
|
<li><a href="/api/peers">Peer database »</a></li>
|
|
<li>Added documentation for <a href="/api/min">min merging logic</a> and <a href="/api/peers">peer cache invalidation logic</a>, including in the constructor pages for <a href="/constructor/user">user</a>s and <a href="/constructor/channel">channels/supergroups</a>.</li>
|
|
<li><a href="/api/gifs">Working with GIFs »</a></li>
|
|
<li><a href="/api/emoji-categories">Emoji categories »</a></li>
|
|
<li><a href="/api/profile">Profile page »</a></li>
|
|
<li><a href="/api/stickers#premium-animated-sticker-effects">Premium animated sticker effects »</a></li>
|
|
<li><a href="/api/stickers#special-stickers">Special stickers »</a></li>
|
|
<li><a href="/api/search#global-search">Global search »</a></li>
|
|
<li><a href="/api/srp#using-the-2fa-password">Using the 2FA password »</a></li>
|
|
<li>Added more details on how to use <a href="/api/top-rating">top peer ratings »</a></li>
|
|
<li>Added more details about the <a href="/api/push-updates#possible-notifications">READ_REACTION »</a>, <a href="/api/push-updates#possible-notifications">READ_STORIES »</a>, <a href="/api/push-updates#possible-notifications">STORY_DELETED »</a> push notifications.</li>
|
|
<li>Improved the <a href="/api/updates">updates</a> documentation, specifically:<ul>
|
|
<li>Clarified that <a href="/method/updates.getChannelDifference">updates.getChannelDifference</a> does <em>not</em> have to be invoked on startup for all channels, as it will be automatically triggered (only for channels that need catching up) by a set of <a href="/constructor/updateChannelTooLong">updateChannelTooLong</a> updates that will be returned by <a href="/method/updates.getDifference">updates.getDifference</a> (that <em>does</em> need to be called on startup).</li>
|
|
<li>Clarified that <a href="/api/updates#subscribing-to-updates-of-channels-supergroups">users should short-poll updates.getChannelDifference for currently opened channels/supergroups (including subscribed ones, max 10 overall) »</a>.</li>
|
|
<li>Clarified that <a href="/method/updates.getChannelDifference">updates.getChannelDifference</a> should not be short-polled via <code>timeout</code> by bots, or if the user is currently not viewing the channel/supergroup.</li>
|
|
<li>Clarified <a href="/api/updates#subscribing-to-updates">which updates may be accepted from not yet logged sessions »</a>.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Clarified that the <a href="/api/offsets#hash-generation">hash generation algorithm used for caching</a> uses the unsigned right shift operator and can also accept strings in the ID array.</li>
|
|
</ul>
|
|
<p>The following new features were added:</p>
|
|
<ul>
|
|
<li>Allow <a href="/api/bots/webapps">Mini Apps</a> to specify a browser to use when opening a link using <a href="/api/web-events#web-app-invoke-custom-method">web_app_invoke_custom_method.try_browser »</a>.</li>
|
|
<li>Added the <a href="/api/bots/webapps#theme-parameters"><code>section_separator_color</code> Mini Apps theme key »</a></li>
|
|
<li>Added support for <code>text</code> and <code>profile</code> parameters in <a href="/api/links#public-username-links">public username links »</a> and <a href="/api/links#phone-number-links">phone number links »</a>.</li>
|
|
</ul>
|
|
<p>The following new <a href="/api/config#client-configuration">client configuration keys »</a> were added:</p>
|
|
<ul>
|
|
<li><a href="/api/config#web-app-allowed-protocols">web_app_allowed_protocols »</a></li>
|
|
</ul>
|
|
<p>The following new <a href="/api/config#suggestions">suggestions »</a> were added:</p>
|
|
<ul>
|
|
<li><code>"PREMIUM_CHRISTMAS"</code> - Suggests the user to <a href="/api/premium#gifting-telegram-premium">gift Telegram Premium</a> subscriptions to friends for Christmas.</li>
|
|
<li><code>"PREMIUM_GRACE"</code> - Suggests the user to extend their expiring Telegram Premium subscription</li>
|
|
</ul>
|
|
<p>This layer introduces the following features:</p>
|
|
<ul>
|
|
<li><a href="/api/stories#weather">Weather media areas »</a></li>
|
|
<li><a href="/api/stars#buying-or-gifting-stars">Telegram Star gifts »</a></li>
|
|
<li><a href="/api/bots/webapps#main-mini-apps">Main Mini Apps »</a></li>
|
|
<li><a href="/api/bots/webapps#main-mini-app-previews">Main Mini App previews »</a></li>
|
|
<li><a href="/api/search#apps-tab">Mini App Store »</a></li>
|
|
<li><a href="/api/links#ton-sites">TON sites »</a></li>
|
|
<li>Mini App deep links were removed and replaced with <a href="/api/links#main-mini-app-links">Main Mini App deep links »</a>: (i.e. the syntax of Main Mini App links is equal to the one previously used for Mini App links, but the handling logic has changed).<br>
|
|
This also deprecates the <code>start_param</code> and <code>compact</code> parameters of <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a> (replaced by <a href="/method/messages.requestMainWebView">messages.requestMainWebView</a>).</li>
|
|
<li>Allow specifying the exact frame to use for video thumbnails/static previews through the new <a href="/constructor/documentAttributeVideo">documentAttributeVideo</a>.<code>video_start_ts</code> parameter (especially useful for stories).<br>
|
|
The <code>video_start_ts</code> attribute may also be <a href="/api/stories#editing-stories">edited using a new, special editing flow that does not require reuploading the entire story »</a>.</li>
|
|
</ul>
|
|
<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/payments.getStarsGiftOptions">payments.getStarsGiftOptions</a> - Obtain a list of <a href="/api/stars#buying-or-gifting-stars">Telegram Stars gift options »</a> as <a href="/constructor/starsGiftOption">starsGiftOption</a> constructors.</li>
|
|
<li>Added <a href="/method/bots.getPopularAppBots">bots.getPopularAppBots</a> - Fetch popular <a href="/api/bots/webapps#main-mini-apps">Main Mini Apps</a>, to be used in the <a href="/api/search#apps-tab">apps tab of global search »</a>.</li>
|
|
<li>Added <a href="/method/bots.addPreviewMedia">bots.addPreviewMedia</a> - Add a <a href="/api/bots/webapps#main-mini-app-previews">main mini app preview, see here »</a> for more info.</li>
|
|
<li>Added <a href="/method/bots.editPreviewMedia">bots.editPreviewMedia</a> - Edit a <a href="/api/bots/webapps#main-mini-app-previews">main mini app preview, see here »</a> for more info.</li>
|
|
<li>Added <a href="/method/bots.deletePreviewMedia">bots.deletePreviewMedia</a> - Delete a <a href="/api/bots/webapps#main-mini-app-previews">main mini app preview, see here »</a> for more info.</li>
|
|
<li>Added <a href="/method/bots.reorderPreviewMedias">bots.reorderPreviewMedias</a> - Reorder a <a href="/api/bots/webapps#main-mini-app-previews">main mini app previews, see here »</a> for more info.</li>
|
|
<li>Added <a href="/method/bots.getPreviewInfo">bots.getPreviewInfo</a> - Bot owners only, fetch <a href="/api/bots/webapps#main-mini-app-previews">main mini app preview information, see here »</a> for more info.</li>
|
|
<li>Added <a href="/method/bots.getPreviewMedias">bots.getPreviewMedias</a> - Fetch <a href="/api/bots/webapps#main-mini-app-previews">main mini app previews, see here »</a> for more info.</li>
|
|
<li>Added <a href="/method/messages.requestMainWebView">messages.requestMainWebView</a> - Open a <a href="/api/bots/webapps#main-mini-apps">Main Mini App</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Added <strong>bots_app</strong> parameter in <a href="/method/contacts.getTopPeers">contacts.getTopPeers</a></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>
|
|
<li>Added <a href="/constructor/inputStorePaymentStarsTopup">inputStorePaymentStarsTopup</a> - Used to top up the <a href="/api/stars">Telegram Stars balance</a> of the current account.</li>
|
|
<li>Added <a href="/constructor/inputStorePaymentStarsGift">inputStorePaymentStarsGift</a> - Used to gift <a href="/api/stars">Telegram Stars</a> to a friend.</li>
|
|
<li>Added <a href="/constructor/starsGiftOption">starsGiftOption</a> - <a href="/api/stars#buying-or-gifting-stars">Telegram Stars gift option</a>.</li>
|
|
<li>Added <a href="/constructor/messageActionGiftStars">messageActionGiftStars</a> - You gifted or were gifted some <a href="/api/stars">Telegram Stars</a>.</li>
|
|
<li>Added <a href="/constructor/topPeerCategoryBotsApp">topPeerCategoryBotsApp</a> - Most frequently used <a href="/api/bots/webapps#main-mini-apps">Main Mini Bot Apps</a>.</li>
|
|
<li>Added <a href="/constructor/bots.popularAppBots">bots.popularAppBots</a> - Popular <a href="/api/bots/webapps#main-mini-apps">Main Mini Apps</a>, to be used in the <a href="/api/search#apps-tab">apps tab of global search »</a>.</li>
|
|
<li>Added <a href="/constructor/botPreviewMedia">botPreviewMedia</a> - Represents a <a href="/api/bots/webapps#main-mini-app-previews">Main Mini App preview media, see here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/bots.previewInfo">bots.previewInfo</a> - Contains info about <a href="/api/bots/webapps#main-mini-app-previews">Main Mini App previews, see here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/mediaAreaWeather">mediaAreaWeather</a> - Represents a <a href="/api/stories#weather">weather widget »</a>.</li>
|
|
<li>Added <a href="/constructor/inputFileStoryDocument">inputFileStoryDocument</a> - Used to <a href="/api/stories#editing-stories">edit the thumbnail/static preview of a story, see here »</a> for more info on the full flow.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>video_start_ts</strong> parameter in <a href="/constructor/documentAttributeVideo">documentAttributeVideo</a></li>
|
|
<li>Added <strong>bot_has_main_app</strong>, <strong>bot_active_users</strong> parameters in <a href="/constructor/user">user</a></li>
|
|
<li>Added <strong>has_preview_medias</strong> parameter in <a href="/constructor/botInfo">botInfo</a></li>
|
|
<li>Added <strong>purpose</strong> parameter, removed <strong>option</strong> parameter in <a href="/constructor/inputInvoiceStars">inputInvoiceStars</a></li>
|
|
<li>Added <strong>gift</strong> parameter in <a href="/constructor/starsTransaction">starsTransaction</a></li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#deleted-constructors" id="deleted-constructors" name="deleted-constructors"><i class="anchor-icon"></i></a>Deleted Constructors</h5>
|
|
<ul>
|
|
<li>Removed inputStorePaymentStars</li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/documentAttributeVideo">documentAttributeVideo</a>#17399fad flags:<a href="/type/%23">#</a> round_message:flags.0?<a href="/constructor/true">true</a> supports_streaming:flags.1?<a href="/constructor/true">true</a> nosound:flags.3?<a href="/constructor/true">true</a> duration:<a href="/type/double">double</a> w:<a href="/type/int">int</a> h:<a href="/type/int">int</a> preload_prefix_size:flags.2?<a href="/type/int">int</a> video_start_ts:flags.4?<a href="/type/double">double</a> = <a href="/type/DocumentAttribute">DocumentAttribute</a>;<br>
|
|
<a href="/constructor/user">user</a>#83314fca flags:<a href="/type/%23">#</a> self:flags.10?<a href="/constructor/true">true</a> contact:flags.11?<a href="/constructor/true">true</a> mutual_contact:flags.12?<a href="/constructor/true">true</a> deleted:flags.13?<a href="/constructor/true">true</a> bot:flags.14?<a href="/constructor/true">true</a> bot_chat_history:flags.15?<a href="/constructor/true">true</a> bot_nochats:flags.16?<a href="/constructor/true">true</a> verified:flags.17?<a href="/constructor/true">true</a> restricted:flags.18?<a href="/constructor/true">true</a> min:flags.20?<a href="/constructor/true">true</a> bot_inline_geo:flags.21?<a href="/constructor/true">true</a> support:flags.23?<a href="/constructor/true">true</a> scam:flags.24?<a href="/constructor/true">true</a> apply_min_photo:flags.25?<a href="/constructor/true">true</a> fake:flags.26?<a href="/constructor/true">true</a> bot_attach_menu:flags.27?<a href="/constructor/true">true</a> premium:flags.28?<a href="/constructor/true">true</a> attach_menu_enabled:flags.29?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> bot_can_edit:flags2.1?<a href="/constructor/true">true</a> close_friend:flags2.2?<a href="/constructor/true">true</a> stories_hidden:flags2.3?<a href="/constructor/true">true</a> stories_unavailable:flags2.4?<a href="/constructor/true">true</a> contact_require_premium:flags2.10?<a href="/constructor/true">true</a> bot_business:flags2.11?<a href="/constructor/true">true</a> bot_has_main_app:flags2.13?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> access_hash:flags.0?<a href="/type/long">long</a> first_name:flags.1?<a href="/type/string">string</a> last_name:flags.2?<a href="/type/string">string</a> username:flags.3?<a href="/type/string">string</a> phone:flags.4?<a href="/type/string">string</a> photo:flags.5?<a href="/type/UserProfilePhoto">UserProfilePhoto</a> status:flags.6?<a href="/type/UserStatus">UserStatus</a> bot_info_version:flags.14?<a href="/type/int">int</a> restriction_reason:flags.18?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href="/type/string">string</a> lang_code:flags.22?<a href="/type/string">string</a> emoji_status:flags.30?<a href="/type/EmojiStatus">EmojiStatus</a> usernames:flags2.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/Username">Username</a>> stories_max_id:flags2.5?<a href="/type/int">int</a> color:flags2.8?<a href="/type/PeerColor">PeerColor</a> profile_color:flags2.9?<a href="/type/PeerColor">PeerColor</a> bot_active_users:flags2.12?<a href="/type/int">int</a> = <a href="/type/User">User</a>;<br>
|
|
<a href="/constructor/botInfo">botInfo</a>#8f300b57 flags:<a href="/type/%23">#</a> has_preview_medias:flags.6?<a href="/constructor/true">true</a> user_id:flags.0?<a href="/type/long">long</a> description:flags.1?<a href="/type/string">string</a> description_photo:flags.4?<a href="/type/Photo">Photo</a> description_document:flags.5?<a href="/type/Document">Document</a> commands:flags.2?<a href="/type/Vector%20t">Vector</a><<a href="/type/BotCommand">BotCommand</a>> menu_button:flags.3?<a href="/type/BotMenuButton">BotMenuButton</a> = <a href="/type/BotInfo">BotInfo</a>;<br>
|
|
<a href="/constructor/inputInvoiceStars">inputInvoiceStars</a>#65f00ce3 purpose:<a href="/type/InputStorePaymentPurpose">InputStorePaymentPurpose</a> = <a href="/type/InputInvoice">InputInvoice</a>;<br>
|
|
<a href="/constructor/starsTransaction">starsTransaction</a>#2db5418f flags:<a href="/type/%23">#</a> refund:flags.3?<a href="/constructor/true">true</a> pending:flags.4?<a href="/constructor/true">true</a> failed:flags.6?<a href="/constructor/true">true</a> gift:flags.10?<a href="/constructor/true">true</a> id:<a href="/type/string">string</a> stars:<a href="/type/long">long</a> date:<a href="/type/int">int</a> peer:<a href="/type/StarsTransactionPeer">StarsTransactionPeer</a> title:flags.0?<a href="/type/string">string</a> description:flags.1?<a href="/type/string">string</a> photo:flags.2?<a href="/type/WebDocument">WebDocument</a> transaction_date:flags.5?<a href="/type/int">int</a> transaction_url:flags.5?<a href="/type/string">string</a> bot_payload:flags.7?<a href="/type/bytes">bytes</a> msg_id:flags.8?<a href="/type/int">int</a> extended_media:flags.9?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageMedia">MessageMedia</a>> = <a href="/type/StarsTransaction">StarsTransaction</a>;<br>
|
|
<a href="/constructor/inputStorePaymentStarsTopup">inputStorePaymentStarsTopup</a>#dddd0f56 stars:<a href="/type/long">long</a> currency:<a href="/type/string">string</a> amount:<a href="/type/long">long</a> = <a href="/type/InputStorePaymentPurpose">InputStorePaymentPurpose</a>;
|
|
<a href="/constructor/inputStorePaymentStarsGift">inputStorePaymentStarsGift</a>#1d741ef7 user_id:<a href="/type/InputUser">InputUser</a> stars:<a href="/type/long">long</a> currency:<a href="/type/string">string</a> amount:<a href="/type/long">long</a> = <a href="/type/InputStorePaymentPurpose">InputStorePaymentPurpose</a>;<br>
|
|
<a href="/constructor/starsGiftOption">starsGiftOption</a>#5e0589f1 flags:<a href="/type/%23">#</a> extended:flags.1?<a href="/constructor/true">true</a> stars:<a href="/type/long">long</a> store_product:flags.0?<a href="/type/string">string</a> currency:<a href="/type/string">string</a> amount:<a href="/type/long">long</a> = <a href="/type/StarsGiftOption">StarsGiftOption</a>;<br>
|
|
<a href="/constructor/messageActionGiftStars">messageActionGiftStars</a>#45d5b021 flags:<a href="/type/%23">#</a> currency:<a href="/type/string">string</a> amount:<a href="/type/long">long</a> stars:<a href="/type/long">long</a> crypto_currency:flags.0?<a href="/type/string">string</a> crypto_amount:flags.0?<a href="/type/long">long</a> transaction_id:flags.1?<a href="/type/string">string</a> = <a href="/type/MessageAction">MessageAction</a>;<br>
|
|
<a href="/constructor/topPeerCategoryBotsApp">topPeerCategoryBotsApp</a>#fd9e7bec = <a href="/type/TopPeerCategory">TopPeerCategory</a>;<br>
|
|
<a href="/constructor/bots.popularAppBots">bots.popularAppBots</a>#1991b13b flags:<a href="/type/%23">#</a> next_offset:flags.0?<a href="/type/string">string</a> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/bots.PopularAppBots">bots.PopularAppBots</a>;
|
|
<a href="/constructor/botPreviewMedia">botPreviewMedia</a>#23e91ba3 date:<a href="/type/int">int</a> media:<a href="/type/MessageMedia">MessageMedia</a> = <a href="/type/BotPreviewMedia">BotPreviewMedia</a>;
|
|
<a href="/constructor/bots.previewInfo">bots.previewInfo</a>#0ca71d64 media:<a href="/type/Vector%20t">Vector</a><<a href="/type/BotPreviewMedia">BotPreviewMedia</a>> lang_codes:<a href="/type/Vector%20t">Vector</a><<a href="/type/string">string</a>> = <a href="/type/bots.PreviewInfo">bots.PreviewInfo</a>;<br>
|
|
<a href="/constructor/mediaAreaWeather">mediaAreaWeather</a>#49a6549c coordinates:<a href="/type/MediaAreaCoordinates">MediaAreaCoordinates</a> emoji:<a href="/type/string">string</a> temperature_c:<a href="/type/double">double</a> color:<a href="/type/int">int</a> = <a href="/type/MediaArea">MediaArea</a>;<br>
|
|
<a href="/constructor/inputFileStoryDocument">inputFileStoryDocument</a>#62dc8b48 id:<a href="/type/InputDocument">InputDocument</a> = <a href="/type/InputFile">InputFile</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/contacts.getTopPeers">contacts.getTopPeers</a>#973478b6 flags:<a href="/type/%23">#</a> correspondents:flags.0?<a href="/constructor/true">true</a> bots_pm:flags.1?<a href="/constructor/true">true</a> bots_inline:flags.2?<a href="/constructor/true">true</a> phone_calls:flags.3?<a href="/constructor/true">true</a> forward_users:flags.4?<a href="/constructor/true">true</a> forward_chats:flags.5?<a href="/constructor/true">true</a> groups:flags.10?<a href="/constructor/true">true</a> channels:flags.15?<a href="/constructor/true">true</a> bots_app:flags.16?<a href="/constructor/true">true</a> offset:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> hash:<a href="/type/long">long</a> = <a href="/type/contacts.TopPeers">contacts.TopPeers</a>;<br>
|
|
<a href="/method/payments.getStarsGiftOptions">payments.getStarsGiftOptions</a>#d3c96bc8 flags:<a href="/type/%23">#</a> user_id:flags.0?<a href="/type/InputUser">InputUser</a> = <a href="/type/Vector%20t">Vector</a><<a href="/type/StarsGiftOption">StarsGiftOption</a>>;<br>
|
|
<a href="/method/bots.getPopularAppBots">bots.getPopularAppBots</a>#c2510192 offset:<a href="/type/string">string</a> limit:<a href="/type/int">int</a> = <a href="/type/bots.PopularAppBots">bots.PopularAppBots</a>;
|
|
<a href="/method/bots.addPreviewMedia">bots.addPreviewMedia</a>#17aeb75a bot:<a href="/type/InputUser">InputUser</a> lang_code:<a href="/type/string">string</a> media:<a href="/type/InputMedia">InputMedia</a> = <a href="/type/BotPreviewMedia">BotPreviewMedia</a>;
|
|
<a href="/method/bots.editPreviewMedia">bots.editPreviewMedia</a>#8525606f bot:<a href="/type/InputUser">InputUser</a> lang_code:<a href="/type/string">string</a> media:<a href="/type/InputMedia">InputMedia</a> new_media:<a href="/type/InputMedia">InputMedia</a> = <a href="/type/BotPreviewMedia">BotPreviewMedia</a>;
|
|
<a href="/method/bots.deletePreviewMedia">bots.deletePreviewMedia</a>#2d0135b3 bot:<a href="/type/InputUser">InputUser</a> lang_code:<a href="/type/string">string</a> media:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputMedia">InputMedia</a>> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/bots.reorderPreviewMedias">bots.reorderPreviewMedias</a>#b627f3aa bot:<a href="/type/InputUser">InputUser</a> lang_code:<a href="/type/string">string</a> order:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputMedia">InputMedia</a>> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/bots.getPreviewInfo">bots.getPreviewInfo</a>#423ab3ad bot:<a href="/type/InputUser">InputUser</a> lang_code:<a href="/type/string">string</a> = <a href="/type/bots.PreviewInfo">bots.PreviewInfo</a>;
|
|
<a href="/method/bots.getPreviewMedias">bots.getPreviewMedias</a>#a2a5594d bot:<a href="/type/InputUser">InputUser</a> = <a href="/type/Vector%20t">Vector</a><<a href="/type/BotPreviewMedia">BotPreviewMedia</a>>;<br>
|
|
<a href="/method/messages.requestMainWebView">messages.requestMainWebView</a>#c9e01e7b flags:<a href="/type/%23">#</a> compact:flags.7?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> bot:<a href="/type/InputUser">InputUser</a> start_param:flags.1?<a href="/type/string">string</a> theme_params:flags.0?<a href="/type/DataJSON">DataJSON</a> platform:<a href="/type/string">string</a> = <a href="/type/WebViewResult">WebViewResult</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-184" id="layer-184" name="layer-184"><i class="anchor-icon"></i></a><a href="/schema?layer=184">Layer 184</a></h3>
|
|
<p>Add a service message for <a href="/api/payments#6-refunds">refunds</a>.</p>
|
|
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
|
<h5><a class="anchor" href="#new-constructors" id="new-constructors" name="new-constructors"><i class="anchor-icon"></i></a>New Constructors</h5>
|
|
<ul>
|
|
<li>Added <a href="/constructor/messageActionPaymentRefunded">messageActionPaymentRefunded</a> - Describes a payment refund (service message received by both users and bots).</li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/messageActionPaymentRefunded">messageActionPaymentRefunded</a>#41b3e202 flags:<a href="/type/%23">#</a> peer:<a href="/type/Peer">Peer</a> currency:<a href="/type/string">string</a> total_amount:<a href="/type/long">long</a> payload:flags.0?<a href="/type/bytes">bytes</a> charge:<a href="/type/PaymentCharge">PaymentCharge</a> = <a href="/type/MessageAction">MessageAction</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-183" id="layer-183" name="layer-183"><i class="anchor-icon"></i></a><a href="/schema?layer=183">Layer 183</a></h3>
|
|
<p>This layer introduces the following features:</p>
|
|
<ul>
|
|
<li><a href="/api/paid-media">Paid media »</a></li>
|
|
<li><a href="/method/payments.getStarsTransactionsByID">Fetch info about specific Telegram Star transactions »</a></li>
|
|
<li><a href="/api/stars#paying-for-ads">Pay for advertisements using Telegram Stars »</a></li>
|
|
<li><a href="/api/bots/webapps">Mini Apps</a> may now be opened directly in compact mode by passing the <code>compact</code> flag to <a href="/method/messages.requestWebView">messages.requestWebView</a>, <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a>, <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.<br>
|
|
This <code>compact</code> flag should always be set if the new <code>mode</code> parameter of <a href="/api/links#main-mini-app-links">main mini app links</a> and <a href="/api/links#direct-mini-app-links">direct mini app links</a> is equal to <code>compact</code>.<br>
|
|
If the returned <a href="/constructor/webViewResultUrl">webViewResultUrl</a> does <em>not</em> have the <code>fullsize</code> flag set, the app should be opened in compact mode (even if compact mode wasn't explictly requested, since the default fullsize/compact mode can also be changed through <a href="https://t.me/botfather">@botfather</a>).</li>
|
|
<li>Return the <code>payload</code> passed to <a href="/constructor/inputMediaInvoice">inputMediaInvoice</a> in <a href="/constructor/starsTransaction">starsTransaction</a>.<code>bot_payload</code>.</li>
|
|
<li>Device integrity verification improvements for official apps.</li>
|
|
</ul>
|
|
<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/payments.getStarsRevenueAdsAccountUrl">payments.getStarsRevenueAdsAccountUrl</a> - Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for channel/bot in <code>peer</code>, paid using the Telegram Stars owned by the specified <code>peer</code>, see <a href="/api/stars#paying-for-ads">here »</a> for more info.</li>
|
|
<li>Added <a href="/method/payments.getStarsTransactionsByID">payments.getStarsTransactionsByID</a> - Obtain info about <a href="/api/stars#balance-and-transaction-history">Telegram Star transactions »</a> using specific transaction IDs.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Added <strong>compact</strong> parameter in <a href="/method/messages.requestWebView">messages.requestWebView</a></li>
|
|
<li>Changed type of <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a> from <strong>SimpleWebViewResult</strong> to <strong>WebViewResult</strong></li>
|
|
<li>Added <strong>compact</strong> parameter in <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a></li>
|
|
<li>Changed type of <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a> from <strong>AppWebViewResult</strong> to <strong>WebViewResult</strong></li>
|
|
<li>Added <strong>compact</strong> parameter in <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></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>
|
|
<li>Added <a href="/constructor/inputMediaPaidMedia">inputMediaPaidMedia</a> - <a href="/api/paid-media">Paid media, see here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/messageMediaPaidMedia">messageMediaPaidMedia</a> - <a href="/api/paid-media">Paid media, see here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/starsTransactionPeerAds">starsTransactionPeerAds</a> - Describes a <a href="/api/stars">Telegram Star</a> transaction used to pay for <a href="/api/stars#paying-for-ads">Telegram ads as specified here »</a>.</li>
|
|
<li>Added <a href="/constructor/payments.starsRevenueAdsAccountUrl">payments.starsRevenueAdsAccountUrl</a> - Contains a URL leading to a page where the user will be able to place ads for the channel/bot, paying using <a href="/api/stars#paying-for-ads">Telegram Stars</a>.</li>
|
|
<li>Added <a href="/constructor/inputStarsTransaction">inputStarsTransaction</a> - Used to fetch info about a <a href="/api/stars#balance-and-transaction-history">Telegram Star transaction »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>paid_media_allowed</strong>, <strong>can_view_stars_revenue</strong> parameters in <a href="/constructor/channelFull">channelFull</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>fullsize</strong> parameters, changed type of <strong>query_id</strong> from <strong>long</strong> to <strong>flags.0?long</strong> in <a href="/constructor/webViewResultUrl">webViewResultUrl</a></li>
|
|
<li>Changed type of <strong>extended_media</strong> from <strong>MessageExtendedMedia</strong> to <strong>Vector<MessageExtendedMedia></strong> in <a href="/constructor/updateMessageExtendedMedia">updateMessageExtendedMedia</a></li>
|
|
<li>Added <strong>play_integrity_project_id</strong> parameter in <a href="/constructor/auth.sentCodeTypeFirebaseSms">auth.sentCodeTypeFirebaseSms</a></li>
|
|
<li>Added <strong>bot_payload</strong>, <strong>msg_id</strong>, <strong>extended_media</strong> parameters in <a href="/constructor/starsTransaction">starsTransaction</a></li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#deleted-constructors" id="deleted-constructors" name="deleted-constructors"><i class="anchor-icon"></i></a>Deleted Constructors</h5>
|
|
<ul>
|
|
<li>Removed simpleWebViewResultUrl</li>
|
|
<li>Removed appWebViewResultUrl</li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#push-notification-changes" id="push-notification-changes" name="push-notification-changes"><i class="anchor-icon"></i></a>PUSH notification changes</h4>
|
|
<h5><a class="anchor" href="#new-push-notifications" id="new-push-notifications" name="new-push-notifications"><i class="anchor-icon"></i></a>New PUSH notifications</h5>
|
|
<ul>
|
|
<li>Added <a href="/api/push-updates#possible-notifications">CHANNEL_MESSAGE_PAID_MEDIA</a> - <code>{1} posted a paid post for {2} star</code></li>
|
|
<li>Added <a href="/api/push-updates#possible-notifications">CHAT_MESSAGE_PAID_MEDIA</a> - <code>{1} posted a paid post in {2} group for {3} star</code></li>
|
|
<li>Added <a href="/api/push-updates#possible-notifications">CHAT_REACT_PAID_MEDIA</a> - <code>{1} reacted {3} in group {2} to your paid post for {4} star</code></li>
|
|
<li>Added <a href="/api/push-updates#possible-notifications">MESSAGE_PAID_MEDIA</a> - <code>{1} sent you a paid post for {2} star</code></li>
|
|
<li>Added <a href="/api/push-updates#possible-notifications">PINNED_PAID_MEDIA</a> - <code>{1} pinned a paid post for {2} star</code></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/channelFull">channelFull</a>#bbab348d 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> stories_pinned_available:flags2.5?<a href="/constructor/true">true</a> view_forum_as_messages:flags2.6?<a href="/constructor/true">true</a> restricted_sponsored:flags2.11?<a href="/constructor/true">true</a> can_view_revenue:flags2.12?<a href="/constructor/true">true</a> paid_media_allowed:flags2.14?<a href="/constructor/true">true</a> can_view_stars_revenue:flags2.15?<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> reactions_limit:flags2.13?<a href="/type/int">int</a> stories:flags2.4?<a href="/type/PeerStories">PeerStories</a> wallpaper:flags2.7?<a href="/type/WallPaper">WallPaper</a> boosts_applied:flags2.8?<a href="/type/int">int</a> boosts_unrestrict:flags2.9?<a href="/type/int">int</a> emojiset:flags2.10?<a href="/type/StickerSet">StickerSet</a> = <a href="/type/ChatFull">ChatFull</a>;<br>
|
|
<a href="/constructor/webViewResultUrl">webViewResultUrl</a>#4d22ff98 flags:<a href="/type/%23">#</a> fullsize:flags.1?<a href="/constructor/true">true</a> query_id:flags.0?<a href="/type/long">long</a> url:<a href="/type/string">string</a> = <a href="/type/WebViewResult">WebViewResult</a>;<br>
|
|
<a href="/constructor/updateMessageExtendedMedia">updateMessageExtendedMedia</a>#d5a41724 peer:<a href="/type/Peer">Peer</a> msg_id:<a href="/type/int">int</a> extended_media:<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageExtendedMedia">MessageExtendedMedia</a>> = <a href="/type/Update">Update</a>;<br>
|
|
<a href="/constructor/auth.sentCodeTypeFirebaseSms">auth.sentCodeTypeFirebaseSms</a>#009fd736 flags:<a href="/type/%23">#</a> nonce:flags.0?<a href="/type/bytes">bytes</a> play_integrity_project_id:flags.2?<a href="/type/long">long</a> play_integrity_nonce:flags.2?<a href="/type/bytes">bytes</a> receipt:flags.1?<a href="/type/string">string</a> push_timeout:flags.1?<a href="/type/int">int</a> length:<a href="/type/int">int</a> = <a href="/type/auth.SentCodeType">auth.SentCodeType</a>;<br>
|
|
<a href="/constructor/starsTransaction">starsTransaction</a>#2db5418f flags:<a href="/type/%23">#</a> refund:flags.3?<a href="/constructor/true">true</a> pending:flags.4?<a href="/constructor/true">true</a> failed:flags.6?<a href="/constructor/true">true</a> id:<a href="/type/string">string</a> stars:<a href="/type/long">long</a> date:<a href="/type/int">int</a> peer:<a href="/type/StarsTransactionPeer">StarsTransactionPeer</a> title:flags.0?<a href="/type/string">string</a> description:flags.1?<a href="/type/string">string</a> photo:flags.2?<a href="/type/WebDocument">WebDocument</a> transaction_date:flags.5?<a href="/type/int">int</a> transaction_url:flags.5?<a href="/type/string">string</a> bot_payload:flags.7?<a href="/type/bytes">bytes</a> msg_id:flags.8?<a href="/type/int">int</a> extended_media:flags.9?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageMedia">MessageMedia</a>> = <a href="/type/StarsTransaction">StarsTransaction</a>;<br>
|
|
<a href="/constructor/inputMediaPaidMedia">inputMediaPaidMedia</a>#aa661fc3 stars_amount:<a href="/type/long">long</a> extended_media:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputMedia">InputMedia</a>> = <a href="/type/InputMedia">InputMedia</a>;<br>
|
|
<a href="/constructor/messageMediaPaidMedia">messageMediaPaidMedia</a>#a8852491 stars_amount:<a href="/type/long">long</a> extended_media:<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageExtendedMedia">MessageExtendedMedia</a>> = <a href="/type/MessageMedia">MessageMedia</a>;<br>
|
|
<a href="/constructor/starsTransactionPeerAds">starsTransactionPeerAds</a>#60682812 = <a href="/type/StarsTransactionPeer">StarsTransactionPeer</a>;<br>
|
|
<a href="/constructor/payments.starsRevenueAdsAccountUrl">payments.starsRevenueAdsAccountUrl</a>#394e7f21 url:<a href="/type/string">string</a> = <a href="/type/payments.StarsRevenueAdsAccountUrl">payments.StarsRevenueAdsAccountUrl</a>;<br>
|
|
<a href="/constructor/inputStarsTransaction">inputStarsTransaction</a>#206ae6d1 flags:<a href="/type/%23">#</a> refund:flags.0?<a href="/constructor/true">true</a> id:<a href="/type/string">string</a> = <a href="/type/InputStarsTransaction">InputStarsTransaction</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/messages.requestWebView">messages.requestWebView</a>#269dc2c1 flags:<a href="/type/%23">#</a> from_bot_menu:flags.4?<a href="/constructor/true">true</a> silent:flags.5?<a href="/constructor/true">true</a> compact:flags.7?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> bot:<a href="/type/InputUser">InputUser</a> url:flags.1?<a href="/type/string">string</a> start_param:flags.3?<a href="/type/string">string</a> theme_params:flags.2?<a href="/type/DataJSON">DataJSON</a> platform:<a href="/type/string">string</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> = <a href="/type/WebViewResult">WebViewResult</a>;
|
|
<a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a>#413a3e73 flags:<a href="/type/%23">#</a> from_switch_webview:flags.1?<a href="/constructor/true">true</a> from_side_menu:flags.2?<a href="/constructor/true">true</a> compact:flags.7?<a href="/constructor/true">true</a> bot:<a href="/type/InputUser">InputUser</a> url:flags.3?<a href="/type/string">string</a> start_param:flags.4?<a href="/type/string">string</a> theme_params:flags.0?<a href="/type/DataJSON">DataJSON</a> platform:<a href="/type/string">string</a> = <a href="/type/WebViewResult">WebViewResult</a>;
|
|
<a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>#53618bce flags:<a href="/type/%23">#</a> write_allowed:flags.0?<a href="/constructor/true">true</a> compact:flags.7?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> app:<a href="/type/InputBotApp">InputBotApp</a> start_param:flags.1?<a href="/type/string">string</a> theme_params:flags.2?<a href="/type/DataJSON">DataJSON</a> platform:<a href="/type/string">string</a> = <a href="/type/WebViewResult">WebViewResult</a>;<br>
|
|
<a href="/method/payments.getStarsRevenueAdsAccountUrl">payments.getStarsRevenueAdsAccountUrl</a>#d1d7efc5 peer:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/payments.StarsRevenueAdsAccountUrl">payments.StarsRevenueAdsAccountUrl</a>;
|
|
<a href="/method/payments.getStarsTransactionsByID">payments.getStarsTransactionsByID</a>#27842d2e peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputStarsTransaction">InputStarsTransaction</a>> = <a href="/type/payments.StarsStatus">payments.StarsStatus</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-182" id="layer-182" name="layer-182"><i class="anchor-icon"></i></a><a href="/schema?layer=182">Layer 182</a></h3>
|
|
<p>This layer adds support for:</p>
|
|
<ul>
|
|
<li><a href="/api/stars#revenue-statistics">Telegram Star revenue statistics »</a></li>
|
|
<li><a href="/api/stars#withdrawing-revenue">Telegram Star withdrawal »</a></li>
|
|
<li><a href="/api/stars#balance-and-transaction-history">Telegram Star transaction details »</a></li>
|
|
<li><a href="/api/stories#searching-stories">Global story search »</a></li>
|
|
<li><a href="/api/stories#urls">URL media areas »</a></li>
|
|
<li><a href="/api/stories#location-tags">Addresses in geolocation (non-venue) media areas »</a></li>
|
|
<li><a href="/constructor/mediaAreaCoordinates">Custom radiuses for rectangle corner rounding in media areas »</a></li>
|
|
<li><a href="/api/business#connected-bots">Callback buttons and queries for users via business bots »</a></li>
|
|
<li>Saving message <a href="/api/effects">effects</a> in <a href="/api/drafts">drafts</a></li>
|
|
</ul>
|
|
<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/stories.searchPosts">stories.searchPosts</a> - Globally search for <a href="/api/stories">stories</a> using a hashtag or a <a href="/api/stories#location-tags">location media area</a>, see <a href="/api/stories#searching-stories">here »</a> for more info on the full flow.</li>
|
|
<li>Added <a href="/method/payments.getStarsRevenueStats">payments.getStarsRevenueStats</a> - Get <a href="/api/stars">Telegram Star revenue statistics »</a>.</li>
|
|
<li>Added <a href="/method/payments.getStarsRevenueWithdrawalUrl">payments.getStarsRevenueWithdrawalUrl</a> - Withdraw funds from a channel or bot's <a href="/api/stars#withdrawing-revenue">star balance »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Added <strong>effect</strong> parameter in <a href="/method/messages.saveDraft">messages.saveDraft</a></li>
|
|
<li>Added <strong>ascending</strong>, <strong>limit</strong> parameters in <a href="/method/payments.getStarsTransactions">payments.getStarsTransactions</a></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>
|
|
<li>Added <a href="/constructor/mediaAreaUrl">mediaAreaUrl</a> - Represents a <a href="/api/stories#urls">URL media area</a>.</li>
|
|
<li>Added <a href="/constructor/foundStory">foundStory</a> - A story found using <a href="/api/stories#searching-stories">global story search »</a>.</li>
|
|
<li>Added <a href="/constructor/stories.foundStories">stories.foundStories</a> - Stories found using <a href="/api/stories#searching-stories">global story search »</a>.</li>
|
|
<li>Added <a href="/constructor/geoPointAddress">geoPointAddress</a> - Address optionally associated to a <a href="/constructor/geoPoint">geoPoint</a>.</li>
|
|
<li>Added <a href="/constructor/updateBusinessBotCallbackQuery">updateBusinessBotCallbackQuery</a> - A callback button sent via a <a href="/api/business#connected-bots">business connection</a> was pressed, and the button data was sent to the bot that created the button.</li>
|
|
<li>Added <a href="/constructor/starsRevenueStatus">starsRevenueStatus</a> - Describes <a href="/api/stars">Telegram Star revenue balances »</a>.</li>
|
|
<li>Added <a href="/constructor/payments.starsRevenueStats">payments.starsRevenueStats</a> - <a href="/api/stars">Star revenue statistics, see here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/payments.starsRevenueWithdrawalUrl">payments.starsRevenueWithdrawalUrl</a> - Contains the URL to use to <a href="/api/stars#withdrawing-revenue">withdraw Telegram Star revenue</a>.</li>
|
|
<li>Added <a href="/constructor/updateStarsRevenueStatus">updateStarsRevenueStatus</a> - The <a href="/api/stars#revenue-statistics">Telegram Star balance of a channel/bot we own has changed »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>effect</strong> parameter in <a href="/constructor/draftMessage">draftMessage</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>radius</strong> parameters in <a href="/constructor/mediaAreaCoordinates">mediaAreaCoordinates</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>address</strong> parameters in <a href="/constructor/mediaAreaGeoPoint">mediaAreaGeoPoint</a></li>
|
|
<li>Added <strong>pending</strong>, <strong>failed</strong>, <strong>transaction_date</strong>, <strong>transaction_url</strong> parameters in <a href="/constructor/starsTransaction">starsTransaction</a></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/draftMessage">draftMessage</a>#2d65321f flags:<a href="/type/%23">#</a> no_webpage:flags.1?<a href="/constructor/true">true</a> invert_media:flags.6?<a href="/constructor/true">true</a> reply_to:flags.4?<a href="/type/InputReplyTo">InputReplyTo</a> message:<a href="/type/string">string</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> media:flags.5?<a href="/type/InputMedia">InputMedia</a> date:<a href="/type/int">int</a> effect:flags.7?<a href="/type/long">long</a> = <a href="/type/DraftMessage">DraftMessage</a>;<br>
|
|
<a href="/constructor/mediaAreaCoordinates">mediaAreaCoordinates</a>#cfc9e002 flags:<a href="/type/%23">#</a> x:<a href="/type/double">double</a> y:<a href="/type/double">double</a> w:<a href="/type/double">double</a> h:<a href="/type/double">double</a> rotation:<a href="/type/double">double</a> radius:flags.0?<a href="/type/double">double</a> = <a href="/type/MediaAreaCoordinates">MediaAreaCoordinates</a>;
|
|
<a href="/constructor/mediaAreaGeoPoint">mediaAreaGeoPoint</a>#cad5452d flags:<a href="/type/%23">#</a> coordinates:<a href="/type/MediaAreaCoordinates">MediaAreaCoordinates</a> geo:<a href="/type/GeoPoint">GeoPoint</a> address:flags.0?<a href="/type/GeoPointAddress">GeoPointAddress</a> = <a href="/type/MediaArea">MediaArea</a>;<br>
|
|
<a href="/constructor/starsTransaction">starsTransaction</a>#aa00c898 flags:<a href="/type/%23">#</a> refund:flags.3?<a href="/constructor/true">true</a> pending:flags.4?<a href="/constructor/true">true</a> failed:flags.6?<a href="/constructor/true">true</a> id:<a href="/type/string">string</a> stars:<a href="/type/long">long</a> date:<a href="/type/int">int</a> peer:<a href="/type/StarsTransactionPeer">StarsTransactionPeer</a> title:flags.0?<a href="/type/string">string</a> description:flags.1?<a href="/type/string">string</a> photo:flags.2?<a href="/type/WebDocument">WebDocument</a> transaction_date:flags.5?<a href="/type/int">int</a> transaction_url:flags.5?<a href="/type/string">string</a> = <a href="/type/StarsTransaction">StarsTransaction</a>;<br>
|
|
<a href="/constructor/mediaAreaUrl">mediaAreaUrl</a>#37381085 coordinates:<a href="/type/MediaAreaCoordinates">MediaAreaCoordinates</a> url:<a href="/type/string">string</a> = <a href="/type/MediaArea">MediaArea</a>;<br>
|
|
<a href="/constructor/foundStory">foundStory</a>#e87acbc0 peer:<a href="/type/Peer">Peer</a> story:<a href="/type/StoryItem">StoryItem</a> = <a href="/type/FoundStory">FoundStory</a>;<br>
|
|
<a href="/constructor/stories.foundStories">stories.foundStories</a>#e2de7737 flags:<a href="/type/%23">#</a> count:<a href="/type/int">int</a> stories:<a href="/type/Vector%20t">Vector</a><<a href="/type/FoundStory">FoundStory</a>> next_offset:flags.0?<a href="/type/string">string</a> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.FoundStories">stories.FoundStories</a>;<br>
|
|
<a href="/constructor/geoPointAddress">geoPointAddress</a>#de4c5d93 flags:<a href="/type/%23">#</a> country_iso2:<a href="/type/string">string</a> state:flags.0?<a href="/type/string">string</a> city:flags.1?<a href="/type/string">string</a> street:flags.2?<a href="/type/string">string</a> = <a href="/type/GeoPointAddress">GeoPointAddress</a>;<br>
|
|
<a href="/constructor/updateBusinessBotCallbackQuery">updateBusinessBotCallbackQuery</a>#1ea2fda7 flags:<a href="/type/%23">#</a> query_id:<a href="/type/long">long</a> user_id:<a href="/type/long">long</a> connection_id:<a href="/type/string">string</a> message:<a href="/type/Message">Message</a> reply_to_message:flags.2?<a href="/type/Message">Message</a> chat_instance:<a href="/type/long">long</a> data:flags.0?<a href="/type/bytes">bytes</a> = <a href="/type/Update">Update</a>;<br>
|
|
<a href="/constructor/starsRevenueStatus">starsRevenueStatus</a>#79342946 flags:<a href="/type/%23">#</a> withdrawal_enabled:flags.0?<a href="/constructor/true">true</a> current_balance:<a href="/type/long">long</a> available_balance:<a href="/type/long">long</a> overall_revenue:<a href="/type/long">long</a> next_withdrawal_at:flags.1?<a href="/type/int">int</a> = <a href="/type/StarsRevenueStatus">StarsRevenueStatus</a>;<br>
|
|
<a href="/constructor/payments.starsRevenueStats">payments.starsRevenueStats</a>#c92bb73b revenue_graph:<a href="/type/StatsGraph">StatsGraph</a> status:<a href="/type/StarsRevenueStatus">StarsRevenueStatus</a> usd_rate:<a href="/type/double">double</a> = <a href="/type/payments.StarsRevenueStats">payments.StarsRevenueStats</a>;
|
|
<a href="/constructor/payments.starsRevenueWithdrawalUrl">payments.starsRevenueWithdrawalUrl</a>#1dab80b7 url:<a href="/type/string">string</a> = <a href="/type/payments.StarsRevenueWithdrawalUrl">payments.StarsRevenueWithdrawalUrl</a>;<br>
|
|
<a href="/constructor/updateStarsRevenueStatus">updateStarsRevenueStatus</a>#a584b019 peer:<a href="/type/Peer">Peer</a> status:<a href="/type/StarsRevenueStatus">StarsRevenueStatus</a> = <a href="/type/Update">Update</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/messages.saveDraft">messages.saveDraft</a>#d372c5ce flags:<a href="/type/%23">#</a> no_webpage:flags.1?<a href="/constructor/true">true</a> invert_media:flags.6?<a href="/constructor/true">true</a> reply_to:flags.4?<a href="/type/InputReplyTo">InputReplyTo</a> peer:<a href="/type/InputPeer">InputPeer</a> message:<a href="/type/string">string</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> media:flags.5?<a href="/type/InputMedia">InputMedia</a> effect:flags.7?<a href="/type/long">long</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/payments.getStarsTransactions">payments.getStarsTransactions</a>#97938d5a flags:<a href="/type/%23">#</a> inbound:flags.0?<a href="/constructor/true">true</a> outbound:flags.1?<a href="/constructor/true">true</a> ascending:flags.2?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> offset:<a href="/type/string">string</a> limit:<a href="/type/int">int</a> = <a href="/type/payments.StarsStatus">payments.StarsStatus</a>;<br>
|
|
<a href="/method/stories.searchPosts">stories.searchPosts</a>#6cea116a flags:<a href="/type/%23">#</a> hashtag:flags.0?<a href="/type/string">string</a> area:flags.1?<a href="/type/MediaArea">MediaArea</a> offset:<a href="/type/string">string</a> limit:<a href="/type/int">int</a> = <a href="/type/stories.FoundStories">stories.FoundStories</a>;<br>
|
|
<a href="/method/payments.getStarsRevenueStats">payments.getStarsRevenueStats</a>#d91ffad6 flags:<a href="/type/%23">#</a> dark:flags.0?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/payments.StarsRevenueStats">payments.StarsRevenueStats</a>;
|
|
<a href="/method/payments.getStarsRevenueWithdrawalUrl">payments.getStarsRevenueWithdrawalUrl</a>#13bbe8b3 peer:<a href="/type/InputPeer">InputPeer</a> stars:<a href="/type/long">long</a> password:<a href="/type/InputCheckPasswordSRP">InputCheckPasswordSRP</a> = <a href="/type/payments.StarsRevenueWithdrawalUrl">payments.StarsRevenueWithdrawalUrl</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-181" id="layer-181" name="layer-181"><i class="anchor-icon"></i></a><a href="/schema?layer=181">Layer 181</a></h3>
|
|
<p>This layer introduces <a href="/api/factcheck">fact-checks »</a>, <a href="/api/stars">Telegram Stars</a> and <a href="/constructor/messageEntityBlockquote">collapsible message quotes »</a>.</p>
|
|
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
|
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
|
|
<ul>
|
|
<li>Added <a href="/method/messages.editFactCheck">messages.editFactCheck</a> - Edit/create a <a href="/api/factcheck">fact-check</a> on a message.</li>
|
|
<li>Added <a href="/method/messages.deleteFactCheck">messages.deleteFactCheck</a> - Delete a <a href="/api/factcheck">fact-check</a> from a message.</li>
|
|
<li>Added <a href="/method/messages.getFactCheck">messages.getFactCheck</a> - Fetch one or more <a href="/api/factcheck">factchecks, see here »</a> for the full flow.</li>
|
|
<li>Added <a href="/method/payments.getStarsTopupOptions">payments.getStarsTopupOptions</a> - Obtain a list of <a href="/api/stars#buying-or-gifting-stars">Telegram Stars topup options »</a> as <a href="/constructor/starsTopupOption">starsTopupOption</a> constructors.</li>
|
|
<li>Added <a href="/method/payments.getStarsStatus">payments.getStarsStatus</a> - Get the current <a href="/api/stars">Telegram Stars balance</a> of the current account (with peer=<a href="/constructor/inputPeerSelf">inputPeerSelf</a>), or the stars balance of the bot specified in <code>peer</code>.</li>
|
|
<li>Added <a href="/method/payments.getStarsTransactions">payments.getStarsTransactions</a> - Fetch <a href="/api/stars#balance-and-transaction-history">Telegram Stars transactions</a>.</li>
|
|
<li>Added <a href="/method/payments.sendStarsForm">payments.sendStarsForm</a> - Make a payment using <a href="/api/stars#using-stars">Telegram Stars, see here »</a> for more info.</li>
|
|
<li>Added <a href="/method/payments.refundStarsCharge">payments.refundStarsCharge</a> - Refund a <a href="/api/stars">Telegram Stars</a> transaction, see <a href="/api/payments#6-refunds">here »</a> for more info.</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>
|
|
<li>Added <a href="/constructor/factCheck">factCheck</a> - Represents a <a href="/api/factcheck">fact-check »</a> created by an independent fact-checker.</li>
|
|
<li>Added <a href="/constructor/starsTransactionPeerUnsupported">starsTransactionPeerUnsupported</a> - Describes a <a href="/api/stars">Telegram Star</a> transaction that cannot be described using the current layer.</li>
|
|
<li>Added <a href="/constructor/starsTransactionPeerAppStore">starsTransactionPeerAppStore</a> - Describes a <a href="/api/stars">Telegram Star</a> transaction with the App Store, used when purchasing Telegram Stars through the App Store.</li>
|
|
<li>Added <a href="/constructor/starsTransactionPeerPlayMarket">starsTransactionPeerPlayMarket</a> - Describes a <a href="/api/stars">Telegram Star</a> transaction with the Play Store, used when purchasing Telegram Stars through the Play Store.</li>
|
|
<li>Added <a href="/constructor/starsTransactionPeerPremiumBot">starsTransactionPeerPremiumBot</a> - Describes a <a href="/api/stars">Telegram Star</a> transaction made using <a href="https://t.me/premiumbot">@PremiumBot</a> (i.e. using the <a href="/constructor/inputInvoiceStars">inputInvoiceStars</a> flow described <a href="/api/stars#buying-or-gifting-stars">here »</a>).</li>
|
|
<li>Added <a href="/constructor/starsTransactionPeerFragment">starsTransactionPeerFragment</a> - Describes a <a href="/api/stars">Telegram Star</a> transaction with <a href="https://fragment.com">Fragment</a>, used when purchasing Telegram Stars through <a href="https://fragment.com">Fragment</a>.</li>
|
|
<li>Added <a href="/constructor/starsTransactionPeer">starsTransactionPeer</a> - Describes a <a href="/api/stars">Telegram Star</a> transaction with another peer.</li>
|
|
<li>Added <a href="/constructor/inputStorePaymentStars">inputStorePaymentStars</a> - Used to top up the <a href="/api/stars">Telegram Stars balance</a> using the Play Store/App Store flow (official apps only).</li>
|
|
<li>Added <a href="/constructor/starsTopupOption">starsTopupOption</a> - <a href="/api/stars">Telegram Stars topup option</a>.</li>
|
|
<li>Added <a href="/constructor/inputInvoiceStars">inputInvoiceStars</a> - Used to top up the <a href="/api/stars">Telegram Stars</a> balance of the current account or someone else's account.</li>
|
|
<li>Added <a href="/constructor/starsTransaction">starsTransaction</a> - Represents a <a href="/api/stars">Telegram Stars transaction »</a>.</li>
|
|
<li>Added <a href="/constructor/payments.starsStatus">payments.starsStatus</a> - Info about the current <a href="/api/stars#balance-and-transaction-history">Telegram Star balance and transaction history »</a>.</li>
|
|
<li>Added <a href="/constructor/updateStarsBalance">updateStarsBalance</a> - The current account's <a href="/api/stars">Telegram Stars balance »</a> has changed.</li>
|
|
<li>Added <a href="/constructor/payments.paymentFormStars">payments.paymentFormStars</a> - Represents a payment form, for payments to be using <a href="/api/stars">Telegram Stars, see here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/payments.paymentReceiptStars">payments.paymentReceiptStars</a> - Receipt for <a href="/api/stars">payment made using Telegram Stars</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>factcheck</strong> parameter in <a href="/constructor/message">message</a></li>
|
|
<li>Changed type of <strong>provider</strong> from <strong>string</strong> to <strong>flags.3?string</strong> in <a href="/constructor/inputMediaInvoice">inputMediaInvoice</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>collapsed</strong> parameters in <a href="/constructor/messageEntityBlockquote">messageEntityBlockquote</a></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/message">message</a>#94345242 flags:<a href="/type/%23">#</a> out:flags.1?<a href="/constructor/true">true</a> mentioned:flags.4?<a href="/constructor/true">true</a> media_unread:flags.5?<a href="/constructor/true">true</a> silent:flags.13?<a href="/constructor/true">true</a> post:flags.14?<a href="/constructor/true">true</a> from_scheduled:flags.18?<a href="/constructor/true">true</a> legacy:flags.19?<a href="/constructor/true">true</a> edit_hide:flags.21?<a href="/constructor/true">true</a> pinned:flags.24?<a href="/constructor/true">true</a> noforwards:flags.26?<a href="/constructor/true">true</a> invert_media:flags.27?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> offline:flags2.1?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> from_id:flags.8?<a href="/type/Peer">Peer</a> from_boosts_applied:flags.29?<a href="/type/int">int</a> peer_id:<a href="/type/Peer">Peer</a> saved_peer_id:flags.28?<a href="/type/Peer">Peer</a> fwd_from:flags.2?<a href="/type/MessageFwdHeader">MessageFwdHeader</a> via_bot_id:flags.11?<a href="/type/long">long</a> via_business_bot_id:flags2.0?<a href="/type/long">long</a> reply_to:flags.3?<a href="/type/MessageReplyHeader">MessageReplyHeader</a> date:<a href="/type/int">int</a> message:<a href="/type/string">string</a> media:flags.9?<a href="/type/MessageMedia">MessageMedia</a> reply_markup:flags.6?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.7?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> views:flags.10?<a href="/type/int">int</a> forwards:flags.10?<a href="/type/int">int</a> replies:flags.23?<a href="/type/MessageReplies">MessageReplies</a> edit_date:flags.15?<a href="/type/int">int</a> post_author:flags.16?<a href="/type/string">string</a> grouped_id:flags.17?<a href="/type/long">long</a> reactions:flags.20?<a href="/type/MessageReactions">MessageReactions</a> restriction_reason:flags.22?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> ttl_period:flags.25?<a href="/type/int">int</a> quick_reply_shortcut_id:flags.30?<a href="/type/int">int</a> effect:flags2.2?<a href="/type/long">long</a> factcheck:flags2.3?<a href="/type/FactCheck">FactCheck</a> = <a href="/type/Message">Message</a>;<br>
|
|
<a href="/constructor/inputMediaInvoice">inputMediaInvoice</a>#405fef0d flags:<a href="/type/%23">#</a> title:<a href="/type/string">string</a> description:<a href="/type/string">string</a> photo:flags.0?<a href="/type/InputWebDocument">InputWebDocument</a> invoice:<a href="/type/Invoice">Invoice</a> payload:<a href="/type/bytes">bytes</a> provider:flags.3?<a href="/type/string">string</a> provider_data:<a href="/type/DataJSON">DataJSON</a> start_param:flags.1?<a href="/type/string">string</a> extended_media:flags.2?<a href="/type/InputMedia">InputMedia</a> = <a href="/type/InputMedia">InputMedia</a>;<br>
|
|
<a href="/constructor/messageEntityBlockquote">messageEntityBlockquote</a>#f1ccaaac flags:<a href="/type/%23">#</a> collapsed:flags.0?<a href="/constructor/true">true</a> offset:<a href="/type/int">int</a> length:<a href="/type/int">int</a> = <a href="/type/MessageEntity">MessageEntity</a>;<br>
|
|
<a href="/constructor/factCheck">factCheck</a>#b89bfccf flags:<a href="/type/%23">#</a> need_check:flags.0?<a href="/constructor/true">true</a> country:flags.1?<a href="/type/string">string</a> text:flags.1?<a href="/type/TextWithEntities">TextWithEntities</a> hash:<a href="/type/long">long</a> = <a href="/type/FactCheck">FactCheck</a>;<br>
|
|
<a href="/constructor/starsTransactionPeerUnsupported">starsTransactionPeerUnsupported</a>#95f2bfe4 = <a href="/type/StarsTransactionPeer">StarsTransactionPeer</a>;
|
|
<a href="/constructor/starsTransactionPeerAppStore">starsTransactionPeerAppStore</a>#b457b375 = <a href="/type/StarsTransactionPeer">StarsTransactionPeer</a>;
|
|
<a href="/constructor/starsTransactionPeerPlayMarket">starsTransactionPeerPlayMarket</a>#7b560a0b = <a href="/type/StarsTransactionPeer">StarsTransactionPeer</a>;
|
|
<a href="/constructor/starsTransactionPeerPremiumBot">starsTransactionPeerPremiumBot</a>#250dbaf8 = <a href="/type/StarsTransactionPeer">StarsTransactionPeer</a>;
|
|
<a href="/constructor/starsTransactionPeerFragment">starsTransactionPeerFragment</a>#e92fd902 = <a href="/type/StarsTransactionPeer">StarsTransactionPeer</a>;
|
|
<a href="/constructor/starsTransactionPeer">starsTransactionPeer</a>#d80da15d peer:<a href="/type/Peer">Peer</a> = <a href="/type/StarsTransactionPeer">StarsTransactionPeer</a>;<br>
|
|
<a href="/constructor/inputStorePaymentStars">inputStorePaymentStars</a>#4f0ee8df flags:<a href="/type/%23">#</a> stars:<a href="/type/long">long</a> currency:<a href="/type/string">string</a> amount:<a href="/type/long">long</a> = <a href="/type/InputStorePaymentPurpose">InputStorePaymentPurpose</a>;<br>
|
|
<a href="/constructor/starsTopupOption">starsTopupOption</a>#0bd915c0 flags:<a href="/type/%23">#</a> extended:flags.1?<a href="/constructor/true">true</a> stars:<a href="/type/long">long</a> store_product:flags.0?<a href="/type/string">string</a> currency:<a href="/type/string">string</a> amount:<a href="/type/long">long</a> = <a href="/type/StarsTopupOption">StarsTopupOption</a>;<br>
|
|
<a href="/constructor/inputInvoiceStars">inputInvoiceStars</a>#1da33ad8 option:<a href="/type/StarsTopupOption">StarsTopupOption</a> = <a href="/type/InputInvoice">InputInvoice</a>;<br>
|
|
<a href="/constructor/starsTransaction">starsTransaction</a>#cc7079b2 flags:<a href="/type/%23">#</a> refund:flags.3?<a href="/constructor/true">true</a> id:<a href="/type/string">string</a> stars:<a href="/type/long">long</a> date:<a href="/type/int">int</a> peer:<a href="/type/StarsTransactionPeer">StarsTransactionPeer</a> title:flags.0?<a href="/type/string">string</a> description:flags.1?<a href="/type/string">string</a> photo:flags.2?<a href="/type/WebDocument">WebDocument</a> = <a href="/type/StarsTransaction">StarsTransaction</a>;<br>
|
|
<a href="/constructor/payments.starsStatus">payments.starsStatus</a>#8cf4ee60 flags:<a href="/type/%23">#</a> balance:<a href="/type/long">long</a> history:<a href="/type/Vector%20t">Vector</a><<a href="/type/StarsTransaction">StarsTransaction</a>> next_offset:flags.0?<a href="/type/string">string</a> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/payments.StarsStatus">payments.StarsStatus</a>;<br>
|
|
<a href="/constructor/updateStarsBalance">updateStarsBalance</a>#0fb85198 balance:<a href="/type/long">long</a> = <a href="/type/Update">Update</a>;<br>
|
|
<a href="/constructor/payments.paymentFormStars">payments.paymentFormStars</a>#7bf6b15c flags:<a href="/type/%23">#</a> form_id:<a href="/type/long">long</a> bot_id:<a href="/type/long">long</a> title:<a href="/type/string">string</a> description:<a href="/type/string">string</a> photo:flags.5?<a href="/type/WebDocument">WebDocument</a> invoice:<a href="/type/Invoice">Invoice</a> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/payments.PaymentForm">payments.PaymentForm</a>;
|
|
<a href="/constructor/payments.paymentReceiptStars">payments.paymentReceiptStars</a>#dabbf83a flags:<a href="/type/%23">#</a> date:<a href="/type/int">int</a> bot_id:<a href="/type/long">long</a> title:<a href="/type/string">string</a> description:<a href="/type/string">string</a> photo:flags.2?<a href="/type/WebDocument">WebDocument</a> invoice:<a href="/type/Invoice">Invoice</a> currency:<a href="/type/string">string</a> total_amount:<a href="/type/long">long</a> transaction_id:<a href="/type/string">string</a> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/payments.PaymentReceipt">payments.PaymentReceipt</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/messages.editFactCheck">messages.editFactCheck</a>#0589ee75 peer:<a href="/type/InputPeer">InputPeer</a> msg_id:<a href="/type/int">int</a> text:<a href="/type/TextWithEntities">TextWithEntities</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.deleteFactCheck">messages.deleteFactCheck</a>#d1da940c peer:<a href="/type/InputPeer">InputPeer</a> msg_id:<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.getFactCheck">messages.getFactCheck</a>#b9cdc5ee peer:<a href="/type/InputPeer">InputPeer</a> msg_id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Vector%20t">Vector</a><<a href="/type/FactCheck">FactCheck</a>>;<br>
|
|
<a href="/method/payments.getStarsTopupOptions">payments.getStarsTopupOptions</a>#c00ec7d3 = <a href="/type/Vector%20t">Vector</a><<a href="/type/StarsTopupOption">StarsTopupOption</a>>;
|
|
<a href="/method/payments.getStarsStatus">payments.getStarsStatus</a>#104fcfa7 peer:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/payments.StarsStatus">payments.StarsStatus</a>;
|
|
<a href="/method/payments.getStarsTransactions">payments.getStarsTransactions</a>#673ac2f9 flags:<a href="/type/%23">#</a> inbound:flags.0?<a href="/constructor/true">true</a> outbound:flags.1?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> offset:<a href="/type/string">string</a> = <a href="/type/payments.StarsStatus">payments.StarsStatus</a>;
|
|
<a href="/method/payments.sendStarsForm">payments.sendStarsForm</a>#02bb731d flags:<a href="/type/%23">#</a> form_id:<a href="/type/long">long</a> invoice:<a href="/type/InputInvoice">InputInvoice</a> = <a href="/type/payments.PaymentResult">payments.PaymentResult</a>;
|
|
<a href="/method/payments.refundStarsCharge">payments.refundStarsCharge</a>#25ae8f4a user_id:<a href="/type/InputUser">InputUser</a> charge_id:<a href="/type/string">string</a> = <a href="/type/Updates">Updates</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-180" id="layer-180" name="layer-180"><i class="anchor-icon"></i></a><a href="/schema?layer=180">Layer 180</a></h3>
|
|
<p>This layer introduces <a href="/api/effects">animated message effects »</a>, <a href="/method/channels.searchPosts">global hashtag search in all public channels (including those we aren't a member of) »</a>, <a href="/constructor/updateBroadcastRevenueTransactions">channel ad revenue transaction updates »</a> and improvements to device integrity verification for official apps.</p>
|
|
<p>The following new <a href="/api/premium#telegram-premium-features">Telegram Premium feature indentifiers »</a> were added:</p>
|
|
<ul>
|
|
<li><code>effects</code></li>
|
|
</ul>
|
|
<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/invokeWithGooglePlayIntegrity">invokeWithGooglePlayIntegrity</a> - Official clients only, invoke with Google Play Integrity token.</li>
|
|
<li>Added <a href="/method/invokeWithApnsSecret">invokeWithApnsSecret</a> - Official clients only, invoke with Apple push verification.</li>
|
|
<li>Added <a href="/method/messages.getAvailableEffects">messages.getAvailableEffects</a> - Fetch the full list of usable <a href="/api/effects">animated message effects »</a>.</li>
|
|
<li>Added <a href="/method/channels.searchPosts">channels.searchPosts</a> - Globally search for posts from public <a href="/api/channel">channels »</a> (<em>including</em> those we aren't a member of) containing a specific hashtag.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Added <strong>effect</strong> parameter in <a href="/method/messages.sendMessage">messages.sendMessage</a></li>
|
|
<li>Added <strong>effect</strong> parameter in <a href="/method/messages.sendMedia">messages.sendMedia</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>reason</strong> parameters in <a href="/method/auth.resendCode">auth.resendCode</a></li>
|
|
<li>Added <strong>effect</strong> parameter in <a href="/method/messages.sendMultiMedia">messages.sendMultiMedia</a></li>
|
|
<li>Added <strong>play_integrity_token</strong> parameter in <a href="/method/auth.requestFirebaseSms">auth.requestFirebaseSms</a></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>
|
|
<li>Added <a href="/constructor/updateBroadcastRevenueTransactions">updateBroadcastRevenueTransactions</a> - A new <a href="/api/revenue#revenue-statistics">channel ad revenue transaction was made, see here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/availableEffect">availableEffect</a> - Represents a <a href="/api/effects">message effect »</a>.</li>
|
|
<li>Added <a href="/constructor/messages.availableEffectsNotModified">messages.availableEffectsNotModified</a> - The full list of usable <a href="/api/effects">animated message effects »</a> hasn't changed.</li>
|
|
<li>Added <a href="/constructor/messages.availableEffects">messages.availableEffects</a> - The full list of usable <a href="/api/effects">animated message effects »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>effect</strong> parameter in <a href="/constructor/message">message</a></li>
|
|
<li>Added <strong>play_integrity_nonce</strong> parameter in <a href="/constructor/auth.sentCodeTypeFirebaseSms">auth.sentCodeTypeFirebaseSms</a></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/message">message</a>#bde09c2e flags:<a href="/type/%23">#</a> out:flags.1?<a href="/constructor/true">true</a> mentioned:flags.4?<a href="/constructor/true">true</a> media_unread:flags.5?<a href="/constructor/true">true</a> silent:flags.13?<a href="/constructor/true">true</a> post:flags.14?<a href="/constructor/true">true</a> from_scheduled:flags.18?<a href="/constructor/true">true</a> legacy:flags.19?<a href="/constructor/true">true</a> edit_hide:flags.21?<a href="/constructor/true">true</a> pinned:flags.24?<a href="/constructor/true">true</a> noforwards:flags.26?<a href="/constructor/true">true</a> invert_media:flags.27?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> offline:flags2.1?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> from_id:flags.8?<a href="/type/Peer">Peer</a> from_boosts_applied:flags.29?<a href="/type/int">int</a> peer_id:<a href="/type/Peer">Peer</a> saved_peer_id:flags.28?<a href="/type/Peer">Peer</a> fwd_from:flags.2?<a href="/type/MessageFwdHeader">MessageFwdHeader</a> via_bot_id:flags.11?<a href="/type/long">long</a> via_business_bot_id:flags2.0?<a href="/type/long">long</a> reply_to:flags.3?<a href="/type/MessageReplyHeader">MessageReplyHeader</a> date:<a href="/type/int">int</a> message:<a href="/type/string">string</a> media:flags.9?<a href="/type/MessageMedia">MessageMedia</a> reply_markup:flags.6?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.7?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> views:flags.10?<a href="/type/int">int</a> forwards:flags.10?<a href="/type/int">int</a> replies:flags.23?<a href="/type/MessageReplies">MessageReplies</a> edit_date:flags.15?<a href="/type/int">int</a> post_author:flags.16?<a href="/type/string">string</a> grouped_id:flags.17?<a href="/type/long">long</a> reactions:flags.20?<a href="/type/MessageReactions">MessageReactions</a> restriction_reason:flags.22?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> ttl_period:flags.25?<a href="/type/int">int</a> quick_reply_shortcut_id:flags.30?<a href="/type/int">int</a> effect:flags2.2?<a href="/type/long">long</a> = <a href="/type/Message">Message</a>;<br>
|
|
<a href="/constructor/auth.sentCodeTypeFirebaseSms">auth.sentCodeTypeFirebaseSms</a>#13c90f17 flags:<a href="/type/%23">#</a> nonce:flags.0?<a href="/type/bytes">bytes</a> play_integrity_nonce:flags.2?<a href="/type/bytes">bytes</a> receipt:flags.1?<a href="/type/string">string</a> push_timeout:flags.1?<a href="/type/int">int</a> length:<a href="/type/int">int</a> = <a href="/type/auth.SentCodeType">auth.SentCodeType</a>;<br>
|
|
<a href="/constructor/updateBroadcastRevenueTransactions">updateBroadcastRevenueTransactions</a>#dfd961f5 peer:<a href="/type/Peer">Peer</a> balances:<a href="/type/BroadcastRevenueBalances">BroadcastRevenueBalances</a> = <a href="/type/Update">Update</a>;<br>
|
|
<a href="/constructor/availableEffect">availableEffect</a>#93c3e27e flags:<a href="/type/%23">#</a> premium_required:flags.2?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> emoticon:<a href="/type/string">string</a> static_icon_id:flags.0?<a href="/type/long">long</a> effect_sticker_id:<a href="/type/long">long</a> effect_animation_id:flags.1?<a href="/type/long">long</a> = <a href="/type/AvailableEffect">AvailableEffect</a>;<br>
|
|
<a href="/constructor/messages.availableEffectsNotModified">messages.availableEffectsNotModified</a>#d1ed9a5b = <a href="/type/messages.AvailableEffects">messages.AvailableEffects</a>;
|
|
<a href="/constructor/messages.availableEffects">messages.availableEffects</a>#bddb616e hash:<a href="/type/int">int</a> effects:<a href="/type/Vector%20t">Vector</a><<a href="/type/AvailableEffect">AvailableEffect</a>> documents:<a href="/type/Vector%20t">Vector</a><<a href="/type/Document">Document</a>> = <a href="/type/messages.AvailableEffects">messages.AvailableEffects</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/messages.sendMessage">messages.sendMessage</a>#983f9745 flags:<a href="/type/%23">#</a> no_webpage:flags.1?<a href="/constructor/true">true</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> invert_media:flags.16?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> message:<a href="/type/string">string</a> random_id:<a href="/type/long">long</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> quick_reply_shortcut:flags.17?<a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a> effect:flags.18?<a href="/type/long">long</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.sendMedia">messages.sendMedia</a>#7852834e flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> invert_media:flags.16?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> media:<a href="/type/InputMedia">InputMedia</a> message:<a href="/type/string">string</a> random_id:<a href="/type/long">long</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> quick_reply_shortcut:flags.17?<a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a> effect:flags.18?<a href="/type/long">long</a> = <a href="/type/Updates">Updates</a>;<br>
|
|
<a href="/method/auth.resendCode">auth.resendCode</a>#cae47523 flags:<a href="/type/%23">#</a> phone_number:<a href="/type/string">string</a> phone_code_hash:<a href="/type/string">string</a> reason:flags.0?<a href="/type/string">string</a> = <a href="/type/auth.SentCode">auth.SentCode</a>;<br>
|
|
<a href="/method/messages.sendMultiMedia">messages.sendMultiMedia</a>#37b74355 flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> invert_media:flags.16?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> multi_media:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputSingleMedia">InputSingleMedia</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> quick_reply_shortcut:flags.17?<a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a> effect:flags.18?<a href="/type/long">long</a> = <a href="/type/Updates">Updates</a>;<br>
|
|
<a href="/method/auth.requestFirebaseSms">auth.requestFirebaseSms</a>#8e39261e flags:<a href="/type/%23">#</a> phone_number:<a href="/type/string">string</a> phone_code_hash:<a href="/type/string">string</a> safety_net_token:flags.0?<a href="/type/string">string</a> play_integrity_token:flags.2?<a href="/type/string">string</a> ios_push_secret:flags.1?<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/invokeWithGooglePlayIntegrity">invokeWithGooglePlayIntegrity</a>#1df92984 {X:Type} nonce:<a href="/type/string">string</a> token:<a href="/type/string">string</a> query:!X = X;
|
|
<a href="/method/invokeWithApnsSecret">invokeWithApnsSecret</a>#0dae54f8 {X:Type} nonce:<a href="/type/string">string</a> secret:<a href="/type/string">string</a> query:!X = X;<br>
|
|
<a href="/method/messages.getAvailableEffects">messages.getAvailableEffects</a>#dea20a39 hash:<a href="/type/int">int</a> = <a href="/type/messages.AvailableEffects">messages.AvailableEffects</a>;<br>
|
|
<a href="/method/channels.searchPosts">channels.searchPosts</a>#d19f987b hashtag:<a href="/type/string">string</a> offset_rate:<a href="/type/int">int</a> offset_peer:<a href="/type/InputPeer">InputPeer</a> offset_id:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> = <a href="/type/messages.Messages">messages.Messages</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-179" id="layer-179" name="layer-179"><i class="anchor-icon"></i></a><a href="/schema?layer=179">Layer 179</a></h3>
|
|
<p>Changelog:</p>
|
|
<ul>
|
|
<li>Add support for <a href="/api/auth#code-types">secret word and secret phrase login codes »</a></li>
|
|
<li>Add support for <a href="/api/poll">entities in poll questions and answers »</a></li>
|
|
<li>Introduce <a href="/api/emoji-categories">sticker emoji categories »</a></li>
|
|
<li>Extract ad revenue balances into a <a href="/constructor/broadcastRevenueBalances">separate constructor »</a> to prepare for revenue transaction updates in the next layer.</li>
|
|
</ul>
|
|
<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/auth.reportMissingCode">auth.reportMissingCode</a> - Official apps only, reports that the SMS authentication code wasn't delivered.</li>
|
|
<li>Added <a href="/method/messages.getEmojiStickerGroups">messages.getEmojiStickerGroups</a> - Represents a list of <a href="/api/emoji-categories">emoji categories</a>, to be used when choosing a sticker.</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>
|
|
<li>Added <a href="/constructor/auth.sentCodeTypeSmsWord">auth.sentCodeTypeSmsWord</a> - The code was sent via SMS as a secret word, starting with the letter specified in <code>beginning</code></li>
|
|
<li>Added <a href="/constructor/auth.sentCodeTypeSmsPhrase">auth.sentCodeTypeSmsPhrase</a> - The code was sent via SMS as a secret phrase starting with the word specified in <code>beginning</code></li>
|
|
<li>Added <a href="/constructor/emojiGroupGreeting">emojiGroupGreeting</a> - Represents an <a href="/api/emoji-categories">emoji category</a>, that should be moved to the top of the list when choosing a sticker for a <a href="/api/business#business-introduction">business introduction</a></li>
|
|
<li>Added <a href="/constructor/emojiGroupPremium">emojiGroupPremium</a> - An <a href="/api/emoji-categories">emoji category</a>, used to select all <a href="/api/premium">Premium</a>-only stickers (i.e. those with a <a href="/api/stickers#premium-animated-sticker-effects">Premium effect »</a>)/<a href="/api/premium">Premium</a>-only <a href="/api/custom-emoji">custom emojis</a> (i.e. those where the <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a>.<code>free</code> flag is <strong>not</strong> set)</li>
|
|
<li>Added <a href="/constructor/broadcastRevenueBalances">broadcastRevenueBalances</a> - Describes <a href="/api/revenue">channel ad revenue balances »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Changed type of <strong>text</strong> from <strong>string</strong> to <strong>TextWithEntities</strong> in <a href="/constructor/pollAnswer">pollAnswer</a></li>
|
|
<li>Changed type of <strong>question</strong> from <strong>string</strong> to <strong>TextWithEntities</strong> in <a href="/constructor/poll">poll</a></li>
|
|
<li>Added <strong>balances</strong> parameter, removed <strong>current_balance</strong>, <strong>available_balance</strong>, <strong>overall_revenue</strong> parameters in <a href="/constructor/stats.broadcastRevenueStats">stats.broadcastRevenueStats</a></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/pollAnswer">pollAnswer</a>#ff16e2ca text:<a href="/type/TextWithEntities">TextWithEntities</a> option:<a href="/type/bytes">bytes</a> = <a href="/type/PollAnswer">PollAnswer</a>;
|
|
<a href="/constructor/poll">poll</a>#58747131 id:<a href="/type/long">long</a> flags:<a href="/type/%23">#</a> closed:flags.0?<a href="/constructor/true">true</a> public_voters:flags.1?<a href="/constructor/true">true</a> multiple_choice:flags.2?<a href="/constructor/true">true</a> quiz:flags.3?<a href="/constructor/true">true</a> question:<a href="/type/TextWithEntities">TextWithEntities</a> answers:<a href="/type/Vector%20t">Vector</a><<a href="/type/PollAnswer">PollAnswer</a>> close_period:flags.4?<a href="/type/int">int</a> close_date:flags.5?<a href="/type/int">int</a> = <a href="/type/Poll">Poll</a>;<br>
|
|
<a href="/constructor/stats.broadcastRevenueStats">stats.broadcastRevenueStats</a>#5407e297 top_hours_graph:<a href="/type/StatsGraph">StatsGraph</a> revenue_graph:<a href="/type/StatsGraph">StatsGraph</a> balances:<a href="/type/BroadcastRevenueBalances">BroadcastRevenueBalances</a> usd_rate:<a href="/type/double">double</a> = <a href="/type/stats.BroadcastRevenueStats">stats.BroadcastRevenueStats</a>;<br>
|
|
<a href="/constructor/auth.sentCodeTypeSmsWord">auth.sentCodeTypeSmsWord</a>#a416ac81 flags:<a href="/type/%23">#</a> beginning:flags.0?<a href="/type/string">string</a> = <a href="/type/auth.SentCodeType">auth.SentCodeType</a>;
|
|
<a href="/constructor/auth.sentCodeTypeSmsPhrase">auth.sentCodeTypeSmsPhrase</a>#b37794af flags:<a href="/type/%23">#</a> beginning:flags.0?<a href="/type/string">string</a> = <a href="/type/auth.SentCodeType">auth.SentCodeType</a>;<br>
|
|
<a href="/constructor/emojiGroupGreeting">emojiGroupGreeting</a>#80d26cc7 title:<a href="/type/string">string</a> icon_emoji_id:<a href="/type/long">long</a> emoticons:<a href="/type/Vector%20t">Vector</a><<a href="/type/string">string</a>> = <a href="/type/EmojiGroup">EmojiGroup</a>;
|
|
<a href="/constructor/emojiGroupPremium">emojiGroupPremium</a>#093bcf34 title:<a href="/type/string">string</a> icon_emoji_id:<a href="/type/long">long</a> = <a href="/type/EmojiGroup">EmojiGroup</a>;<br>
|
|
<a href="/constructor/broadcastRevenueBalances">broadcastRevenueBalances</a>#8438f1c6 current_balance:<a href="/type/long">long</a> available_balance:<a href="/type/long">long</a> overall_revenue:<a href="/type/long">long</a> = <a href="/type/BroadcastRevenueBalances">BroadcastRevenueBalances</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/auth.reportMissingCode">auth.reportMissingCode</a>#cb9deff6 phone_number:<a href="/type/string">string</a> phone_code_hash:<a href="/type/string">string</a> mnc:<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/messages.getEmojiStickerGroups">messages.getEmojiStickerGroups</a>#1dd840f5 hash:<a href="/type/int">int</a> = <a href="/type/messages.EmojiGroups">messages.EmojiGroups</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-178" id="layer-178" name="layer-178"><i class="anchor-icon"></i></a><a href="/schema?layer=178">Layer 178</a></h3>
|
|
<p>This layers introduces the following features:</p>
|
|
<ul>
|
|
<li><a href="/api/business#re-enable-ads">Telegram Business: re-enable ads »</a></li>
|
|
<li><a href="/api/sponsored-messages">Greatly simplify sponsored messages, see here »</a> for info on how to render the new simplified sponsored messages.</li>
|
|
<li><a href="/api/stories#pinned-or-archived-stories">Pin stories to the top of the profile »</a></li>
|
|
<li><a href="/api/reactions#notifications-about-reactions">Notifications for story reactions »</a></li>
|
|
<li><a href="/api/reactions#notifications-about-reactions">Reaction notification settings »</a></li>
|
|
<li><a href="/method/messages.setChatAvailableReactions">Custom unique reactions limit for groups, supergroups and channels »</a></li>
|
|
<li><a href="/api/search#global-search">Global channel recommendations in the "Channels" global search tab »</a></li>
|
|
<li><a href="/constructor/webPageAttributeStickerSet">Stickerset deep link previews »</a></li>
|
|
<li><a href="/constructor/codeSettings">codeSettings</a>.<code>unknown_number</code>: set this flag if there is a SIM card in the current device, but it is not possible to check whether the specified phone number matches the SIM's phone number.</li>
|
|
</ul>
|
|
<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/account.toggleSponsoredMessages">account.toggleSponsoredMessages</a> - Disable or re-enable Telegram ads for the current <a href="/api/premium">Premium</a> account.</li>
|
|
<li>Added <a href="/method/stories.togglePinnedToTop">stories.togglePinnedToTop</a> - Pin some stories to the top of the profile, see <a href="/api/stories#pinned-or-archived-stories">here »</a> for more info.</li>
|
|
<li>Added <a href="/method/account.getReactionsNotifySettings">account.getReactionsNotifySettings</a> - Get the current <a href="/api/reactions#notifications-about-reactions">reaction notification settings »</a>.</li>
|
|
<li>Added <a href="/method/account.setReactionsNotifySettings">account.setReactionsNotifySettings</a> - Change the <a href="/api/reactions#notifications-about-reactions">reaction notification settings »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Added <strong>flags</strong>, <strong>reactions_limit</strong> parameters in <a href="/method/messages.setChatAvailableReactions">messages.setChatAvailableReactions</a></li>
|
|
<li>Added <strong>flags</strong> parameter, changed type of <strong>channel</strong> from <strong>InputChannel</strong> to <strong>flags.0?InputChannel</strong> in <a href="/method/channels.getChannelRecommendations">channels.getChannelRecommendations</a></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>
|
|
<li>Added <a href="/constructor/webPageAttributeStickerSet">webPageAttributeStickerSet</a> - Contains info about a <a href="/api/stickers">stickerset »</a>, for a <a href="/constructor/webPage">webPage</a> preview of a <a href="/api/links#stickerset-links">stickerset deep link »</a> (the <a href="/constructor/webPage">webPage</a> will have a <code>type</code> of <code>telegram_stickerset</code>).</li>
|
|
<li>Added <a href="/constructor/reactionNotificationsFromContacts">reactionNotificationsFromContacts</a> - Receive notifications about reactions made only by our contacts.</li>
|
|
<li>Added <a href="/constructor/reactionNotificationsFromAll">reactionNotificationsFromAll</a> - Receive notifications about reactions made by any user.</li>
|
|
<li>Added <a href="/constructor/reactionsNotifySettings">reactionsNotifySettings</a> - Reaction notification settings, see <a href="/api/reactions#notifications-about-reactions">here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/updateNewStoryReaction">updateNewStoryReaction</a> - Represents a new <a href="/api/reactions#notifications-about-reactions">reaction to a story</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>reactions_limit</strong> parameter in <a href="/constructor/chatFull">chatFull</a></li>
|
|
<li>Added <strong>sponsored_enabled</strong> parameter in <a href="/constructor/userFull">userFull</a></li>
|
|
<li>Added <strong>reactions_limit</strong> parameter in <a href="/constructor/channelFull">channelFull</a></li>
|
|
<li>Added <strong>unknown_number</strong> parameter in <a href="/constructor/codeSettings">codeSettings</a></li>
|
|
<li>Added <strong>url</strong>, <strong>title</strong>, <strong>photo</strong>, <strong>color</strong> parameters, removed <strong>show_peer_photo</strong>, <strong>from_id</strong>, <strong>chat_invite</strong>, <strong>chat_invite_hash</strong>, <strong>channel_post</strong>, <strong>start_param</strong>, <strong>webpage</strong>, <strong>app</strong> parameters, changed type of <strong>button_text</strong> from <strong>flags.11?string</strong> to <strong>string</strong> in <a href="/constructor/sponsoredMessage">sponsoredMessage</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>pinned_to_top</strong> parameters in <a href="/constructor/stories.stories">stories.stories</a></li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#deleted-constructors" id="deleted-constructors" name="deleted-constructors"><i class="anchor-icon"></i></a>Deleted Constructors</h5>
|
|
<ul>
|
|
<li>Removed sponsoredWebPage</li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#push-notification-changes" id="push-notification-changes" name="push-notification-changes"><i class="anchor-icon"></i></a>PUSH notification changes</h4>
|
|
<h5><a class="anchor" href="#new-push-notifications" id="new-push-notifications" name="new-push-notifications"><i class="anchor-icon"></i></a>New PUSH notifications</h5>
|
|
<ul>
|
|
<li>Added <a href="/api/push-updates#possible-notifications">REACT_HIDDEN</a> - <code>New reaction to your message</code></li>
|
|
<li>Added <a href="/api/push-updates#possible-notifications">REACT_STORY</a> - <code>{1}: {2} to your story</code></li>
|
|
<li>Added <a href="/api/push-updates#possible-notifications">REACT_STORY_HIDDEN</a> - <code>New reaction to your story</code></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/chatFull">chatFull</a>#2633421b 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> reactions_limit:flags.20?<a href="/type/int">int</a> = <a href="/type/ChatFull">ChatFull</a>;<br>
|
|
<a href="/constructor/userFull">userFull</a>#cc997720 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> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.27?<a href="/constructor/true">true</a> wallpaper_overridden:flags.28?<a href="/constructor/true">true</a> contact_require_premium:flags.29?<a href="/constructor/true">true</a> read_dates_private:flags.30?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> sponsored_enabled:flags2.7?<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>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/PeerStories">PeerStories</a> business_work_hours:flags2.0?<a href="/type/BusinessWorkHours">BusinessWorkHours</a> business_location:flags2.1?<a href="/type/BusinessLocation">BusinessLocation</a> business_greeting_message:flags2.2?<a href="/type/BusinessGreetingMessage">BusinessGreetingMessage</a> business_away_message:flags2.3?<a href="/type/BusinessAwayMessage">BusinessAwayMessage</a> business_intro:flags2.4?<a href="/type/BusinessIntro">BusinessIntro</a> birthday:flags2.5?<a href="/type/Birthday">Birthday</a> personal_channel_id:flags2.6?<a href="/type/long">long</a> personal_channel_message:flags2.6?<a href="/type/int">int</a> = <a href="/type/UserFull">UserFull</a>;<br>
|
|
<a href="/constructor/channelFull">channelFull</a>#bbab348d 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> stories_pinned_available:flags2.5?<a href="/constructor/true">true</a> view_forum_as_messages:flags2.6?<a href="/constructor/true">true</a> restricted_sponsored:flags2.11?<a href="/constructor/true">true</a> can_view_revenue:flags2.12?<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> reactions_limit:flags2.13?<a href="/type/int">int</a> stories:flags2.4?<a href="/type/PeerStories">PeerStories</a> wallpaper:flags2.7?<a href="/type/WallPaper">WallPaper</a> boosts_applied:flags2.8?<a href="/type/int">int</a> boosts_unrestrict:flags2.9?<a href="/type/int">int</a> emojiset:flags2.10?<a href="/type/StickerSet">StickerSet</a> = <a href="/type/ChatFull">ChatFull</a>;
|
|
<a href="/constructor/codeSettings">codeSettings</a>#ad253d78 flags:<a href="/type/%23">#</a> allow_flashcall:flags.0?<a href="/constructor/true">true</a> current_number:flags.1?<a href="/constructor/true">true</a> allow_app_hash:flags.4?<a href="/constructor/true">true</a> allow_missed_call:flags.5?<a href="/constructor/true">true</a> allow_firebase:flags.7?<a href="/constructor/true">true</a> unknown_number:flags.9?<a href="/constructor/true">true</a> logout_tokens:flags.6?<a href="/type/Vector%20t">Vector</a><<a href="/type/bytes">bytes</a>> token:flags.8?<a href="/type/string">string</a> app_sandbox:flags.8?<a href="/type/Bool">Bool</a> = <a href="/type/CodeSettings">CodeSettings</a>;<br>
|
|
<a href="/constructor/sponsoredMessage">sponsoredMessage</a>#bdedf566 flags:<a href="/type/%23">#</a> recommended:flags.5?<a href="/constructor/true">true</a> can_report:flags.12?<a href="/constructor/true">true</a> random_id:<a href="/type/bytes">bytes</a> url:<a href="/type/string">string</a> title:<a href="/type/string">string</a> message:<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> photo:flags.6?<a href="/type/Photo">Photo</a> color:flags.13?<a href="/type/PeerColor">PeerColor</a> button_text:<a href="/type/string">string</a> sponsor_info:flags.7?<a href="/type/string">string</a> additional_info:flags.8?<a href="/type/string">string</a> = <a href="/type/SponsoredMessage">SponsoredMessage</a>;
|
|
<a href="/constructor/stories.stories">stories.stories</a>#63c3dd0a flags:<a href="/type/%23">#</a> count:<a href="/type/int">int</a> stories:<a href="/type/Vector%20t">Vector</a><<a href="/type/StoryItem">StoryItem</a>> pinned_to_top:flags.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/stories.Stories">stories.Stories</a>;<br>
|
|
<a href="/constructor/webPageAttributeStickerSet">webPageAttributeStickerSet</a>#50cc03d3 flags:<a href="/type/%23">#</a> emojis:flags.0?<a href="/constructor/true">true</a> text_color:flags.1?<a href="/constructor/true">true</a> stickers:<a href="/type/Vector%20t">Vector</a><<a href="/type/Document">Document</a>> = <a href="/type/WebPageAttribute">WebPageAttribute</a>;<br>
|
|
<a href="/constructor/reactionNotificationsFromContacts">reactionNotificationsFromContacts</a>#bac3a61a = <a href="/type/ReactionNotificationsFrom">ReactionNotificationsFrom</a>;
|
|
<a href="/constructor/reactionNotificationsFromAll">reactionNotificationsFromAll</a>#4b9e22a0 = <a href="/type/ReactionNotificationsFrom">ReactionNotificationsFrom</a>;
|
|
<a href="/constructor/reactionsNotifySettings">reactionsNotifySettings</a>#56e34970 flags:<a href="/type/%23">#</a> messages_notify_from:flags.0?<a href="/type/ReactionNotificationsFrom">ReactionNotificationsFrom</a> stories_notify_from:flags.1?<a href="/type/ReactionNotificationsFrom">ReactionNotificationsFrom</a> sound:<a href="/type/NotificationSound">NotificationSound</a> show_previews:<a href="/type/Bool">Bool</a> = <a href="/type/ReactionsNotifySettings">ReactionsNotifySettings</a>;<br>
|
|
<a href="/constructor/updateNewStoryReaction">updateNewStoryReaction</a>#1824e40b story_id:<a href="/type/int">int</a> peer:<a href="/type/Peer">Peer</a> reaction:<a href="/type/Reaction">Reaction</a> = <a href="/type/Update">Update</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/messages.setChatAvailableReactions">messages.setChatAvailableReactions</a>#5a150bd4 flags:<a href="/type/%23">#</a> peer:<a href="/type/InputPeer">InputPeer</a> available_reactions:<a href="/type/ChatReactions">ChatReactions</a> reactions_limit:flags.0?<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;<br>
|
|
<a href="/method/channels.getChannelRecommendations">channels.getChannelRecommendations</a>#25a71742 flags:<a href="/type/%23">#</a> channel:flags.0?<a href="/type/InputChannel">InputChannel</a> = <a href="/type/messages.Chats">messages.Chats</a>;<br>
|
|
<a href="/method/account.toggleSponsoredMessages">account.toggleSponsoredMessages</a>#b9d9a38d enabled:<a href="/type/Bool">Bool</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/stories.togglePinnedToTop">stories.togglePinnedToTop</a>#0b297e9b peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/account.getReactionsNotifySettings">account.getReactionsNotifySettings</a>#06dd654c = <a href="/type/ReactionsNotifySettings">ReactionsNotifySettings</a>;
|
|
<a href="/method/account.setReactionsNotifySettings">account.setReactionsNotifySettings</a>#316ce548 settings:<a href="/type/ReactionsNotifySettings">ReactionsNotifySettings</a> = <a href="/type/ReactionsNotifySettings">ReactionsNotifySettings</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-177" id="layer-177" name="layer-177"><i class="anchor-icon"></i></a><a href="/schema?layer=177">Layer 177</a></h3>
|
|
<p>This layer adds the following features:</p>
|
|
<ul>
|
|
<li>
|
|
<p><a href="/api/revenue">Channel ad revenue »</a>: Telegram channel owners can now receive 50% of the revenue from ads displayed in their channels, as well as view detailed revenue statistics.</p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/api/business#connected-bots">Telegram Business connected bots »</a>: <a href="/api/action-bar#manage-a-connected-business-bot">connected business bot action bar »</a> and bot-side constructors.</p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/api/business#business-introduction">Telegram Business introduction »</a></p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/api/business#business-chat-links">Telegram Business chat links »</a></p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/api/fragment">Fetch info about Fragment collectibles »</a></p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/api/profile#birthday">Birthdays »</a></p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/api/profile#personal-channel">Linked personal channels »</a></p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/api/sponsored-messages#reporting-sponsored-messages">Report ads »</a></p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/method/channels.restrictSponsoredMessages">Disable ads on boosted channels you own »</a></p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/method/stickers.replaceSticker">Replace single stickers in stickersets »</a></p>
|
|
</li>
|
|
<li>
|
|
<p>A refactored and improved <a href="/api/invites#direct-invites">channel/supergroup/group invitation flow »</a></p>
|
|
</li>
|
|
<li>
|
|
<p>Users can now directly edit created <a href="/api/stickers">stickersets »</a>, including custom emoji stickersets, without using the now <strong>deprecated</strong> <a href="https://t.me/stickers">@stickers</a> bot.<br>
|
|
Users and bots can now <a href="/method/messages.getMyStickers">fetch all stickersets owned by the current account »</a>; the new <a href="/constructor/stickerSet">stickerSet</a>.<code>creator</code> flag can also be used to distinguish stickersets created by the current account.<br>
|
|
Also, a single stickerset can now contain a mix of <a href="/api/stickers#static-stickers">static</a>, <a href="/api/stickers#animated-stickers">animated</a> and <a href="/api/stickers#video-stickers">video</a> stickers, removing the previously present distinction of static/animated/video stickersets (this distinction is still present in the <strong>deprecated</strong> <a href="https://t.me/stickers">@stickers</a> bot, so please only use the in-app sticker editor from now on).</p>
|
|
</li>
|
|
<li>
|
|
<p>Improvements for <a href="/constructor/keyboardButtonRequestPeer">keyboardButtonRequestPeer</a>.<br>
|
|
Now bots will also receive the selected peer's name, username, photo (if present and requested by the new bot-side <a href="/constructor/inputKeyboardButtonRequestPeer">inputKeyboardButtonRequestPeer</a> button).<br>
|
|
Previously, just the peer's ID was sent, which could only be used to fetch the name/photo if the bot had already previously cached the peer's <a href="/api/peers#access-hash">access hash »</a>.</p>
|
|
<ul>
|
|
<li>Bots will now receive the requested info as a <a href="/constructor/messageActionRequestedPeerSentMe">messageActionRequestedPeerSentMe</a> constructor instead of the old <a href="/constructor/messageActionRequestedPeer">messageActionRequestedPeer</a> constructor, which will only be received by users that shared the info.</li>
|
|
<li>Bots must now use <a href="/constructor/inputKeyboardButtonRequestPeer">inputKeyboardButtonRequestPeer</a> to send <a href="/constructor/keyboardButtonRequestPeer">keyboardButtonRequestPeer</a> buttons.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><a href="/api/bots/webapps">Mini Apps on Telegram »</a> now support biometric authentication, using the following new incoming web events:</p>
|
|
<ul>
|
|
<li><a href="/api/web-events#web-app-biometry-get-info">web_app_biometry_get_info »</a></li>
|
|
<li><a href="/api/web-events#web-app-biometry-request-access">web_app_biometry_request_access »</a></li>
|
|
<li><a href="/api/web-events#web-app-biometry-update-token">web_app_biometry_update_token »</a></li>
|
|
<li><a href="/api/web-events#web-app-biometry-request-auth">web_app_biometry_request_auth »</a></li>
|
|
<li><a href="/api/web-events#web-app-biometry-open-settings">web_app_biometry_open_settings »</a></li>
|
|
</ul>
|
|
<p>And the following new outgoing web events:</p>
|
|
<ul>
|
|
<li><a href="/api/bots/webapps#biometry-info-received">biometry_info_received »</a></li>
|
|
<li><a href="/api/bots/webapps#biometry-token-updated">biometry_token_updated »</a></li>
|
|
<li><a href="/api/bots/webapps#biometry-auth-requested">biometry_auth_requested »</a></li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p>Non-<a href="/api/premium">Premium</a> users can now receive <code>FLOOD_PREMIUM_WAIT_%d</code> errors when uploading and downloading files, which should be handled as specified <a href="/api/files#uploading-files">here »</a> and <a href="/api/files#downloading-files">here »</a>.</p>
|
|
</li>
|
|
</ul>
|
|
<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/invokeWithBusinessConnection">invokeWithBusinessConnection</a> - Invoke a method using a <a href="/api/business#connected-bots">Telegram Business Bot connection, see here » for more info, including a list of the methods that can be wrapped in this constructor</a>.</li>
|
|
<li>Added <a href="/method/account.getBotBusinessConnection">account.getBotBusinessConnection</a> - Bots may invoke this method to re-fetch the <a href="/constructor/updateBotBusinessConnect">updateBotBusinessConnect</a> constructor associated with a specific <a href="/api/business#connected-bots">business <code>connection_id</code>, see here »</a> for more info on connected business bots. </li>
|
|
<li>Added <a href="/method/account.updateBusinessIntro">account.updateBusinessIntro</a> - Set or remove the <a href="/api/business#business-introduction">Telegram Business introduction »</a>.</li>
|
|
<li>Added <a href="/method/stickers.replaceSticker">stickers.replaceSticker</a> - Replace a sticker in a <a href="/api/stickers">stickerset »</a>.</li>
|
|
<li>Added <a href="/method/messages.getMyStickers">messages.getMyStickers</a> - Fetch all <a href="/api/stickers">stickersets »</a> owned by the current user.</li>
|
|
<li>Added <a href="/method/fragment.getCollectibleInfo">fragment.getCollectibleInfo</a> - Fetch information about a <a href="/api/fragment#fetching-info-about-fragment-collectibles">fragment collectible, see here »</a> for more info on the full flow.</li>
|
|
<li>Added <a href="/method/account.toggleConnectedBotPaused">account.toggleConnectedBotPaused</a> - Pause or unpause a specific chat, temporarily disconnecting it from all <a href="/api/business#connected-bots">business bots »</a>.</li>
|
|
<li>Added <a href="/method/account.disablePeerConnectedBot">account.disablePeerConnectedBot</a> - Permanently disconnect a specific chat from all <a href="/api/business#connected-bots">business bots »</a> (equivalent to specifying it in <code>recipients.exclude_users</code> during initial configuration with <a href="/method/account.updateConnectedBot">account.updateConnectedBot »</a>); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking <a href="/method/account.updateConnectedBot">account.updateConnectedBot »</a>.</li>
|
|
<li>Added <a href="/method/account.updateBirthday">account.updateBirthday</a> - Update our <a href="/api/profile#birthday">birthday, see here »</a> for more info.</li>
|
|
<li>Added <a href="/method/contacts.getBirthdays">contacts.getBirthdays</a> - Fetch all users with birthdays that fall within +1/-1 days, relative to the current day: this method should be invoked by clients every 6-8 hours, and if the result is non-empty, it should be used to appropriately update locally cached birthday information in <a href="/constructor/user">user</a>.<code>birthday</code>.</li>
|
|
<li>Added <a href="/method/account.createBusinessChatLink">account.createBusinessChatLink</a> - Create a <a href="/api/business#business-chat-links">business chat deep link »</a>.</li>
|
|
<li>Added <a href="/method/account.editBusinessChatLink">account.editBusinessChatLink</a> - Edit a created <a href="/api/business#business-chat-links">business chat deep link »</a>.</li>
|
|
<li>Added <a href="/method/account.deleteBusinessChatLink">account.deleteBusinessChatLink</a> - Delete a <a href="/api/business#business-chat-links">business chat deep link »</a>.</li>
|
|
<li>Added <a href="/method/account.getBusinessChatLinks">account.getBusinessChatLinks</a> - List all created <a href="/api/business#business-chat-links">business chat deep links »</a>.</li>
|
|
<li>Added <a href="/method/account.resolveBusinessChatLink">account.resolveBusinessChatLink</a> - Resolve a <a href="/api/business#business-chat-links">business chat deep link »</a>.</li>
|
|
<li>Added <a href="/method/account.updatePersonalChannel">account.updatePersonalChannel</a> - Associate (or remove) a personal <a href="/api/channel">channel »</a>, that will be listed on our personal <a href="/api/profile#personal-channel">profile page »</a>.</li>
|
|
<li>Added <a href="/method/channels.reportSponsoredMessage">channels.reportSponsoredMessage</a> - Report a <a href="/api/sponsored-messages">sponsored message »</a>, see <a href="/api/sponsored-messages#reporting-sponsored-messages">here »</a> for more info on the full flow.</li>
|
|
<li>Added <a href="/method/stats.getBroadcastRevenueStats">stats.getBroadcastRevenueStats</a> - Get <a href="/api/revenue">channel ad revenue statistics »</a>.</li>
|
|
<li>Added <a href="/method/stats.getBroadcastRevenueWithdrawalUrl">stats.getBroadcastRevenueWithdrawalUrl</a> - Withdraw funds from a channel's <a href="/api/revenue">ad revenue balance »</a>.</li>
|
|
<li>Added <a href="/method/stats.getBroadcastRevenueTransactions">stats.getBroadcastRevenueTransactions</a> - Fetch <a href="/api/revenue">channel ad revenue transaction history »</a>.</li>
|
|
<li>Added <a href="/method/channels.restrictSponsoredMessages">channels.restrictSponsoredMessages</a> - Disable ads on the specified channel, for all users.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Changed type of <a href="/method/messages.addChatUser">messages.addChatUser</a> from <strong>Updates</strong> to <strong>messages.InvitedUsers</strong></li>
|
|
<li>Changed type of <a href="/method/messages.createChat">messages.createChat</a> from <strong>Updates</strong> to <strong>messages.InvitedUsers</strong></li>
|
|
<li>Changed type of <a href="/method/channels.inviteToChannel">channels.inviteToChannel</a> from <strong>Updates</strong> to <strong>messages.InvitedUsers</strong></li>
|
|
<li>Added <strong>for_personal</strong> parameter in <a href="/method/channels.getAdminedPublicChannels">channels.getAdminedPublicChannels</a></li>
|
|
<li>Removed <strong>animated</strong>, <strong>videos</strong> parameters in <a href="/method/stickers.createStickerSet">stickers.createStickerSet</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>business_connection_id</strong> parameters in <a href="/method/messages.uploadMedia">messages.uploadMedia</a></li>
|
|
<li>Added <strong>id</strong>, <strong>random_id</strong> parameters in <a href="/method/messages.sendQuickReplyMessages">messages.sendQuickReplyMessages</a></li>
|
|
<li>Changed type of <strong>recipients</strong> from <strong>InputBusinessRecipients</strong> to <strong>InputBusinessBotRecipients</strong> in <a href="/method/account.updateConnectedBot">account.updateConnectedBot</a></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>
|
|
<li>Added <a href="/constructor/birthday">birthday</a> - <a href="/api/profile#birthday">Birthday</a> information for a user.</li>
|
|
<li>Added <a href="/constructor/updateBotBusinessConnect">updateBotBusinessConnect</a> - Connecting or disconnecting a <a href="/api/business#connected-bots">business bot</a> or changing the connection settings will emit an <a href="/constructor/updateBotBusinessConnect">updateBotBusinessConnect</a> update to the bot, with the new settings and a <code>connection_id</code> that will be used by the bot to handle updates from and send messages as the user.</li>
|
|
<li>Added <a href="/constructor/updateBotNewBusinessMessage">updateBotNewBusinessMessage</a> - A message was received via a <a href="/api/business#connected-bots">connected business chat »</a>.</li>
|
|
<li>Added <a href="/constructor/updateBotEditBusinessMessage">updateBotEditBusinessMessage</a> - A message was edited in a <a href="/api/business#connected-bots">connected business chat »</a>.</li>
|
|
<li>Added <a href="/constructor/updateBotDeleteBusinessMessage">updateBotDeleteBusinessMessage</a> - A message was deleted in a <a href="/api/business#connected-bots">connected business chat »</a>.</li>
|
|
<li>Added <a href="/constructor/botBusinessConnection">botBusinessConnection</a> - Contains info about a <a href="/api/business#connected-bots">bot business connection</a>.</li>
|
|
<li>Added <a href="/constructor/inputBusinessIntro">inputBusinessIntro</a> - <a href="/api/business#business-introduction">Telegram Business introduction »</a>.</li>
|
|
<li>Added <a href="/constructor/businessIntro">businessIntro</a> - <a href="/api/business#business-introduction">Telegram Business introduction »</a>.</li>
|
|
<li>Added <a href="/constructor/messages.myStickers">messages.myStickers</a> - The list of <a href="/api/stickers">stickersets owned by the current account »</a>.</li>
|
|
<li>Added <a href="/constructor/inputCollectibleUsername">inputCollectibleUsername</a> - Represents a <a href="/api/fragment">username fragment collectible</a></li>
|
|
<li>Added <a href="/constructor/inputCollectiblePhone">inputCollectiblePhone</a> - Represents a <a href="/api/fragment">phone number fragment collectible</a></li>
|
|
<li>Added <a href="/constructor/fragment.collectibleInfo">fragment.collectibleInfo</a> - Info about a <a href="/api/fragment">fragment collectible</a>.</li>
|
|
<li>Added <a href="/constructor/inputBusinessBotRecipients">inputBusinessBotRecipients</a> - Specifies the private chats that a <a href="/api/business#connected-bots">connected business bot »</a> may interact with.</li>
|
|
<li>Added <a href="/constructor/businessBotRecipients">businessBotRecipients</a> - Specifies the private chats that a <a href="/api/business#connected-bots">connected business bot »</a> may receive messages and interact with.</li>
|
|
<li>Added <a href="/constructor/contactBirthday">contactBirthday</a> - Birthday information of a contact.</li>
|
|
<li>Added <a href="/constructor/contacts.contactBirthdays">contacts.contactBirthdays</a> - Birthday information of our contacts.</li>
|
|
<li>Added <a href="/constructor/inputPrivacyKeyBirthday">inputPrivacyKeyBirthday</a> - Whether the user can see our birthday.</li>
|
|
<li>Added <a href="/constructor/privacyKeyBirthday">privacyKeyBirthday</a> - Whether the user can see our birthday.</li>
|
|
<li>Added <a href="/constructor/inputPrivacyValueAllowPremium">inputPrivacyValueAllowPremium</a> - Allow only users with a <a href="/api/premium">Premium subscription »</a>, currently only usable for <a href="/constructor/inputPrivacyKeyChatInvite">inputPrivacyKeyChatInvite</a>.</li>
|
|
<li>Added <a href="/constructor/privacyValueAllowPremium">privacyValueAllowPremium</a> - Allow only users with a <a href="/api/premium">Premium subscription »</a>, currently only usable for <a href="/constructor/inputPrivacyKeyChatInvite">inputPrivacyKeyChatInvite</a>.</li>
|
|
<li>Added <a href="/constructor/missingInvitee">missingInvitee</a> - Info about why a specific user could not be <a href="/api/invites#direct-invites">invited »</a>.</li>
|
|
<li>Added <a href="/constructor/messages.invitedUsers">messages.invitedUsers</a> - Contains info about successfully or unsuccessfully <a href="/api/invites#direct-invites">invited »</a> users.</li>
|
|
<li>Added <a href="/constructor/inputBusinessChatLink">inputBusinessChatLink</a> - Contains info about a <a href="/api/business#business-chat-links">business chat deep link »</a> to be created by the current account.</li>
|
|
<li>Added <a href="/constructor/businessChatLink">businessChatLink</a> - Contains info about a <a href="/api/business#business-chat-links">business chat deep link »</a> created by the current account.</li>
|
|
<li>Added <a href="/constructor/account.businessChatLinks">account.businessChatLinks</a> - Contains info about <a href="/api/business#business-chat-links">business chat deep links »</a> created by the current account.</li>
|
|
<li>Added <a href="/constructor/account.resolvedBusinessChatLinks">account.resolvedBusinessChatLinks</a> - Contains info about a single resolved <a href="/api/business#business-chat-links">business chat deep link »</a>.</li>
|
|
<li>Added <a href="/constructor/requestedPeerUser">requestedPeerUser</a> - Info about a user, shared by a user with the currently logged in bot using <a href="/method/messages.sendBotRequestedPeer">messages.sendBotRequestedPeer</a>.</li>
|
|
<li>Added <a href="/constructor/requestedPeerChat">requestedPeerChat</a> - Info about a <a href="/api/channel">chat</a>, shared by a user with the currently logged in bot using <a href="/method/messages.sendBotRequestedPeer">messages.sendBotRequestedPeer</a>.</li>
|
|
<li>Added <a href="/constructor/requestedPeerChannel">requestedPeerChannel</a> - Info about a <a href="/api/channel">channel/supergroup</a>, shared by a user with the currently logged in bot using <a href="/method/messages.sendBotRequestedPeer">messages.sendBotRequestedPeer</a>.</li>
|
|
<li>Added <a href="/constructor/messageActionRequestedPeerSentMe">messageActionRequestedPeerSentMe</a> - Contains info about one or more peers that the a user shared with the me (the bot) after clicking on a <a href="/constructor/keyboardButtonRequestPeer">keyboardButtonRequestPeer</a> button (service message received by the bot).</li>
|
|
<li>Added <a href="/constructor/inputKeyboardButtonRequestPeer">inputKeyboardButtonRequestPeer</a> - Prompts the user to select and share one or more peers with the bot using <a href="/method/messages.sendBotRequestedPeer">messages.sendBotRequestedPeer</a>.</li>
|
|
<li>Added <a href="/constructor/sponsoredMessageReportOption">sponsoredMessageReportOption</a> - A <a href="/api/sponsored-messages#reporting-sponsored-messages">report option for a sponsored message »</a>.</li>
|
|
<li>Added <a href="/constructor/channels.sponsoredMessageReportResultChooseOption">channels.sponsoredMessageReportResultChooseOption</a> - The user must choose a report option from the localized options available in <code>options</code>, and after selection, <a href="/method/channels.reportSponsoredMessage">channels.reportSponsoredMessage</a> must be invoked again, passing the option's <code>option</code> field to the <code>option</code> param of the method.</li>
|
|
<li>Added <a href="/constructor/channels.sponsoredMessageReportResultAdsHidden">channels.sponsoredMessageReportResultAdsHidden</a> - Sponsored messages were hidden for the user in all chats.</li>
|
|
<li>Added <a href="/constructor/channels.sponsoredMessageReportResultReported">channels.sponsoredMessageReportResultReported</a> - The sponsored message was reported successfully.</li>
|
|
<li>Added <a href="/constructor/stats.broadcastRevenueStats">stats.broadcastRevenueStats</a> - <a href="/api/revenue">Channel revenue ad statistics, see here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/stats.broadcastRevenueWithdrawalUrl">stats.broadcastRevenueWithdrawalUrl</a> - Contains the URL to use to <a href="/api/revenue#withdrawing-revenue">withdraw channel ad revenue</a>.</li>
|
|
<li>Added <a href="/constructor/broadcastRevenueTransactionProceeds">broadcastRevenueTransactionProceeds</a> - Describes earnings from sponsored messages in a channel in some time frame, see <a href="/api/revenue">here »</a> for more info.</li>
|
|
<li>Added <a href="/constructor/broadcastRevenueTransactionWithdrawal">broadcastRevenueTransactionWithdrawal</a> - Describes a <a href="/api/revenue#withdrawing-revenue">withdrawal of ad earnings »</a></li>
|
|
<li>Added <a href="/constructor/broadcastRevenueTransactionRefund">broadcastRevenueTransactionRefund</a> - Describes a <a href="/api/revenue#withdrawing-revenue">refund for failed withdrawal of ad earnings »</a></li>
|
|
<li>Added <a href="/constructor/stats.broadcastRevenueTransactions">stats.broadcastRevenueTransactions</a> - <a href="/api/revenue">Channel ad revenue transactions »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>flags2</strong>, <strong>offline</strong>, <strong>via_business_bot_id</strong> parameters in <a href="/constructor/message">message</a></li>
|
|
<li>Added <strong>business_bot_paused</strong>, <strong>business_bot_can_reply</strong>, <strong>business_bot_id</strong>, <strong>business_bot_manage_url</strong> parameters in <a href="/constructor/peerSettings">peerSettings</a></li>
|
|
<li>Added <strong>business_intro</strong>, <strong>birthday</strong>, <strong>personal_channel_id</strong>, <strong>personal_channel_message</strong> parameters in <a href="/constructor/userFull">userFull</a></li>
|
|
<li>Added <strong>creator</strong> parameter, removed <strong>animated</strong>, <strong>videos</strong> parameters in <a href="/constructor/stickerSet">stickerSet</a></li>
|
|
<li>Added <strong>restricted_sponsored</strong>, <strong>can_view_revenue</strong> parameters in <a href="/constructor/channelFull">channelFull</a></li>
|
|
<li>Added <strong>custom_parameters</strong> parameter in <a href="/constructor/phoneCall">phoneCall</a></li>
|
|
<li>Added <strong>can_report</strong> parameter in <a href="/constructor/sponsoredMessage">sponsoredMessage</a></li>
|
|
<li>Changed type of <strong>recipients</strong> from <strong>BusinessRecipients</strong> to <strong>BusinessBotRecipients</strong> in <a href="/constructor/connectedBot">connectedBot</a></li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#deleted-constructors" id="deleted-constructors" name="deleted-constructors"><i class="anchor-icon"></i></a>Deleted Constructors</h5>
|
|
<ul>
|
|
<li>Removed updateGroupInvitePrivacyForbidden</li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/message">message</a>#2357bf25 flags:<a href="/type/%23">#</a> out:flags.1?<a href="/constructor/true">true</a> mentioned:flags.4?<a href="/constructor/true">true</a> media_unread:flags.5?<a href="/constructor/true">true</a> silent:flags.13?<a href="/constructor/true">true</a> post:flags.14?<a href="/constructor/true">true</a> from_scheduled:flags.18?<a href="/constructor/true">true</a> legacy:flags.19?<a href="/constructor/true">true</a> edit_hide:flags.21?<a href="/constructor/true">true</a> pinned:flags.24?<a href="/constructor/true">true</a> noforwards:flags.26?<a href="/constructor/true">true</a> invert_media:flags.27?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> offline:flags2.1?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> from_id:flags.8?<a href="/type/Peer">Peer</a> from_boosts_applied:flags.29?<a href="/type/int">int</a> peer_id:<a href="/type/Peer">Peer</a> saved_peer_id:flags.28?<a href="/type/Peer">Peer</a> fwd_from:flags.2?<a href="/type/MessageFwdHeader">MessageFwdHeader</a> via_bot_id:flags.11?<a href="/type/long">long</a> via_business_bot_id:flags2.0?<a href="/type/long">long</a> reply_to:flags.3?<a href="/type/MessageReplyHeader">MessageReplyHeader</a> date:<a href="/type/int">int</a> message:<a href="/type/string">string</a> media:flags.9?<a href="/type/MessageMedia">MessageMedia</a> reply_markup:flags.6?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.7?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> views:flags.10?<a href="/type/int">int</a> forwards:flags.10?<a href="/type/int">int</a> replies:flags.23?<a href="/type/MessageReplies">MessageReplies</a> edit_date:flags.15?<a href="/type/int">int</a> post_author:flags.16?<a href="/type/string">string</a> grouped_id:flags.17?<a href="/type/long">long</a> reactions:flags.20?<a href="/type/MessageReactions">MessageReactions</a> restriction_reason:flags.22?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> ttl_period:flags.25?<a href="/type/int">int</a> quick_reply_shortcut_id:flags.30?<a href="/type/int">int</a> = <a href="/type/Message">Message</a>;<br>
|
|
<a href="/constructor/peerSettings">peerSettings</a>#acd66c5e flags:<a href="/type/%23">#</a> report_spam:flags.0?<a href="/constructor/true">true</a> add_contact:flags.1?<a href="/constructor/true">true</a> block_contact:flags.2?<a href="/constructor/true">true</a> share_contact:flags.3?<a href="/constructor/true">true</a> need_contacts_exception:flags.4?<a href="/constructor/true">true</a> report_geo:flags.5?<a href="/constructor/true">true</a> autoarchived:flags.7?<a href="/constructor/true">true</a> invite_members:flags.8?<a href="/constructor/true">true</a> request_chat_broadcast:flags.10?<a href="/constructor/true">true</a> business_bot_paused:flags.11?<a href="/constructor/true">true</a> business_bot_can_reply:flags.12?<a href="/constructor/true">true</a> geo_distance:flags.6?<a href="/type/int">int</a> request_chat_title:flags.9?<a href="/type/string">string</a> request_chat_date:flags.9?<a href="/type/int">int</a> business_bot_id:flags.13?<a href="/type/long">long</a> business_bot_manage_url:flags.13?<a href="/type/string">string</a> = <a href="/type/PeerSettings">PeerSettings</a>;<br>
|
|
<a href="/constructor/userFull">userFull</a>#cc997720 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> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.27?<a href="/constructor/true">true</a> wallpaper_overridden:flags.28?<a href="/constructor/true">true</a> contact_require_premium:flags.29?<a href="/constructor/true">true</a> read_dates_private:flags.30?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</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>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/PeerStories">PeerStories</a> business_work_hours:flags2.0?<a href="/type/BusinessWorkHours">BusinessWorkHours</a> business_location:flags2.1?<a href="/type/BusinessLocation">BusinessLocation</a> business_greeting_message:flags2.2?<a href="/type/BusinessGreetingMessage">BusinessGreetingMessage</a> business_away_message:flags2.3?<a href="/type/BusinessAwayMessage">BusinessAwayMessage</a> business_intro:flags2.4?<a href="/type/BusinessIntro">BusinessIntro</a> birthday:flags2.5?<a href="/type/Birthday">Birthday</a> personal_channel_id:flags2.6?<a href="/type/long">long</a> personal_channel_message:flags2.6?<a href="/type/int">int</a> = <a href="/type/UserFull">UserFull</a>;<br>
|
|
<a href="/constructor/stickerSet">stickerSet</a>#2dd14edc flags:<a href="/type/%23">#</a> archived:flags.1?<a href="/constructor/true">true</a> official:flags.2?<a href="/constructor/true">true</a> masks:flags.3?<a href="/constructor/true">true</a> emojis:flags.7?<a href="/constructor/true">true</a> text_color:flags.9?<a href="/constructor/true">true</a> channel_emoji_status:flags.10?<a href="/constructor/true">true</a> creator:flags.11?<a href="/constructor/true">true</a> installed_date:flags.0?<a href="/type/int">int</a> id:<a href="/type/long">long</a> access_hash:<a href="/type/long">long</a> title:<a href="/type/string">string</a> short_name:<a href="/type/string">string</a> thumbs:flags.4?<a href="/type/Vector%20t">Vector</a><<a href="/type/PhotoSize">PhotoSize</a>> thumb_dc_id:flags.4?<a href="/type/int">int</a> thumb_version:flags.4?<a href="/type/int">int</a> thumb_document_id:flags.8?<a href="/type/long">long</a> count:<a href="/type/int">int</a> hash:<a href="/type/int">int</a> = <a href="/type/StickerSet">StickerSet</a>;<br>
|
|
<a href="/constructor/channelFull">channelFull</a>#44c054a7 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> stories_pinned_available:flags2.5?<a href="/constructor/true">true</a> view_forum_as_messages:flags2.6?<a href="/constructor/true">true</a> restricted_sponsored:flags2.11?<a href="/constructor/true">true</a> can_view_revenue:flags2.12?<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> stories:flags2.4?<a href="/type/PeerStories">PeerStories</a> wallpaper:flags2.7?<a href="/type/WallPaper">WallPaper</a> boosts_applied:flags2.8?<a href="/type/int">int</a> boosts_unrestrict:flags2.9?<a href="/type/int">int</a> emojiset:flags2.10?<a href="/type/StickerSet">StickerSet</a> = <a href="/type/ChatFull">ChatFull</a>;<br>
|
|
<a href="/constructor/phoneCall">phoneCall</a>#30535af5 flags:<a href="/type/%23">#</a> p2p_allowed:flags.5?<a href="/constructor/true">true</a> video:flags.6?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> access_hash:<a href="/type/long">long</a> date:<a href="/type/int">int</a> admin_id:<a href="/type/long">long</a> participant_id:<a href="/type/long">long</a> g_a_or_b:<a href="/type/bytes">bytes</a> key_fingerprint:<a href="/type/long">long</a> protocol:<a href="/type/PhoneCallProtocol">PhoneCallProtocol</a> connections:<a href="/type/Vector%20t">Vector</a><<a href="/type/PhoneConnection">PhoneConnection</a>> start_date:<a href="/type/int">int</a> custom_parameters:flags.7?<a href="/type/DataJSON">DataJSON</a> = <a href="/type/PhoneCall">PhoneCall</a>;<br>
|
|
<a href="/constructor/sponsoredMessage">sponsoredMessage</a>#ed5383f7 flags:<a href="/type/%23">#</a> recommended:flags.5?<a href="/constructor/true">true</a> show_peer_photo:flags.6?<a href="/constructor/true">true</a> can_report:flags.12?<a href="/constructor/true">true</a> random_id:<a href="/type/bytes">bytes</a> from_id:flags.3?<a href="/type/Peer">Peer</a> chat_invite:flags.4?<a href="/type/ChatInvite">ChatInvite</a> chat_invite_hash:flags.4?<a href="/type/string">string</a> channel_post:flags.2?<a href="/type/int">int</a> start_param:flags.0?<a href="/type/string">string</a> webpage:flags.9?<a href="/type/SponsoredWebPage">SponsoredWebPage</a> app:flags.10?<a href="/type/BotApp">BotApp</a> message:<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> button_text:flags.11?<a href="/type/string">string</a> sponsor_info:flags.7?<a href="/type/string">string</a> additional_info:flags.8?<a href="/type/string">string</a> = <a href="/type/SponsoredMessage">SponsoredMessage</a>;<br>
|
|
<a href="/constructor/connectedBot">connectedBot</a>#bd068601 flags:<a href="/type/%23">#</a> can_reply:flags.0?<a href="/constructor/true">true</a> bot_id:<a href="/type/long">long</a> recipients:<a href="/type/BusinessBotRecipients">BusinessBotRecipients</a> = <a href="/type/ConnectedBot">ConnectedBot</a>;<br>
|
|
<a href="/constructor/birthday">birthday</a>#6c8e1e06 flags:<a href="/type/%23">#</a> day:<a href="/type/int">int</a> month:<a href="/type/int">int</a> year:flags.0?<a href="/type/int">int</a> = <a href="/type/Birthday">Birthday</a>;<br>
|
|
<a href="/constructor/updateBotBusinessConnect">updateBotBusinessConnect</a>#8ae5c97a connection:<a href="/type/BotBusinessConnection">BotBusinessConnection</a> qts:<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;
|
|
<a href="/constructor/updateBotNewBusinessMessage">updateBotNewBusinessMessage</a>#9ddb347c flags:<a href="/type/%23">#</a> connection_id:<a href="/type/string">string</a> message:<a href="/type/Message">Message</a> reply_to_message:flags.0?<a href="/type/Message">Message</a> qts:<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;
|
|
<a href="/constructor/updateBotEditBusinessMessage">updateBotEditBusinessMessage</a>#07df587c flags:<a href="/type/%23">#</a> connection_id:<a href="/type/string">string</a> message:<a href="/type/Message">Message</a> reply_to_message:flags.0?<a href="/type/Message">Message</a> qts:<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;
|
|
<a href="/constructor/updateBotDeleteBusinessMessage">updateBotDeleteBusinessMessage</a>#a02a982e connection_id:<a href="/type/string">string</a> peer:<a href="/type/Peer">Peer</a> messages:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> qts:<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;<br>
|
|
<a href="/constructor/botBusinessConnection">botBusinessConnection</a>#896433b4 flags:<a href="/type/%23">#</a> can_reply:flags.0?<a href="/constructor/true">true</a> disabled:flags.1?<a href="/constructor/true">true</a> connection_id:<a href="/type/string">string</a> user_id:<a href="/type/long">long</a> dc_id:<a href="/type/int">int</a> date:<a href="/type/int">int</a> = <a href="/type/BotBusinessConnection">BotBusinessConnection</a>;<br>
|
|
<a href="/constructor/inputBusinessIntro">inputBusinessIntro</a>#09c469cd flags:<a href="/type/%23">#</a> title:<a href="/type/string">string</a> description:<a href="/type/string">string</a> sticker:flags.0?<a href="/type/InputDocument">InputDocument</a> = <a href="/type/InputBusinessIntro">InputBusinessIntro</a>;<br>
|
|
<a href="/constructor/businessIntro">businessIntro</a>#5a0a066d flags:<a href="/type/%23">#</a> title:<a href="/type/string">string</a> description:<a href="/type/string">string</a> sticker:flags.0?<a href="/type/Document">Document</a> = <a href="/type/BusinessIntro">BusinessIntro</a>;<br>
|
|
<a href="/constructor/messages.myStickers">messages.myStickers</a>#faff629d count:<a href="/type/int">int</a> sets:<a href="/type/Vector%20t">Vector</a><<a href="/type/StickerSetCovered">StickerSetCovered</a>> = <a href="/type/messages.MyStickers">messages.MyStickers</a>;<br>
|
|
<a href="/constructor/inputCollectibleUsername">inputCollectibleUsername</a>#e39460a9 username:<a href="/type/string">string</a> = <a href="/type/InputCollectible">InputCollectible</a>;
|
|
<a href="/constructor/inputCollectiblePhone">inputCollectiblePhone</a>#a2e214a4 phone:<a href="/type/string">string</a> = <a href="/type/InputCollectible">InputCollectible</a>;<br>
|
|
<a href="/constructor/fragment.collectibleInfo">fragment.collectibleInfo</a>#6ebdff91 purchase_date:<a href="/type/int">int</a> currency:<a href="/type/string">string</a> amount:<a href="/type/long">long</a> crypto_currency:<a href="/type/string">string</a> crypto_amount:<a href="/type/long">long</a> url:<a href="/type/string">string</a> = <a href="/type/fragment.CollectibleInfo">fragment.CollectibleInfo</a>;<br>
|
|
<a href="/constructor/inputBusinessBotRecipients">inputBusinessBotRecipients</a>#c4e5921e flags:<a href="/type/%23">#</a> existing_chats:flags.0?<a href="/constructor/true">true</a> new_chats:flags.1?<a href="/constructor/true">true</a> contacts:flags.2?<a href="/constructor/true">true</a> non_contacts:flags.3?<a href="/constructor/true">true</a> exclude_selected:flags.5?<a href="/constructor/true">true</a> users:flags.4?<a href="/type/Vector%20t">Vector</a><<a href="/type/InputUser">InputUser</a>> exclude_users:flags.6?<a href="/type/Vector%20t">Vector</a><<a href="/type/InputUser">InputUser</a>> = <a href="/type/InputBusinessBotRecipients">InputBusinessBotRecipients</a>;<br>
|
|
<a href="/constructor/businessBotRecipients">businessBotRecipients</a>#b88cf373 flags:<a href="/type/%23">#</a> existing_chats:flags.0?<a href="/constructor/true">true</a> new_chats:flags.1?<a href="/constructor/true">true</a> contacts:flags.2?<a href="/constructor/true">true</a> non_contacts:flags.3?<a href="/constructor/true">true</a> exclude_selected:flags.5?<a href="/constructor/true">true</a> users:flags.4?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> exclude_users:flags.6?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> = <a href="/type/BusinessBotRecipients">BusinessBotRecipients</a>;<br>
|
|
<a href="/constructor/contactBirthday">contactBirthday</a>#1d998733 contact_id:<a href="/type/long">long</a> birthday:<a href="/type/Birthday">Birthday</a> = <a href="/type/ContactBirthday">ContactBirthday</a>;
|
|
<a href="/constructor/contacts.contactBirthdays">contacts.contactBirthdays</a>#114ff30d contacts:<a href="/type/Vector%20t">Vector</a><<a href="/type/ContactBirthday">ContactBirthday</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/contacts.ContactBirthdays">contacts.ContactBirthdays</a>;<br>
|
|
<a href="/constructor/inputPrivacyKeyBirthday">inputPrivacyKeyBirthday</a>#d65a11cc = <a href="/type/InputPrivacyKey">InputPrivacyKey</a>;<br>
|
|
<a href="/constructor/privacyKeyBirthday">privacyKeyBirthday</a>#2000a518 = <a href="/type/PrivacyKey">PrivacyKey</a>;<br>
|
|
<a href="/constructor/inputPrivacyValueAllowPremium">inputPrivacyValueAllowPremium</a>#77cdc9f1 = <a href="/type/InputPrivacyRule">InputPrivacyRule</a>;<br>
|
|
<a href="/constructor/privacyValueAllowPremium">privacyValueAllowPremium</a>#ece9814b = <a href="/type/PrivacyRule">PrivacyRule</a>;<br>
|
|
<a href="/constructor/missingInvitee">missingInvitee</a>#628c9224 flags:<a href="/type/%23">#</a> premium_would_allow_invite:flags.0?<a href="/constructor/true">true</a> premium_required_for_pm:flags.1?<a href="/constructor/true">true</a> user_id:<a href="/type/long">long</a> = <a href="/type/MissingInvitee">MissingInvitee</a>;
|
|
<a href="/constructor/messages.invitedUsers">messages.invitedUsers</a>#7f5defa6 updates:<a href="/type/Updates">Updates</a> missing_invitees:<a href="/type/Vector%20t">Vector</a><<a href="/type/MissingInvitee">MissingInvitee</a>> = <a href="/type/messages.InvitedUsers">messages.InvitedUsers</a>;<br>
|
|
<a href="/constructor/inputBusinessChatLink">inputBusinessChatLink</a>#11679fa7 flags:<a href="/type/%23">#</a> message:<a href="/type/string">string</a> entities:flags.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> title:flags.1?<a href="/type/string">string</a> = <a href="/type/InputBusinessChatLink">InputBusinessChatLink</a>;<br>
|
|
<a href="/constructor/businessChatLink">businessChatLink</a>#b4ae666f flags:<a href="/type/%23">#</a> link:<a href="/type/string">string</a> message:<a href="/type/string">string</a> entities:flags.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> title:flags.1?<a href="/type/string">string</a> views:<a href="/type/int">int</a> = <a href="/type/BusinessChatLink">BusinessChatLink</a>;<br>
|
|
<a href="/constructor/account.businessChatLinks">account.businessChatLinks</a>#ec43a2d1 links:<a href="/type/Vector%20t">Vector</a><<a href="/type/BusinessChatLink">BusinessChatLink</a>> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/account.BusinessChatLinks">account.BusinessChatLinks</a>;
|
|
<a href="/constructor/account.resolvedBusinessChatLinks">account.resolvedBusinessChatLinks</a>#9a23af21 flags:<a href="/type/%23">#</a> peer:<a href="/type/Peer">Peer</a> message:<a href="/type/string">string</a> entities:flags.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/account.ResolvedBusinessChatLinks">account.ResolvedBusinessChatLinks</a>;<br>
|
|
<a href="/constructor/requestedPeerUser">requestedPeerUser</a>#d62ff46a flags:<a href="/type/%23">#</a> user_id:<a href="/type/long">long</a> first_name:flags.0?<a href="/type/string">string</a> last_name:flags.0?<a href="/type/string">string</a> username:flags.1?<a href="/type/string">string</a> photo:flags.2?<a href="/type/Photo">Photo</a> = <a href="/type/RequestedPeer">RequestedPeer</a>;
|
|
<a href="/constructor/requestedPeerChat">requestedPeerChat</a>#7307544f flags:<a href="/type/%23">#</a> chat_id:<a href="/type/long">long</a> title:flags.0?<a href="/type/string">string</a> photo:flags.2?<a href="/type/Photo">Photo</a> = <a href="/type/RequestedPeer">RequestedPeer</a>;
|
|
<a href="/constructor/requestedPeerChannel">requestedPeerChannel</a>#8ba403e4 flags:<a href="/type/%23">#</a> channel_id:<a href="/type/long">long</a> title:flags.0?<a href="/type/string">string</a> username:flags.1?<a href="/type/string">string</a> photo:flags.2?<a href="/type/Photo">Photo</a> = <a href="/type/RequestedPeer">RequestedPeer</a>;<br>
|
|
<a href="/constructor/messageActionRequestedPeerSentMe">messageActionRequestedPeerSentMe</a>#93b31848 button_id:<a href="/type/int">int</a> peers:<a href="/type/Vector%20t">Vector</a><<a href="/type/RequestedPeer">RequestedPeer</a>> = <a href="/type/MessageAction">MessageAction</a>;<br>
|
|
<a href="/constructor/inputKeyboardButtonRequestPeer">inputKeyboardButtonRequestPeer</a>#c9662d05 flags:<a href="/type/%23">#</a> name_requested:flags.0?<a href="/constructor/true">true</a> username_requested:flags.1?<a href="/constructor/true">true</a> photo_requested:flags.2?<a href="/constructor/true">true</a> text:<a href="/type/string">string</a> button_id:<a href="/type/int">int</a> peer_type:<a href="/type/RequestPeerType">RequestPeerType</a> max_quantity:<a href="/type/int">int</a> = <a href="/type/KeyboardButton">KeyboardButton</a>;<br>
|
|
<a href="/constructor/sponsoredMessageReportOption">sponsoredMessageReportOption</a>#430d3150 text:<a href="/type/string">string</a> option:<a href="/type/bytes">bytes</a> = <a href="/type/SponsoredMessageReportOption">SponsoredMessageReportOption</a>;<br>
|
|
<a href="/constructor/channels.sponsoredMessageReportResultChooseOption">channels.sponsoredMessageReportResultChooseOption</a>#846f9e42 title:<a href="/type/string">string</a> options:<a href="/type/Vector%20t">Vector</a><<a href="/type/SponsoredMessageReportOption">SponsoredMessageReportOption</a>> = <a href="/type/channels.SponsoredMessageReportResult">channels.SponsoredMessageReportResult</a>;
|
|
<a href="/constructor/channels.sponsoredMessageReportResultAdsHidden">channels.sponsoredMessageReportResultAdsHidden</a>#3e3bcf2f = <a href="/type/channels.SponsoredMessageReportResult">channels.SponsoredMessageReportResult</a>;
|
|
<a href="/constructor/channels.sponsoredMessageReportResultReported">channels.sponsoredMessageReportResultReported</a>#ad798849 = <a href="/type/channels.SponsoredMessageReportResult">channels.SponsoredMessageReportResult</a>;<br>
|
|
<a href="/constructor/stats.broadcastRevenueStats">stats.broadcastRevenueStats</a>#d07b4bad top_hours_graph:<a href="/type/StatsGraph">StatsGraph</a> revenue_graph:<a href="/type/StatsGraph">StatsGraph</a> current_balance:<a href="/type/long">long</a> available_balance:<a href="/type/long">long</a> overall_revenue:<a href="/type/long">long</a> usd_rate:<a href="/type/double">double</a> = <a href="/type/stats.BroadcastRevenueStats">stats.BroadcastRevenueStats</a>;
|
|
<a href="/constructor/stats.broadcastRevenueWithdrawalUrl">stats.broadcastRevenueWithdrawalUrl</a>#ec659737 url:<a href="/type/string">string</a> = <a href="/type/stats.BroadcastRevenueWithdrawalUrl">stats.BroadcastRevenueWithdrawalUrl</a>;<br>
|
|
<a href="/constructor/broadcastRevenueTransactionProceeds">broadcastRevenueTransactionProceeds</a>#557e2cc4 amount:<a href="/type/long">long</a> from_date:<a href="/type/int">int</a> to_date:<a href="/type/int">int</a> = <a href="/type/BroadcastRevenueTransaction">BroadcastRevenueTransaction</a>;
|
|
<a href="/constructor/broadcastRevenueTransactionWithdrawal">broadcastRevenueTransactionWithdrawal</a>#5a590978 flags:<a href="/type/%23">#</a> pending:flags.0?<a href="/constructor/true">true</a> failed:flags.2?<a href="/constructor/true">true</a> amount:<a href="/type/long">long</a> date:<a href="/type/int">int</a> provider:<a href="/type/string">string</a> transaction_date:flags.1?<a href="/type/int">int</a> transaction_url:flags.1?<a href="/type/string">string</a> = <a href="/type/BroadcastRevenueTransaction">BroadcastRevenueTransaction</a>;
|
|
<a href="/constructor/broadcastRevenueTransactionRefund">broadcastRevenueTransactionRefund</a>#42d30d2e amount:<a href="/type/long">long</a> date:<a href="/type/int">int</a> provider:<a href="/type/string">string</a> = <a href="/type/BroadcastRevenueTransaction">BroadcastRevenueTransaction</a>;<br>
|
|
<a href="/constructor/stats.broadcastRevenueTransactions">stats.broadcastRevenueTransactions</a>#87158466 count:<a href="/type/int">int</a> transactions:<a href="/type/Vector%20t">Vector</a><<a href="/type/BroadcastRevenueTransaction">BroadcastRevenueTransaction</a>> = <a href="/type/stats.BroadcastRevenueTransactions">stats.BroadcastRevenueTransactions</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/messages.addChatUser">messages.addChatUser</a>#cbc6d107 chat_id:<a href="/type/long">long</a> user_id:<a href="/type/InputUser">InputUser</a> fwd_limit:<a href="/type/int">int</a> = <a href="/type/messages.InvitedUsers">messages.InvitedUsers</a>;
|
|
<a href="/method/messages.createChat">messages.createChat</a>#92ceddd4 flags:<a href="/type/%23">#</a> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputUser">InputUser</a>> title:<a href="/type/string">string</a> ttl_period:flags.0?<a href="/type/int">int</a> = <a href="/type/messages.InvitedUsers">messages.InvitedUsers</a>;<br>
|
|
<a href="/method/channels.inviteToChannel">channels.inviteToChannel</a>#c9e33d54 channel:<a href="/type/InputChannel">InputChannel</a> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputUser">InputUser</a>> = <a href="/type/messages.InvitedUsers">messages.InvitedUsers</a>;
|
|
<a href="/method/channels.getAdminedPublicChannels">channels.getAdminedPublicChannels</a>#f8b036af flags:<a href="/type/%23">#</a> by_location:flags.0?<a href="/constructor/true">true</a> check_limit:flags.1?<a href="/constructor/true">true</a> for_personal:flags.2?<a href="/constructor/true">true</a> = <a href="/type/messages.Chats">messages.Chats</a>;<br>
|
|
<a href="/method/stickers.createStickerSet">stickers.createStickerSet</a>#9021ab67 flags:<a href="/type/%23">#</a> masks:flags.0?<a href="/constructor/true">true</a> emojis:flags.5?<a href="/constructor/true">true</a> text_color:flags.6?<a href="/constructor/true">true</a> user_id:<a href="/type/InputUser">InputUser</a> title:<a href="/type/string">string</a> short_name:<a href="/type/string">string</a> thumb:flags.2?<a href="/type/InputDocument">InputDocument</a> stickers:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputStickerSetItem">InputStickerSetItem</a>> software:flags.3?<a href="/type/string">string</a> = <a href="/type/messages.StickerSet">messages.StickerSet</a>;<br>
|
|
<a href="/method/messages.uploadMedia">messages.uploadMedia</a>#14967978 flags:<a href="/type/%23">#</a> business_connection_id:flags.0?<a href="/type/string">string</a> peer:<a href="/type/InputPeer">InputPeer</a> media:<a href="/type/InputMedia">InputMedia</a> = <a href="/type/MessageMedia">MessageMedia</a>;
|
|
<a href="/method/messages.sendQuickReplyMessages">messages.sendQuickReplyMessages</a>#6c750de1 peer:<a href="/type/InputPeer">InputPeer</a> shortcut_id:<a href="/type/int">int</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> random_id:<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> = <a href="/type/Updates">Updates</a>;<br>
|
|
<a href="/method/account.updateConnectedBot">account.updateConnectedBot</a>#43d8521d flags:<a href="/type/%23">#</a> can_reply:flags.0?<a href="/constructor/true">true</a> deleted:flags.1?<a href="/constructor/true">true</a> bot:<a href="/type/InputUser">InputUser</a> recipients:<a href="/type/InputBusinessBotRecipients">InputBusinessBotRecipients</a> = <a href="/type/Updates">Updates</a>;<br>
|
|
<a href="/method/invokeWithBusinessConnection">invokeWithBusinessConnection</a>#dd289f8e {X:Type} connection_id:<a href="/type/string">string</a> query:!X = X;<br>
|
|
<a href="/method/account.getBotBusinessConnection">account.getBotBusinessConnection</a>#76a86270 connection_id:<a href="/type/string">string</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/account.updateBusinessIntro">account.updateBusinessIntro</a>#a614d034 flags:<a href="/type/%23">#</a> intro:flags.0?<a href="/type/InputBusinessIntro">InputBusinessIntro</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/stickers.replaceSticker">stickers.replaceSticker</a>#4696459a sticker:<a href="/type/InputDocument">InputDocument</a> new_sticker:<a href="/type/InputStickerSetItem">InputStickerSetItem</a> = <a href="/type/messages.StickerSet">messages.StickerSet</a>;<br>
|
|
<a href="/method/messages.getMyStickers">messages.getMyStickers</a>#d0b5e1fc offset_id:<a href="/type/long">long</a> limit:<a href="/type/int">int</a> = <a href="/type/messages.MyStickers">messages.MyStickers</a>;<br>
|
|
<a href="/method/fragment.getCollectibleInfo">fragment.getCollectibleInfo</a>#be1e85ba collectible:<a href="/type/InputCollectible">InputCollectible</a> = <a href="/type/fragment.CollectibleInfo">fragment.CollectibleInfo</a>;<br>
|
|
<a href="/method/account.toggleConnectedBotPaused">account.toggleConnectedBotPaused</a>#646e1097 peer:<a href="/type/InputPeer">InputPeer</a> paused:<a href="/type/Bool">Bool</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/account.disablePeerConnectedBot">account.disablePeerConnectedBot</a>#5e437ed9 peer:<a href="/type/InputPeer">InputPeer</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/account.updateBirthday">account.updateBirthday</a>#cc6e0c11 flags:<a href="/type/%23">#</a> birthday:flags.0?<a href="/type/Birthday">Birthday</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/contacts.getBirthdays">contacts.getBirthdays</a>#daeda864 = <a href="/type/contacts.ContactBirthdays">contacts.ContactBirthdays</a>;<br>
|
|
<a href="/method/account.createBusinessChatLink">account.createBusinessChatLink</a>#8851e68e link:<a href="/type/InputBusinessChatLink">InputBusinessChatLink</a> = <a href="/type/BusinessChatLink">BusinessChatLink</a>;
|
|
<a href="/method/account.editBusinessChatLink">account.editBusinessChatLink</a>#8c3410af slug:<a href="/type/string">string</a> link:<a href="/type/InputBusinessChatLink">InputBusinessChatLink</a> = <a href="/type/BusinessChatLink">BusinessChatLink</a>;
|
|
<a href="/method/account.deleteBusinessChatLink">account.deleteBusinessChatLink</a>#60073674 slug:<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/account.getBusinessChatLinks">account.getBusinessChatLinks</a>#6f70dde1 = <a href="/type/account.BusinessChatLinks">account.BusinessChatLinks</a>;
|
|
<a href="/method/account.resolveBusinessChatLink">account.resolveBusinessChatLink</a>#5492e5ee slug:<a href="/type/string">string</a> = <a href="/type/account.ResolvedBusinessChatLinks">account.ResolvedBusinessChatLinks</a>;
|
|
<a href="/method/account.updatePersonalChannel">account.updatePersonalChannel</a>#d94305e0 channel:<a href="/type/InputChannel">InputChannel</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/channels.reportSponsoredMessage">channels.reportSponsoredMessage</a>#af8ff6b9 channel:<a href="/type/InputChannel">InputChannel</a> random_id:<a href="/type/bytes">bytes</a> option:<a href="/type/bytes">bytes</a> = <a href="/type/channels.SponsoredMessageReportResult">channels.SponsoredMessageReportResult</a>;<br>
|
|
<a href="/method/stats.getBroadcastRevenueStats">stats.getBroadcastRevenueStats</a>#75dfb671 flags:<a href="/type/%23">#</a> dark:flags.0?<a href="/constructor/true">true</a> channel:<a href="/type/InputChannel">InputChannel</a> = <a href="/type/stats.BroadcastRevenueStats">stats.BroadcastRevenueStats</a>;
|
|
<a href="/method/stats.getBroadcastRevenueWithdrawalUrl">stats.getBroadcastRevenueWithdrawalUrl</a>#2a65ef73 channel:<a href="/type/InputChannel">InputChannel</a> password:<a href="/type/InputCheckPasswordSRP">InputCheckPasswordSRP</a> = <a href="/type/stats.BroadcastRevenueWithdrawalUrl">stats.BroadcastRevenueWithdrawalUrl</a>;
|
|
<a href="/method/stats.getBroadcastRevenueTransactions">stats.getBroadcastRevenueTransactions</a>#0069280f channel:<a href="/type/InputChannel">InputChannel</a> offset:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> = <a href="/type/stats.BroadcastRevenueTransactions">stats.BroadcastRevenueTransactions</a>;<br>
|
|
<a href="/method/channels.restrictSponsoredMessages">channels.restrictSponsoredMessages</a>#9ae91519 channel:<a href="/type/InputChannel">InputChannel</a> restricted:<a href="/type/Bool">Bool</a> = <a href="/type/Updates">Updates</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-176" id="layer-176" name="layer-176"><i class="anchor-icon"></i></a><a href="/schema?layer=176">Layer 176</a></h3>
|
|
<p>This layer introduces <a href="/api/business">Telegram Business »</a>, with a plethora of new features:</p>
|
|
<ul>
|
|
<li><a href="/api/business#opening-hours">Telegram Business opening hours »</a></li>
|
|
<li><a href="/api/business#location">Telegram Business location »</a></li>
|
|
<li><a href="/api/business#quick-reply-shortcuts">Telegram Business quick reply shortcuts »</a></li>
|
|
<li><a href="/api/business#greeting-messages">Telegram Business greeting messages »</a></li>
|
|
<li><a href="/api/business#away-messages">Telegram Business away messages »</a></li>
|
|
<li><a href="/api/business#connected-bots">Telegram Business connected bots »</a> (user-side constructors)</li>
|
|
<li><a href="/api/business#folder-tags">Telegram Business folder tags »</a></li>
|
|
<li><a href="/api/business#business-features-promo-page">Telegram Business promo page »</a></li>
|
|
</ul>
|
|
<p>The following new <a href="/api/premium#telegram-premium-features">Telegram Premium feature indentifiers »</a> were added:</p>
|
|
<ul>
|
|
<li><code>business</code></li>
|
|
</ul>
|
|
<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/help.getTimezonesList">help.getTimezonesList</a> - Returns timezone information that may be used elsewhere in the API, such as to set <a href="/api/business#opening-hours">Telegram Business opening hours »</a>.</li>
|
|
<li>Added <a href="/method/account.updateBusinessWorkHours">account.updateBusinessWorkHours</a> - Specify a set of <a href="/api/business#opening-hours">Telegram Business opening hours</a>. </li>
|
|
<li>Added <a href="/method/account.updateBusinessLocation">account.updateBusinessLocation</a> - <a href="/api/business#location">Businesses »</a> may advertise their location using this method, see <a href="/api/business#location">here »</a> for more info.</li>
|
|
<li>Added <a href="/method/account.updateBusinessGreetingMessage">account.updateBusinessGreetingMessage</a> - Set a list of <a href="/api/business#greeting-messages">Telegram Business greeting messages</a>.</li>
|
|
<li>Added <a href="/method/account.updateBusinessAwayMessage">account.updateBusinessAwayMessage</a> - Set a list of <a href="/api/business#away-messages">Telegram Business away messages</a>.</li>
|
|
<li>Added <a href="/method/messages.getQuickReplies">messages.getQuickReplies</a> - Fetch basic info about all existing <a href="/api/business#quick-reply-shortcuts">quick reply shortcuts</a>.</li>
|
|
<li>Added <a href="/method/messages.reorderQuickReplies">messages.reorderQuickReplies</a> - Reorder <a href="/api/business#quick-reply-shortcuts">quick reply shortcuts</a>.</li>
|
|
<li>Added <a href="/method/messages.checkQuickReplyShortcut">messages.checkQuickReplyShortcut</a> - Before offering the user the choice to add a message to a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut</a>, to make sure that none of the limits specified <a href="/api/business#quick-reply-shortcuts">here »</a> were reached.</li>
|
|
<li>Added <a href="/method/messages.editQuickReplyShortcut">messages.editQuickReplyShortcut</a> - Rename a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut</a>. </li>
|
|
<li>Added <a href="/method/messages.deleteQuickReplyShortcut">messages.deleteQuickReplyShortcut</a> - Completely delete a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut</a>. </li>
|
|
<li>Added <a href="/method/messages.getQuickReplyMessages">messages.getQuickReplyMessages</a> - Fetch (a subset or all) messages in a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut »</a>.</li>
|
|
<li>Added <a href="/method/messages.sendQuickReplyMessages">messages.sendQuickReplyMessages</a> - Send a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut »</a>.</li>
|
|
<li>Added <a href="/method/messages.deleteQuickReplyMessages">messages.deleteQuickReplyMessages</a> - Delete one or more messages from a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut</a>. This will also emit an <a href="/constructor/updateDeleteQuickReplyMessages">updateDeleteQuickReplyMessages</a> update.</li>
|
|
<li>Added <a href="/method/account.updateConnectedBot">account.updateConnectedBot</a> - Connect a <a href="/api/business#connected-bots">business bot »</a> to the current account, or to change the current connection settings.</li>
|
|
<li>Added <a href="/method/account.getConnectedBots">account.getConnectedBots</a> - List all currently connected <a href="/api/business#connected-bots">business bots »</a></li>
|
|
<li>Added <a href="/method/messages.toggleDialogFilterTags">messages.toggleDialogFilterTags</a> - Enable or disable <a href="/api/folders#folder-tags">folder tags »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Added <strong>quick_reply_shortcut</strong> parameter in <a href="/method/messages.sendMessage">messages.sendMessage</a></li>
|
|
<li>Added <strong>quick_reply_shortcut</strong> parameter in <a href="/method/messages.sendMedia">messages.sendMedia</a></li>
|
|
<li>Added <strong>quick_reply_shortcut</strong> parameter in <a href="/method/messages.forwardMessages">messages.forwardMessages</a></li>
|
|
<li>Added <strong>quick_reply_shortcut</strong> parameter in <a href="/method/messages.sendInlineBotResult">messages.sendInlineBotResult</a></li>
|
|
<li>Added <strong>quick_reply_shortcut_id</strong> parameter in <a href="/method/messages.editMessage">messages.editMessage</a></li>
|
|
<li>Added <strong>quick_reply_shortcut</strong> parameter in <a href="/method/messages.sendMultiMedia">messages.sendMultiMedia</a></li>
|
|
<li>Changed type of <a href="/method/messages.getDialogFilters">messages.getDialogFilters</a> from <strong>Vector<DialogFilter></strong> to <strong>messages.DialogFilters</strong></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>
|
|
<li>Added <a href="/constructor/businessWeeklyOpen">businessWeeklyOpen</a> - A time interval, indicating the opening hours of a business.</li>
|
|
<li>Added <a href="/constructor/businessWorkHours">businessWorkHours</a> - Specifies a set of <a href="/api/business#opening-hours">Telegram Business opening hours</a>.</li>
|
|
<li>Added <a href="/constructor/businessLocation">businessLocation</a> - Represents the location of a <a href="/api/business#location">Telegram Business »</a>.</li>
|
|
<li>Added <a href="/constructor/inputBusinessRecipients">inputBusinessRecipients</a> - Specifies the chats that <strong>can</strong> receive Telegram Business <a href="/api/business#away-messages">away »</a> and <a href="/api/business#greeting-messages">greeting »</a> messages.</li>
|
|
<li>Added <a href="/constructor/businessRecipients">businessRecipients</a> - Specifies the chats that <strong>can</strong> receive Telegram Business <a href="/api/business#away-messages">away »</a> and <a href="/api/business#greeting-messages">greeting »</a> messages.</li>
|
|
<li>Added <a href="/constructor/businessAwayMessageScheduleAlways">businessAwayMessageScheduleAlways</a> - Always send <a href="/api/business#away-messages">Telegram Business away messages</a> to users writing to us in private.</li>
|
|
<li>Added <a href="/constructor/businessAwayMessageScheduleOutsideWorkHours">businessAwayMessageScheduleOutsideWorkHours</a> - Send <a href="/api/business#away-messages">Telegram Business away messages</a> to users writing to us in private outside of the configured <a href="/api/business#opening-hours">Telegram Business working hours</a>.</li>
|
|
<li>Added <a href="/constructor/businessAwayMessageScheduleCustom">businessAwayMessageScheduleCustom</a> - Send <a href="/api/business#away-messages">Telegram Business away messages</a> to users writing to us in private in the specified time span.</li>
|
|
<li>Added <a href="/constructor/inputBusinessGreetingMessage">inputBusinessGreetingMessage</a> - Describes a <a href="/api/business#greeting-messages">Telegram Business greeting</a>, automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.</li>
|
|
<li>Added <a href="/constructor/businessGreetingMessage">businessGreetingMessage</a> - Describes a <a href="/api/business#greeting-messages">Telegram Business greeting</a>, automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.</li>
|
|
<li>Added <a href="/constructor/inputBusinessAwayMessage">inputBusinessAwayMessage</a> - Describes a <a href="/api/business#away-messages">Telegram Business away message</a>, automatically sent to users writing to us when we're offline, during closing hours, while we're on vacation, or in some other custom time period when we cannot immediately answer to the user.</li>
|
|
<li>Added <a href="/constructor/businessAwayMessage">businessAwayMessage</a> - Describes a <a href="/api/business#away-messages">Telegram Business away message</a>, automatically sent to users writing to us when we're offline, during closing hours, while we're on vacation, or in some other custom time period when we cannot immediately answer to the user.</li>
|
|
<li>Added <a href="/constructor/timezone">timezone</a> - Timezone information.</li>
|
|
<li>Added <a href="/constructor/help.timezonesListNotModified">help.timezonesListNotModified</a> - The timezone list has not changed.</li>
|
|
<li>Added <a href="/constructor/help.timezonesList">help.timezonesList</a> - Timezone information that may be used elsewhere in the API, such as to set <a href="/api/business#opening-hours">Telegram Business opening hours »</a>.</li>
|
|
<li>Added <a href="/constructor/quickReply">quickReply</a> - A <a href="/api/business#quick-reply-shortcuts">quick reply shortcut</a>.</li>
|
|
<li>Added <a href="/constructor/inputQuickReplyShortcut">inputQuickReplyShortcut</a> - Selects a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut</a> by name.</li>
|
|
<li>Added <a href="/constructor/inputQuickReplyShortcutId">inputQuickReplyShortcutId</a> - Selects a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut</a> by its numeric ID.</li>
|
|
<li>Added <a href="/constructor/messages.quickReplies">messages.quickReplies</a> - Info about <a href="/api/business#quick-reply-shortcuts">quick reply shortcuts »</a>.</li>
|
|
<li>Added <a href="/constructor/messages.quickRepliesNotModified">messages.quickRepliesNotModified</a> - Info about <a href="/api/business#quick-reply-shortcuts">quick reply shortcuts »</a> hasn't changed.</li>
|
|
<li>Added <a href="/constructor/updateQuickReplies">updateQuickReplies</a> - Info about or the order of <a href="/api/business#quick-reply-shortcuts">quick reply shortcuts »</a> was changed.</li>
|
|
<li>Added <a href="/constructor/updateNewQuickReply">updateNewQuickReply</a> - A new <a href="/api/business#quick-reply-shortcuts">quick reply shortcut »</a> was created.</li>
|
|
<li>Added <a href="/constructor/updateDeleteQuickReply">updateDeleteQuickReply</a> - A <a href="/api/business#quick-reply-shortcuts">quick reply shortcut »</a> was deleted. This will <strong>not</strong> emit <a href="/constructor/updateDeleteQuickReplyMessages">updateDeleteQuickReplyMessages</a> updates, even if all the messages in the shortcut are also deleted by this update.</li>
|
|
<li>Added <a href="/constructor/updateQuickReplyMessage">updateQuickReplyMessage</a> - A new message was added to a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut »</a>.</li>
|
|
<li>Added <a href="/constructor/updateDeleteQuickReplyMessages">updateDeleteQuickReplyMessages</a> - One or more messages in a <a href="/api/business#quick-reply-shortcuts">quick reply shortcut »</a> were deleted.</li>
|
|
<li>Added <a href="/constructor/connectedBot">connectedBot</a> - Contains info about a <a href="/api/business#connected-bots">connected business bot »</a>.</li>
|
|
<li>Added <a href="/constructor/account.connectedBots">account.connectedBots</a> - Info about currently connected <a href="/api/business#connected-bots">business bots</a>.</li>
|
|
<li>Added <a href="/constructor/messages.dialogFilters">messages.dialogFilters</a> - <a href="/api/folders">Folder and folder tags</a> information</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>quick_reply_shortcut_id</strong> parameter in <a href="/constructor/message">message</a></li>
|
|
<li>Added <strong>flags2</strong>, <strong>business_work_hours</strong>, <strong>business_location</strong>, <strong>business_greeting_message</strong>, <strong>business_away_message</strong> parameters in <a href="/constructor/userFull">userFull</a></li>
|
|
<li>Added <strong>bot_business</strong> parameter in <a href="/constructor/user">user</a></li>
|
|
<li>Added <strong>color</strong> parameter in <a href="/constructor/dialogFilter">dialogFilter</a></li>
|
|
<li>Added <strong>color</strong> parameter in <a href="/constructor/dialogFilterChatlist">dialogFilterChatlist</a></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/message">message</a>#a66c7efc flags:<a href="/type/%23">#</a> out:flags.1?<a href="/constructor/true">true</a> mentioned:flags.4?<a href="/constructor/true">true</a> media_unread:flags.5?<a href="/constructor/true">true</a> silent:flags.13?<a href="/constructor/true">true</a> post:flags.14?<a href="/constructor/true">true</a> from_scheduled:flags.18?<a href="/constructor/true">true</a> legacy:flags.19?<a href="/constructor/true">true</a> edit_hide:flags.21?<a href="/constructor/true">true</a> pinned:flags.24?<a href="/constructor/true">true</a> noforwards:flags.26?<a href="/constructor/true">true</a> invert_media:flags.27?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> from_id:flags.8?<a href="/type/Peer">Peer</a> from_boosts_applied:flags.29?<a href="/type/int">int</a> peer_id:<a href="/type/Peer">Peer</a> saved_peer_id:flags.28?<a href="/type/Peer">Peer</a> fwd_from:flags.2?<a href="/type/MessageFwdHeader">MessageFwdHeader</a> via_bot_id:flags.11?<a href="/type/long">long</a> reply_to:flags.3?<a href="/type/MessageReplyHeader">MessageReplyHeader</a> date:<a href="/type/int">int</a> message:<a href="/type/string">string</a> media:flags.9?<a href="/type/MessageMedia">MessageMedia</a> reply_markup:flags.6?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.7?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> views:flags.10?<a href="/type/int">int</a> forwards:flags.10?<a href="/type/int">int</a> replies:flags.23?<a href="/type/MessageReplies">MessageReplies</a> edit_date:flags.15?<a href="/type/int">int</a> post_author:flags.16?<a href="/type/string">string</a> grouped_id:flags.17?<a href="/type/long">long</a> reactions:flags.20?<a href="/type/MessageReactions">MessageReactions</a> restriction_reason:flags.22?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> ttl_period:flags.25?<a href="/type/int">int</a> quick_reply_shortcut_id:flags.30?<a href="/type/int">int</a> = <a href="/type/Message">Message</a>;<br>
|
|
<a href="/constructor/userFull">userFull</a>#22ff3e85 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> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.27?<a href="/constructor/true">true</a> wallpaper_overridden:flags.28?<a href="/constructor/true">true</a> contact_require_premium:flags.29?<a href="/constructor/true">true</a> read_dates_private:flags.30?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</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>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/PeerStories">PeerStories</a> business_work_hours:flags2.0?<a href="/type/BusinessWorkHours">BusinessWorkHours</a> business_location:flags2.1?<a href="/type/BusinessLocation">BusinessLocation</a> business_greeting_message:flags2.2?<a href="/type/BusinessGreetingMessage">BusinessGreetingMessage</a> business_away_message:flags2.3?<a href="/type/BusinessAwayMessage">BusinessAwayMessage</a> = <a href="/type/UserFull">UserFull</a>;
|
|
<a href="/constructor/user">user</a>#215c4438 flags:<a href="/type/%23">#</a> self:flags.10?<a href="/constructor/true">true</a> contact:flags.11?<a href="/constructor/true">true</a> mutual_contact:flags.12?<a href="/constructor/true">true</a> deleted:flags.13?<a href="/constructor/true">true</a> bot:flags.14?<a href="/constructor/true">true</a> bot_chat_history:flags.15?<a href="/constructor/true">true</a> bot_nochats:flags.16?<a href="/constructor/true">true</a> verified:flags.17?<a href="/constructor/true">true</a> restricted:flags.18?<a href="/constructor/true">true</a> min:flags.20?<a href="/constructor/true">true</a> bot_inline_geo:flags.21?<a href="/constructor/true">true</a> support:flags.23?<a href="/constructor/true">true</a> scam:flags.24?<a href="/constructor/true">true</a> apply_min_photo:flags.25?<a href="/constructor/true">true</a> fake:flags.26?<a href="/constructor/true">true</a> bot_attach_menu:flags.27?<a href="/constructor/true">true</a> premium:flags.28?<a href="/constructor/true">true</a> attach_menu_enabled:flags.29?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> bot_can_edit:flags2.1?<a href="/constructor/true">true</a> close_friend:flags2.2?<a href="/constructor/true">true</a> stories_hidden:flags2.3?<a href="/constructor/true">true</a> stories_unavailable:flags2.4?<a href="/constructor/true">true</a> contact_require_premium:flags2.10?<a href="/constructor/true">true</a> bot_business:flags2.11?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> access_hash:flags.0?<a href="/type/long">long</a> first_name:flags.1?<a href="/type/string">string</a> last_name:flags.2?<a href="/type/string">string</a> username:flags.3?<a href="/type/string">string</a> phone:flags.4?<a href="/type/string">string</a> photo:flags.5?<a href="/type/UserProfilePhoto">UserProfilePhoto</a> status:flags.6?<a href="/type/UserStatus">UserStatus</a> bot_info_version:flags.14?<a href="/type/int">int</a> restriction_reason:flags.18?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href="/type/string">string</a> lang_code:flags.22?<a href="/type/string">string</a> emoji_status:flags.30?<a href="/type/EmojiStatus">EmojiStatus</a> usernames:flags2.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/Username">Username</a>> stories_max_id:flags2.5?<a href="/type/int">int</a> color:flags2.8?<a href="/type/PeerColor">PeerColor</a> profile_color:flags2.9?<a href="/type/PeerColor">PeerColor</a> = <a href="/type/User">User</a>;<br>
|
|
<a href="/constructor/dialogFilter">dialogFilter</a>#5fb5523b flags:<a href="/type/%23">#</a> contacts:flags.0?<a href="/constructor/true">true</a> non_contacts:flags.1?<a href="/constructor/true">true</a> groups:flags.2?<a href="/constructor/true">true</a> broadcasts:flags.3?<a href="/constructor/true">true</a> bots:flags.4?<a href="/constructor/true">true</a> exclude_muted:flags.11?<a href="/constructor/true">true</a> exclude_read:flags.12?<a href="/constructor/true">true</a> exclude_archived:flags.13?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> title:<a href="/type/string">string</a> emoticon:flags.25?<a href="/type/string">string</a> color:flags.27?<a href="/type/int">int</a> pinned_peers:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPeer">InputPeer</a>> include_peers:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPeer">InputPeer</a>> exclude_peers:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPeer">InputPeer</a>> = <a href="/type/DialogFilter">DialogFilter</a>;
|
|
<a href="/constructor/dialogFilterChatlist">dialogFilterChatlist</a>#9fe28ea4 flags:<a href="/type/%23">#</a> has_my_invites:flags.26?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> title:<a href="/type/string">string</a> emoticon:flags.25?<a href="/type/string">string</a> color:flags.27?<a href="/type/int">int</a> pinned_peers:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPeer">InputPeer</a>> include_peers:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputPeer">InputPeer</a>> = <a href="/type/DialogFilter">DialogFilter</a>;<br>
|
|
<a href="/constructor/smsjobs.eligibleToJoin">smsjobs.eligibleToJoin</a>#dc8b44cf terms_url:<a href="/type/string">string</a> monthly_sent_sms:<a href="/type/int">int</a> = <a href="/type/smsjobs.EligibilityToJoin">smsjobs.EligibilityToJoin</a>;
|
|
<a href="/constructor/smsjobs.status">smsjobs.status</a>#2aee9191 flags:<a href="/type/%23">#</a> allow_international:flags.0?<a href="/constructor/true">true</a> recent_sent:<a href="/type/int">int</a> recent_since:<a href="/type/int">int</a> recent_remains:<a href="/type/int">int</a> total_sent:<a href="/type/int">int</a> total_since:<a href="/type/int">int</a> last_gift_slug:flags.1?<a href="/type/string">string</a> terms_url:<a href="/type/string">string</a> = <a href="/type/smsjobs.Status">smsjobs.Status</a>;<br>
|
|
<a href="/constructor/updateSmsJob">updateSmsJob</a>#f16269d4 job_id:<a href="/type/string">string</a> = <a href="/type/Update">Update</a>;<br>
|
|
<a href="/constructor/smsJob">smsJob</a>#e6a1eeb8 job_id:<a href="/type/string">string</a> phone_number:<a href="/type/string">string</a> text:<a href="/type/string">string</a> = <a href="/type/SmsJob">SmsJob</a>;<br>
|
|
<a href="/constructor/businessWeeklyOpen">businessWeeklyOpen</a>#120b1ab9 start_minute:<a href="/type/int">int</a> end_minute:<a href="/type/int">int</a> = <a href="/type/BusinessWeeklyOpen">BusinessWeeklyOpen</a>;
|
|
<a href="/constructor/businessWorkHours">businessWorkHours</a>#8c92b098 flags:<a href="/type/%23">#</a> open_now:flags.0?<a href="/constructor/true">true</a> timezone_id:<a href="/type/string">string</a> weekly_open:<a href="/type/Vector%20t">Vector</a><<a href="/type/BusinessWeeklyOpen">BusinessWeeklyOpen</a>> = <a href="/type/BusinessWorkHours">BusinessWorkHours</a>;
|
|
<a href="/constructor/businessLocation">businessLocation</a>#ac5c1af7 flags:<a href="/type/%23">#</a> geo_point:flags.0?<a href="/type/GeoPoint">GeoPoint</a> address:<a href="/type/string">string</a> = <a href="/type/BusinessLocation">BusinessLocation</a>;<br>
|
|
<a href="/constructor/inputBusinessRecipients">inputBusinessRecipients</a>#6f8b32aa flags:<a href="/type/%23">#</a> existing_chats:flags.0?<a href="/constructor/true">true</a> new_chats:flags.1?<a href="/constructor/true">true</a> contacts:flags.2?<a href="/constructor/true">true</a> non_contacts:flags.3?<a href="/constructor/true">true</a> exclude_selected:flags.5?<a href="/constructor/true">true</a> users:flags.4?<a href="/type/Vector%20t">Vector</a><<a href="/type/InputUser">InputUser</a>> = <a href="/type/InputBusinessRecipients">InputBusinessRecipients</a>;<br>
|
|
<a href="/constructor/businessRecipients">businessRecipients</a>#21108ff7 flags:<a href="/type/%23">#</a> existing_chats:flags.0?<a href="/constructor/true">true</a> new_chats:flags.1?<a href="/constructor/true">true</a> contacts:flags.2?<a href="/constructor/true">true</a> non_contacts:flags.3?<a href="/constructor/true">true</a> exclude_selected:flags.5?<a href="/constructor/true">true</a> users:flags.4?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> = <a href="/type/BusinessRecipients">BusinessRecipients</a>;
|
|
<a href="/constructor/businessAwayMessageScheduleAlways">businessAwayMessageScheduleAlways</a>#c9b9e2b9 = <a href="/type/BusinessAwayMessageSchedule">BusinessAwayMessageSchedule</a>;
|
|
<a href="/constructor/businessAwayMessageScheduleOutsideWorkHours">businessAwayMessageScheduleOutsideWorkHours</a>#c3f2f501 = <a href="/type/BusinessAwayMessageSchedule">BusinessAwayMessageSchedule</a>;
|
|
<a href="/constructor/businessAwayMessageScheduleCustom">businessAwayMessageScheduleCustom</a>#cc4d9ecc start_date:<a href="/type/int">int</a> end_date:<a href="/type/int">int</a> = <a href="/type/BusinessAwayMessageSchedule">BusinessAwayMessageSchedule</a>;<br>
|
|
<a href="/constructor/inputBusinessGreetingMessage">inputBusinessGreetingMessage</a>#0194cb3b shortcut_id:<a href="/type/int">int</a> recipients:<a href="/type/InputBusinessRecipients">InputBusinessRecipients</a> no_activity_days:<a href="/type/int">int</a> = <a href="/type/InputBusinessGreetingMessage">InputBusinessGreetingMessage</a>;<br>
|
|
<a href="/constructor/businessGreetingMessage">businessGreetingMessage</a>#e519abab shortcut_id:<a href="/type/int">int</a> recipients:<a href="/type/BusinessRecipients">BusinessRecipients</a> no_activity_days:<a href="/type/int">int</a> = <a href="/type/BusinessGreetingMessage">BusinessGreetingMessage</a>;<br>
|
|
<a href="/constructor/inputBusinessAwayMessage">inputBusinessAwayMessage</a>#832175e0 flags:<a href="/type/%23">#</a> offline_only:flags.0?<a href="/constructor/true">true</a> shortcut_id:<a href="/type/int">int</a> schedule:<a href="/type/BusinessAwayMessageSchedule">BusinessAwayMessageSchedule</a> recipients:<a href="/type/InputBusinessRecipients">InputBusinessRecipients</a> = <a href="/type/InputBusinessAwayMessage">InputBusinessAwayMessage</a>;<br>
|
|
<a href="/constructor/businessAwayMessage">businessAwayMessage</a>#ef156a5c flags:<a href="/type/%23">#</a> offline_only:flags.0?<a href="/constructor/true">true</a> shortcut_id:<a href="/type/int">int</a> schedule:<a href="/type/BusinessAwayMessageSchedule">BusinessAwayMessageSchedule</a> recipients:<a href="/type/BusinessRecipients">BusinessRecipients</a> = <a href="/type/BusinessAwayMessage">BusinessAwayMessage</a>;<br>
|
|
<a href="/constructor/timezone">timezone</a>#ff9289f5 id:<a href="/type/string">string</a> name:<a href="/type/string">string</a> utc_offset:<a href="/type/int">int</a> = <a href="/type/Timezone">Timezone</a>;<br>
|
|
<a href="/constructor/help.timezonesListNotModified">help.timezonesListNotModified</a>#970708cc = <a href="/type/help.TimezonesList">help.TimezonesList</a>;
|
|
<a href="/constructor/help.timezonesList">help.timezonesList</a>#7b74ed71 timezones:<a href="/type/Vector%20t">Vector</a><<a href="/type/Timezone">Timezone</a>> hash:<a href="/type/int">int</a> = <a href="/type/help.TimezonesList">help.TimezonesList</a>;<br>
|
|
<a href="/constructor/quickReply">quickReply</a>#0697102b shortcut_id:<a href="/type/int">int</a> shortcut:<a href="/type/string">string</a> top_message:<a href="/type/int">int</a> count:<a href="/type/int">int</a> = <a href="/type/QuickReply">QuickReply</a>;<br>
|
|
<a href="/constructor/inputQuickReplyShortcut">inputQuickReplyShortcut</a>#24596d41 shortcut:<a href="/type/string">string</a> = <a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a>;
|
|
<a href="/constructor/inputQuickReplyShortcutId">inputQuickReplyShortcutId</a>#01190cf1 shortcut_id:<a href="/type/int">int</a> = <a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a>;<br>
|
|
<a href="/constructor/messages.quickReplies">messages.quickReplies</a>#c68d6695 quick_replies:<a href="/type/Vector%20t">Vector</a><<a href="/type/QuickReply">QuickReply</a>> messages:<a href="/type/Vector%20t">Vector</a><<a href="/type/Message">Message</a>> chats:<a href="/type/Vector%20t">Vector</a><<a href="/type/Chat">Chat</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/messages.QuickReplies">messages.QuickReplies</a>;
|
|
<a href="/constructor/messages.quickRepliesNotModified">messages.quickRepliesNotModified</a>#5f91eb5b = <a href="/type/messages.QuickReplies">messages.QuickReplies</a>;<br>
|
|
<a href="/constructor/updateQuickReplies">updateQuickReplies</a>#f9470ab2 quick_replies:<a href="/type/Vector%20t">Vector</a><<a href="/type/QuickReply">QuickReply</a>> = <a href="/type/Update">Update</a>;
|
|
<a href="/constructor/updateNewQuickReply">updateNewQuickReply</a>#f53da717 quick_reply:<a href="/type/QuickReply">QuickReply</a> = <a href="/type/Update">Update</a>;
|
|
<a href="/constructor/updateDeleteQuickReply">updateDeleteQuickReply</a>#53e6f1ec shortcut_id:<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;
|
|
<a href="/constructor/updateQuickReplyMessage">updateQuickReplyMessage</a>#3e050d0f message:<a href="/type/Message">Message</a> = <a href="/type/Update">Update</a>;
|
|
<a href="/constructor/updateDeleteQuickReplyMessages">updateDeleteQuickReplyMessages</a>#566fe7cd shortcut_id:<a href="/type/int">int</a> messages:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Update">Update</a>;<br>
|
|
<a href="/constructor/connectedBot">connectedBot</a>#e7e999e7 flags:<a href="/type/%23">#</a> can_reply:flags.0?<a href="/constructor/true">true</a> bot_id:<a href="/type/long">long</a> recipients:<a href="/type/BusinessRecipients">BusinessRecipients</a> = <a href="/type/ConnectedBot">ConnectedBot</a>;<br>
|
|
<a href="/constructor/account.connectedBots">account.connectedBots</a>#17d7f87b connected_bots:<a href="/type/Vector%20t">Vector</a><<a href="/type/ConnectedBot">ConnectedBot</a>> users:<a href="/type/Vector%20t">Vector</a><<a href="/type/User">User</a>> = <a href="/type/account.ConnectedBots">account.ConnectedBots</a>;<br>
|
|
<a href="/constructor/messages.dialogFilters">messages.dialogFilters</a>#2ad93719 flags:<a href="/type/%23">#</a> tags_enabled:flags.0?<a href="/constructor/true">true</a> filters:<a href="/type/Vector%20t">Vector</a><<a href="/type/DialogFilter">DialogFilter</a>> = <a href="/type/messages.DialogFilters">messages.DialogFilters</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/messages.sendMessage">messages.sendMessage</a>#dff8042c flags:<a href="/type/%23">#</a> no_webpage:flags.1?<a href="/constructor/true">true</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> invert_media:flags.16?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> message:<a href="/type/string">string</a> random_id:<a href="/type/long">long</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> quick_reply_shortcut:flags.17?<a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.sendMedia">messages.sendMedia</a>#7bd66041 flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> invert_media:flags.16?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> media:<a href="/type/InputMedia">InputMedia</a> message:<a href="/type/string">string</a> random_id:<a href="/type/long">long</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> quick_reply_shortcut:flags.17?<a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.forwardMessages">messages.forwardMessages</a>#d5039208 flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> with_my_score:flags.8?<a href="/constructor/true">true</a> drop_author:flags.11?<a href="/constructor/true">true</a> drop_media_captions:flags.12?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> from_peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> random_id:<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> to_peer:<a href="/type/InputPeer">InputPeer</a> top_msg_id:flags.9?<a href="/type/int">int</a> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> quick_reply_shortcut:flags.17?<a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.sendInlineBotResult">messages.sendInlineBotResult</a>#3ebee86a flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> hide_via:flags.11?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> random_id:<a href="/type/long">long</a> query_id:<a href="/type/long">long</a> id:<a href="/type/string">string</a> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> quick_reply_shortcut:flags.17?<a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.editMessage">messages.editMessage</a>#dfd14005 flags:<a href="/type/%23">#</a> no_webpage:flags.1?<a href="/constructor/true">true</a> invert_media:flags.16?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> id:<a href="/type/int">int</a> message:flags.11?<a href="/type/string">string</a> media:flags.14?<a href="/type/InputMedia">InputMedia</a> reply_markup:flags.2?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> schedule_date:flags.15?<a href="/type/int">int</a> quick_reply_shortcut_id:flags.17?<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.sendMultiMedia">messages.sendMultiMedia</a>#0c964709 flags:<a href="/type/%23">#</a> silent:flags.5?<a href="/constructor/true">true</a> background:flags.6?<a href="/constructor/true">true</a> clear_draft:flags.7?<a href="/constructor/true">true</a> noforwards:flags.14?<a href="/constructor/true">true</a> update_stickersets_order:flags.15?<a href="/constructor/true">true</a> invert_media:flags.16?<a href="/constructor/true">true</a> peer:<a href="/type/InputPeer">InputPeer</a> reply_to:flags.0?<a href="/type/InputReplyTo">InputReplyTo</a> multi_media:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputSingleMedia">InputSingleMedia</a>> schedule_date:flags.10?<a href="/type/int">int</a> send_as:flags.13?<a href="/type/InputPeer">InputPeer</a> quick_reply_shortcut:flags.17?<a href="/type/InputQuickReplyShortcut">InputQuickReplyShortcut</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.getDialogFilters">messages.getDialogFilters</a>#efd48c89 = <a href="/type/messages.DialogFilters">messages.DialogFilters</a>;<br>
|
|
<a href="/method/smsjobs.isEligibleToJoin">smsjobs.isEligibleToJoin</a>#0edc39d0 = <a href="/type/smsjobs.EligibilityToJoin">smsjobs.EligibilityToJoin</a>;
|
|
<a href="/method/smsjobs.join">smsjobs.join</a>#a74ece2d = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/smsjobs.leave">smsjobs.leave</a>#9898ad73 = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/smsjobs.updateSettings">smsjobs.updateSettings</a>#093fa0bf flags:<a href="/type/%23">#</a> allow_international:flags.0?<a href="/constructor/true">true</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/smsjobs.getStatus">smsjobs.getStatus</a>#10a698e8 = <a href="/type/smsjobs.Status">smsjobs.Status</a>;
|
|
<a href="/method/smsjobs.getSmsJob">smsjobs.getSmsJob</a>#778d902f job_id:<a href="/type/string">string</a> = <a href="/type/SmsJob">SmsJob</a>;
|
|
<a href="/method/smsjobs.finishJob">smsjobs.finishJob</a>#4f1ebf24 flags:<a href="/type/%23">#</a> job_id:<a href="/type/string">string</a> error:flags.0?<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/help.getTimezonesList">help.getTimezonesList</a>#49b30240 hash:<a href="/type/int">int</a> = <a href="/type/help.TimezonesList">help.TimezonesList</a>;<br>
|
|
<a href="/method/account.updateBusinessWorkHours">account.updateBusinessWorkHours</a>#4b00e066 flags:<a href="/type/%23">#</a> business_work_hours:flags.0?<a href="/type/BusinessWorkHours">BusinessWorkHours</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/account.updateBusinessLocation">account.updateBusinessLocation</a>#9e6b131a flags:<a href="/type/%23">#</a> geo_point:flags.1?<a href="/type/InputGeoPoint">InputGeoPoint</a> address:flags.0?<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/account.updateBusinessGreetingMessage">account.updateBusinessGreetingMessage</a>#66cdafc4 flags:<a href="/type/%23">#</a> message:flags.0?<a href="/type/InputBusinessGreetingMessage">InputBusinessGreetingMessage</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/account.updateBusinessAwayMessage">account.updateBusinessAwayMessage</a>#a26a7fa5 flags:<a href="/type/%23">#</a> message:flags.0?<a href="/type/InputBusinessAwayMessage">InputBusinessAwayMessage</a> = <a href="/type/Bool">Bool</a>;<br>
|
|
<a href="/method/messages.getQuickReplies">messages.getQuickReplies</a>#d483f2a8 hash:<a href="/type/long">long</a> = <a href="/type/messages.QuickReplies">messages.QuickReplies</a>;
|
|
<a href="/method/messages.reorderQuickReplies">messages.reorderQuickReplies</a>#60331907 order:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/messages.checkQuickReplyShortcut">messages.checkQuickReplyShortcut</a>#f1d0fbd3 shortcut:<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/messages.editQuickReplyShortcut">messages.editQuickReplyShortcut</a>#5c003cef shortcut_id:<a href="/type/int">int</a> shortcut:<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/messages.deleteQuickReplyShortcut">messages.deleteQuickReplyShortcut</a>#3cc04740 shortcut_id:<a href="/type/int">int</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/messages.getQuickReplyMessages">messages.getQuickReplyMessages</a>#94a495c3 flags:<a href="/type/%23">#</a> shortcut_id:<a href="/type/int">int</a> id:flags.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> hash:<a href="/type/long">long</a> = <a href="/type/messages.Messages">messages.Messages</a>;
|
|
<a href="/method/messages.sendQuickReplyMessages">messages.sendQuickReplyMessages</a>#33153ad4 peer:<a href="/type/InputPeer">InputPeer</a> shortcut_id:<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/messages.deleteQuickReplyMessages">messages.deleteQuickReplyMessages</a>#e105e910 shortcut_id:<a href="/type/int">int</a> id:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> = <a href="/type/Updates">Updates</a>;<br>
|
|
<a href="/method/account.updateConnectedBot">account.updateConnectedBot</a>#9c2d527d flags:<a href="/type/%23">#</a> can_reply:flags.0?<a href="/constructor/true">true</a> deleted:flags.1?<a href="/constructor/true">true</a> bot:<a href="/type/InputUser">InputUser</a> recipients:<a href="/type/InputBusinessRecipients">InputBusinessRecipients</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/account.getConnectedBots">account.getConnectedBots</a>#4ea4c80f = <a href="/type/account.ConnectedBots">account.ConnectedBots</a>;<br>
|
|
<a href="/method/messages.toggleDialogFilterTags">messages.toggleDialogFilterTags</a>#fd2dda49 enabled:<a href="/type/Bool">Bool</a> = <a href="/type/Bool">Bool</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-174" id="layer-174" name="layer-174"><i class="anchor-icon"></i></a><a href="/schema?layer=174">Layer 174</a></h3>
|
|
<p>This layer adds support for:</p>
|
|
<ul>
|
|
<li><a href="/api/boost">Boosts in supergroups »</a></li>
|
|
<li><a href="/api/boost#setting-a-custom-emoji-stickerset-for-supergroups">Custom emoji stickersets for supergroups »</a>, usable even by non-<a href="/api/premium">Premium</a> users!</li>
|
|
<li><a href="/api/boost#bypass-slowmode-and-chat-restrictions">Boost to bypass supergroup restrictions »</a></li>
|
|
<li><a href="/api/boost#unlimited-voice-message-transcriptions-for-supergroups">Boost for unlimited voice message transcriptions for supergroups »</a></li>
|
|
<li><a href="/api/boost#changing-profile-accent-color-emoji">Profile accent colors/emojis for supergroups »</a></li>
|
|
<li>A new optional privacy setting to <a href="/api/privacy#require-premium-for-new-non-contact-users">allow new messages only from Premium users »</a></li>
|
|
<li><a href="/method/messages.getOutboxReadDate">Exact read dates in private messages »</a></li>
|
|
<li>Disabling signup notifications for new users via <a href="/method/auth.signUp">no_joined_notifications »</a></li>
|
|
<li>Improvements to <a href="/api/saved-messages#tags">saved message tags »</a> (search for tagged messages only in certain <a href="/api/saved-messages#saved-message-dialogs">saved message dialogs »</a>).</li>
|
|
<li><a href="/api/stories">Stories for groups »</a></li>
|
|
</ul>
|
|
<p>The following new <a href="/api/premium#telegram-premium-features">Telegram Premium feature indentifiers »</a> were added:</p>
|
|
<ul>
|
|
<li><code>last_seen</code></li>
|
|
<li><code>message_privacy</code></li>
|
|
</ul>
|
|
<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.getOutboxReadDate">messages.getOutboxReadDate</a> - Get the exact read date of one of our messages, sent to a private chat with another user.</li>
|
|
<li>Added <a href="/method/users.getIsPremiumRequiredToContact">users.getIsPremiumRequiredToContact</a> - Check whether we can write to the specified user (this method can only be called by non-<a href="/api/premium">Premium</a> users), see <a href="/api/privacy#require-premium-for-new-non-contact-users">here »</a> for more info on the full flow.</li>
|
|
<li>Added <a href="/method/channels.setBoostsToUnblockRestrictions">channels.setBoostsToUnblockRestrictions</a> - Admins with <a href="/constructor/chatAdminRights">ban_users admin rights »</a> may allow users that apply a certain number of <a href="/api/boost">booosts »</a> to the group to bypass <a href="/method/channels.toggleSlowMode">slow mode »</a> and <a href="/api/rights#default-rights">other »</a> supergroup restrictions, see <a href="/api/boost#bypass-slowmode-and-chat-restrictions">here »</a> for more info.</li>
|
|
<li>Added <a href="/method/channels.setEmojiStickers">channels.setEmojiStickers</a> - Set a <a href="/api/custom-emoji">custom emoji stickerset</a> for supergroups. Only usable after reaching at least the <a href="/api/boost">boost level »</a> specified in the <a href="/api/config#group-emoji-stickers-level-min"><code>group_emoji_stickers_level_min</code> »</a> config parameter.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Added <strong>flags</strong>, <strong>no_joined_notifications</strong> parameters in <a href="/method/auth.signUp">auth.signUp</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>peer</strong> parameters in <a href="/method/messages.getSavedReactionTags">messages.getSavedReactionTags</a></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>
|
|
<li>Added <a href="/constructor/outboxReadDate">outboxReadDate</a> - Exact read date of a private message we sent to another user.</li>
|
|
<li>Added <a href="/constructor/messageActionBoostApply">messageActionBoostApply</a> - Some <a href="/api/boost">boosts »</a> were applied to the channel or supergroup.</li>
|
|
<li>Added <a href="/constructor/channelAdminLogEventActionChangeEmojiStickerSet">channelAdminLogEventActionChangeEmojiStickerSet</a> - The supergroup's <a href="/api/boost#setting-a-custom-emoji-stickerset-for-supergroups">custom emoji stickerset</a> was changed.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>from_boosts_applied</strong> parameter in <a href="/constructor/message">message</a></li>
|
|
<li>Added <strong>contact_require_premium</strong>, <strong>read_dates_private</strong> parameters in <a href="/constructor/userFull">userFull</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>by_me</strong> parameters in <a href="/constructor/userStatusRecently">userStatusRecently</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>by_me</strong> parameters in <a href="/constructor/userStatusLastWeek">userStatusLastWeek</a></li>
|
|
<li>Added <strong>flags</strong>, <strong>by_me</strong> parameters in <a href="/constructor/userStatusLastMonth">userStatusLastMonth</a></li>
|
|
<li>Added <strong>contact_require_premium</strong> parameter in <a href="/constructor/user">user</a></li>
|
|
<li>Added <strong>boosts_applied</strong>, <strong>boosts_unrestrict</strong>, <strong>emojiset</strong> parameters in <a href="/constructor/channelFull">channelFull</a></li>
|
|
<li>Added <strong>hide_read_marks</strong>, <strong>new_noncontact_peers_require_premium</strong> parameters in <a href="/constructor/globalPrivacySettings">globalPrivacySettings</a></li>
|
|
<li>Added <strong>from_id</strong> parameter in <a href="/constructor/storyItem">storyItem</a></li>
|
|
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/constructor/inputReplyToStory">inputReplyToStory</a></li>
|
|
<li>Added <strong>peer</strong> parameter, removed <strong>user_id</strong> parameter in <a href="/constructor/messageReplyStoryHeader">messageReplyStoryHeader</a></li>
|
|
<li>Added <strong>group_min_level</strong> parameter in <a href="/constructor/help.peerColorOption">help.peerColorOption</a></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/message">message</a>#1e4c8a69 flags:<a href="/type/%23">#</a> out:flags.1?<a href="/constructor/true">true</a> mentioned:flags.4?<a href="/constructor/true">true</a> media_unread:flags.5?<a href="/constructor/true">true</a> silent:flags.13?<a href="/constructor/true">true</a> post:flags.14?<a href="/constructor/true">true</a> from_scheduled:flags.18?<a href="/constructor/true">true</a> legacy:flags.19?<a href="/constructor/true">true</a> edit_hide:flags.21?<a href="/constructor/true">true</a> pinned:flags.24?<a href="/constructor/true">true</a> noforwards:flags.26?<a href="/constructor/true">true</a> invert_media:flags.27?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> from_id:flags.8?<a href="/type/Peer">Peer</a> from_boosts_applied:flags.29?<a href="/type/int">int</a> peer_id:<a href="/type/Peer">Peer</a> saved_peer_id:flags.28?<a href="/type/Peer">Peer</a> fwd_from:flags.2?<a href="/type/MessageFwdHeader">MessageFwdHeader</a> via_bot_id:flags.11?<a href="/type/long">long</a> reply_to:flags.3?<a href="/type/MessageReplyHeader">MessageReplyHeader</a> date:<a href="/type/int">int</a> message:<a href="/type/string">string</a> media:flags.9?<a href="/type/MessageMedia">MessageMedia</a> reply_markup:flags.6?<a href="/type/ReplyMarkup">ReplyMarkup</a> entities:flags.7?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> views:flags.10?<a href="/type/int">int</a> forwards:flags.10?<a href="/type/int">int</a> replies:flags.23?<a href="/type/MessageReplies">MessageReplies</a> edit_date:flags.15?<a href="/type/int">int</a> post_author:flags.16?<a href="/type/string">string</a> grouped_id:flags.17?<a href="/type/long">long</a> reactions:flags.20?<a href="/type/MessageReactions">MessageReactions</a> restriction_reason:flags.22?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> ttl_period:flags.25?<a href="/type/int">int</a> = <a href="/type/Message">Message</a>;<br>
|
|
<a href="/constructor/userFull">userFull</a>#b9b12c6c 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> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.27?<a href="/constructor/true">true</a> wallpaper_overridden:flags.28?<a href="/constructor/true">true</a> contact_require_premium:flags.29?<a href="/constructor/true">true</a> read_dates_private:flags.30?<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>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/PeerStories">PeerStories</a> = <a href="/type/UserFull">UserFull</a>;
|
|
<a href="/constructor/userStatusRecently">userStatusRecently</a>#7b197dc8 flags:<a href="/type/%23">#</a> by_me:flags.0?<a href="/constructor/true">true</a> = <a href="/type/UserStatus">UserStatus</a>;
|
|
<a href="/constructor/userStatusLastWeek">userStatusLastWeek</a>#541a1d1a flags:<a href="/type/%23">#</a> by_me:flags.0?<a href="/constructor/true">true</a> = <a href="/type/UserStatus">UserStatus</a>;
|
|
<a href="/constructor/userStatusLastMonth">userStatusLastMonth</a>#65899777 flags:<a href="/type/%23">#</a> by_me:flags.0?<a href="/constructor/true">true</a> = <a href="/type/UserStatus">UserStatus</a>;
|
|
<a href="/constructor/user">user</a>#215c4438 flags:<a href="/type/%23">#</a> self:flags.10?<a href="/constructor/true">true</a> contact:flags.11?<a href="/constructor/true">true</a> mutual_contact:flags.12?<a href="/constructor/true">true</a> deleted:flags.13?<a href="/constructor/true">true</a> bot:flags.14?<a href="/constructor/true">true</a> bot_chat_history:flags.15?<a href="/constructor/true">true</a> bot_nochats:flags.16?<a href="/constructor/true">true</a> verified:flags.17?<a href="/constructor/true">true</a> restricted:flags.18?<a href="/constructor/true">true</a> min:flags.20?<a href="/constructor/true">true</a> bot_inline_geo:flags.21?<a href="/constructor/true">true</a> support:flags.23?<a href="/constructor/true">true</a> scam:flags.24?<a href="/constructor/true">true</a> apply_min_photo:flags.25?<a href="/constructor/true">true</a> fake:flags.26?<a href="/constructor/true">true</a> bot_attach_menu:flags.27?<a href="/constructor/true">true</a> premium:flags.28?<a href="/constructor/true">true</a> attach_menu_enabled:flags.29?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> bot_can_edit:flags2.1?<a href="/constructor/true">true</a> close_friend:flags2.2?<a href="/constructor/true">true</a> stories_hidden:flags2.3?<a href="/constructor/true">true</a> stories_unavailable:flags2.4?<a href="/constructor/true">true</a> contact_require_premium:flags2.10?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> access_hash:flags.0?<a href="/type/long">long</a> first_name:flags.1?<a href="/type/string">string</a> last_name:flags.2?<a href="/type/string">string</a> username:flags.3?<a href="/type/string">string</a> phone:flags.4?<a href="/type/string">string</a> photo:flags.5?<a href="/type/UserProfilePhoto">UserProfilePhoto</a> status:flags.6?<a href="/type/UserStatus">UserStatus</a> bot_info_version:flags.14?<a href="/type/int">int</a> restriction_reason:flags.18?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href="/type/string">string</a> lang_code:flags.22?<a href="/type/string">string</a> emoji_status:flags.30?<a href="/type/EmojiStatus">EmojiStatus</a> usernames:flags2.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/Username">Username</a>> stories_max_id:flags2.5?<a href="/type/int">int</a> color:flags2.8?<a href="/type/PeerColor">PeerColor</a> profile_color:flags2.9?<a href="/type/PeerColor">PeerColor</a> = <a href="/type/User">User</a>;<br>
|
|
<a href="/constructor/channelFull">channelFull</a>#44c054a7 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> stories_pinned_available:flags2.5?<a href="/constructor/true">true</a> view_forum_as_messages:flags2.6?<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> stories:flags2.4?<a href="/type/PeerStories">PeerStories</a> wallpaper:flags2.7?<a href="/type/WallPaper">WallPaper</a> boosts_applied:flags2.8?<a href="/type/int">int</a> boosts_unrestrict:flags2.9?<a href="/type/int">int</a> emojiset:flags2.10?<a href="/type/StickerSet">StickerSet</a> = <a href="/type/ChatFull">ChatFull</a>;<br>
|
|
<a href="/constructor/globalPrivacySettings">globalPrivacySettings</a>#734c4ccb flags:<a href="/type/%23">#</a> archive_and_mute_new_noncontact_peers:flags.0?<a href="/constructor/true">true</a> keep_archived_unmuted:flags.1?<a href="/constructor/true">true</a> keep_archived_folders:flags.2?<a href="/constructor/true">true</a> hide_read_marks:flags.3?<a href="/constructor/true">true</a> new_noncontact_peers_require_premium:flags.4?<a href="/constructor/true">true</a> = <a href="/type/GlobalPrivacySettings">GlobalPrivacySettings</a>;<br>
|
|
<a href="/constructor/storyItem">storyItem</a>#79b26a24 flags:<a href="/type/%23">#</a> pinned:flags.5?<a href="/constructor/true">true</a> public:flags.7?<a href="/constructor/true">true</a> close_friends:flags.8?<a href="/constructor/true">true</a> min:flags.9?<a href="/constructor/true">true</a> noforwards:flags.10?<a href="/constructor/true">true</a> edited:flags.11?<a href="/constructor/true">true</a> contacts:flags.12?<a href="/constructor/true">true</a> selected_contacts:flags.13?<a href="/constructor/true">true</a> out:flags.16?<a href="/constructor/true">true</a> id:<a href="/type/int">int</a> date:<a href="/type/int">int</a> from_id:flags.18?<a href="/type/Peer">Peer</a> fwd_from:flags.17?<a href="/type/StoryFwdHeader">StoryFwdHeader</a> expire_date:<a href="/type/int">int</a> caption:flags.0?<a href="/type/string">string</a> entities:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessageEntity">MessageEntity</a>> media:<a href="/type/MessageMedia">MessageMedia</a> media_areas:flags.14?<a href="/type/Vector%20t">Vector</a><<a href="/type/MediaArea">MediaArea</a>> privacy:flags.2?<a href="/type/Vector%20t">Vector</a><<a href="/type/PrivacyRule">PrivacyRule</a>> views:flags.3?<a href="/type/StoryViews">StoryViews</a> sent_reaction:flags.15?<a href="/type/Reaction">Reaction</a> = <a href="/type/StoryItem">StoryItem</a>;<br>
|
|
<a href="/constructor/inputReplyToStory">inputReplyToStory</a>#5881323a peer:<a href="/type/InputPeer">InputPeer</a> story_id:<a href="/type/int">int</a> = <a href="/type/InputReplyTo">InputReplyTo</a>;<br>
|
|
<a href="/constructor/messageReplyStoryHeader">messageReplyStoryHeader</a>#0e5af939 peer:<a href="/type/Peer">Peer</a> story_id:<a href="/type/int">int</a> = <a href="/type/MessageReplyHeader">MessageReplyHeader</a>;<br>
|
|
<a href="/constructor/help.peerColorOption">help.peerColorOption</a>#adec6ebe flags:<a href="/type/%23">#</a> hidden:flags.0?<a href="/constructor/true">true</a> color_id:<a href="/type/int">int</a> colors:flags.1?<a href="/type/help.PeerColorSet">help.PeerColorSet</a> dark_colors:flags.2?<a href="/type/help.PeerColorSet">help.PeerColorSet</a> channel_min_level:flags.3?<a href="/type/int">int</a> group_min_level:flags.4?<a href="/type/int">int</a> = <a href="/type/help.PeerColorOption">help.PeerColorOption</a>;<br>
|
|
<a href="/constructor/outboxReadDate">outboxReadDate</a>#3bb842ac date:<a href="/type/int">int</a> = <a href="/type/OutboxReadDate">OutboxReadDate</a>;<br>
|
|
<a href="/constructor/messageActionBoostApply">messageActionBoostApply</a>#cc02aa6d boosts:<a href="/type/int">int</a> = <a href="/type/MessageAction">MessageAction</a>;<br>
|
|
<a href="/constructor/channelAdminLogEventActionChangeEmojiStickerSet">channelAdminLogEventActionChangeEmojiStickerSet</a>#46d840ab prev_stickerset:<a href="/type/InputStickerSet">InputStickerSet</a> new_stickerset:<a href="/type/InputStickerSet">InputStickerSet</a> = <a href="/type/ChannelAdminLogEventAction">ChannelAdminLogEventAction</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/auth.signUp">auth.signUp</a>#aac7b717 flags:<a href="/type/%23">#</a> no_joined_notifications:flags.0?<a href="/constructor/true">true</a> phone_number:<a href="/type/string">string</a> phone_code_hash:<a href="/type/string">string</a> first_name:<a href="/type/string">string</a> last_name:<a href="/type/string">string</a> = <a href="/type/auth.Authorization">auth.Authorization</a>;<br>
|
|
<a href="/method/messages.getSavedReactionTags">messages.getSavedReactionTags</a>#3637e05b flags:<a href="/type/%23">#</a> peer:flags.0?<a href="/type/InputPeer">InputPeer</a> hash:<a href="/type/long">long</a> = <a href="/type/messages.SavedReactionTags">messages.SavedReactionTags</a>;
|
|
<a href="/method/messages.getOutboxReadDate">messages.getOutboxReadDate</a>#8c4bfe5d peer:<a href="/type/InputPeer">InputPeer</a> msg_id:<a href="/type/int">int</a> = <a href="/type/OutboxReadDate">OutboxReadDate</a>;<br>
|
|
<a href="/method/users.getIsPremiumRequiredToContact">users.getIsPremiumRequiredToContact</a>#a622aa10 id:<a href="/type/Vector%20t">Vector</a><<a href="/type/InputUser">InputUser</a>> = <a href="/type/Vector%20t">Vector</a><<a href="/type/Bool">Bool</a>>;<br>
|
|
<a href="/method/channels.setBoostsToUnblockRestrictions">channels.setBoostsToUnblockRestrictions</a>#ad399cee channel:<a href="/type/InputChannel">InputChannel</a> boosts:<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;
|
|
<a href="/method/channels.setEmojiStickers">channels.setEmojiStickers</a>#3cd930b7 channel:<a href="/type/InputChannel">InputChannel</a> stickerset:<a href="/type/InputStickerSet">InputStickerSet</a> = <a href="/type/Bool">Bool</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-171" id="layer-171" name="layer-171"><i class="anchor-icon"></i></a><a href="/schema?layer=171">Layer 171</a></h3>
|
|
<p>This layer introduces <a href="/api/saved-messages#tags">saved message tags »</a> and adds support for the "Channels" tab in the <a href="/api/search#global-search">global search view »</a>.</p>
|
|
<p>The following new <a href="/api/premium#telegram-premium-features">Telegram Premium feature indentifiers »</a> were added:</p>
|
|
<ul>
|
|
<li><code>saved_tags</code></li>
|
|
</ul>
|
|
<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.getSavedReactionTags">messages.getSavedReactionTags</a> - Fetch the full list of <a href="/api/saved-messages#tags">saved message tags</a> created by the user.</li>
|
|
<li>Added <a href="/method/messages.updateSavedReactionTag">messages.updateSavedReactionTag</a> - Update the <a href="/api/saved-messages#tags">description of a saved message tag »</a>.</li>
|
|
<li>Added <a href="/method/messages.getDefaultTagReactions">messages.getDefaultTagReactions</a> - Fetch a default recommended list of <a href="/api/saved-messages#tags">saved message tag reactions</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
|
<ul>
|
|
<li>Added <strong>saved_reaction</strong> parameter in <a href="/method/messages.search">messages.search</a></li>
|
|
<li>Added <strong>broadcasts_only</strong> parameter in <a href="/method/messages.searchGlobal">messages.searchGlobal</a></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>
|
|
<li>Added <a href="/constructor/savedReactionTag">savedReactionTag</a> - Info about a <a href="/api/saved-messages#tags">saved message reaction tag »</a>.</li>
|
|
<li>Added <a href="/constructor/messages.savedReactionTagsNotModified">messages.savedReactionTagsNotModified</a> - The list of <a href="/api/saved-messages#tags">reaction tag »</a> names assigned by the user hasn't changed.</li>
|
|
<li>Added <a href="/constructor/messages.savedReactionTags">messages.savedReactionTags</a> - List of <a href="/api/saved-messages#tags">reaction tag »</a> names assigned by the user.</li>
|
|
<li>Added <a href="/constructor/updateSavedReactionTags">updateSavedReactionTags</a> - The list of <a href="/api/saved-messages#tags">reaction tag »</a> names assigned by the user has changed and should be refetched using <a href="/method/messages.getSavedReactionTags">messages.getSavedReactionTags »</a>.</li>
|
|
</ul>
|
|
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
|
<ul>
|
|
<li>Added <strong>reactions_as_tags</strong> parameter in <a href="/constructor/messageReactions">messageReactions</a></li>
|
|
</ul>
|
|
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
|
<div><pre><code><a href="/constructor/messageReactions">messageReactions</a>#4f2b9479 flags:<a href="/type/%23">#</a> min:flags.0?<a href="/constructor/true">true</a> can_see_list:flags.2?<a href="/constructor/true">true</a> reactions_as_tags:flags.3?<a href="/constructor/true">true</a> results:<a href="/type/Vector%20t">Vector</a><<a href="/type/ReactionCount">ReactionCount</a>> recent_reactions:flags.1?<a href="/type/Vector%20t">Vector</a><<a href="/type/MessagePeerReaction">MessagePeerReaction</a>> = <a href="/type/MessageReactions">MessageReactions</a>;<br>
|
|
<a href="/constructor/savedReactionTag">savedReactionTag</a>#cb6ff828 flags:<a href="/type/%23">#</a> reaction:<a href="/type/Reaction">Reaction</a> title:flags.0?<a href="/type/string">string</a> count:<a href="/type/int">int</a> = <a href="/type/SavedReactionTag">SavedReactionTag</a>;<br>
|
|
<a href="/constructor/messages.savedReactionTagsNotModified">messages.savedReactionTagsNotModified</a>#889b59ef = <a href="/type/messages.SavedReactionTags">messages.SavedReactionTags</a>;
|
|
<a href="/constructor/messages.savedReactionTags">messages.savedReactionTags</a>#3259950a tags:<a href="/type/Vector%20t">Vector</a><<a href="/type/SavedReactionTag">SavedReactionTag</a>> hash:<a href="/type/long">long</a> = <a href="/type/messages.SavedReactionTags">messages.SavedReactionTags</a>;<br>
|
|
<a href="/constructor/updateSavedReactionTags">updateSavedReactionTags</a>#39c67432 = <a href="/type/Update">Update</a>;<br>
|
|
---functions---<br>
|
|
<a href="/method/messages.search">messages.search</a>#29ee847a flags:<a href="/type/%23">#</a> peer:<a href="/type/InputPeer">InputPeer</a> q:<a href="/type/string">string</a> from_id:flags.0?<a href="/type/InputPeer">InputPeer</a> saved_peer_id:flags.2?<a href="/type/InputPeer">InputPeer</a> saved_reaction:flags.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/Reaction">Reaction</a>> top_msg_id:flags.1?<a href="/type/int">int</a> filter:<a href="/type/MessagesFilter">MessagesFilter</a> min_date:<a href="/type/int">int</a> max_date:<a href="/type/int">int</a> offset_id:<a href="/type/int">int</a> add_offset:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> max_id:<a href="/type/int">int</a> min_id:<a href="/type/int">int</a> hash:<a href="/type/long">long</a> = <a href="/type/messages.Messages">messages.Messages</a>;
|
|
<a href="/method/messages.searchGlobal">messages.searchGlobal</a>#4bc6589a flags:<a href="/type/%23">#</a> broadcasts_only:flags.1?<a href="/constructor/true">true</a> folder_id:flags.0?<a href="/type/int">int</a> q:<a href="/type/string">string</a> filter:<a href="/type/MessagesFilter">MessagesFilter</a> min_date:<a href="/type/int">int</a> max_date:<a href="/type/int">int</a> offset_rate:<a href="/type/int">int</a> offset_peer:<a href="/type/InputPeer">InputPeer</a> offset_id:<a href="/type/int">int</a> limit:<a href="/type/int">int</a> = <a href="/type/messages.Messages">messages.Messages</a>;
|
|
<a href="/method/messages.getSavedReactionTags">messages.getSavedReactionTags</a>#761ddacf hash:<a href="/type/long">long</a> = <a href="/type/messages.SavedReactionTags">messages.SavedReactionTags</a>;
|
|
<a href="/method/messages.updateSavedReactionTag">messages.updateSavedReactionTag</a>#60297dec flags:<a href="/type/%23">#</a> reaction:<a href="/type/Reaction">Reaction</a> title:flags.0?<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;
|
|
<a href="/method/messages.getDefaultTagReactions">messages.getDefaultTagReactions</a>#bdf93428 hash:<a href="/type/long">long</a> = <a href="/type/messages.Reactions">messages.Reactions</a>;<br></code></pre></div>
|
|
<h3><a class="anchor" href="#layer-170" id="layer-170" name="layer-170"><i class="anchor-icon"></i></a><a href="/schema?layer=170">Layer 170</a></h3>
|
|
<p>The following detailed articles were added:</p>
|
|
<ul>
|
|
<li><a href="/api/stories">Working with stories »</a></li>
|
|
<li><a href="/api/boost">Working with boosts »</a></li>
|
|
<li><a href="/api/giveaways">Working with giveaways »</a></li>
|
|
<li><a href="/api/colors">Working with accent colors »</a></li>
|
|
<li><a href="/api/recommend">Working with the recommendation system »</a></li>
|
|
<li><a href="/api/action-bar">Working with the action bar »</a></li>
|
|
<li><a href="/api/contacts">Working with contacts »</a></li>
|
|
<li><a href="/api/block">Working with the blocklist »</a></li>
|
|
<li><a href="/api/nearby">Working with geochats »</a></li>
|
|
<li><a href="/api/privacy">Working with privacy settings »</a></li>
|
|
<li><a href="/api/takeout">Working with the takeout API »</a></li>
|
|
<li><a href="/api/saved-messages">Working with saved messages »</a></li>
|
|
</ul>
|
|
<p>Also added documentation for <a href="/api/files#streamed-uploads">streamed uploads</a> and improved the docs for <a href="/api/invoking#sequential-requests">method queue</a>, <a href="/mtproto/mtproto-transports">quick ACKs</a> and <a href="/mtproto/description#message-sequence-number-msg-seqno">content-related messages</a>.</p>
|
|
<p>The <a href="/api/errors#error-database">RPC error database »</a> was also updated.</p>
|
|
<p>The following new deep links were added:</p>
|
|
<ul>
|
|
<li><a href="/api/links#story-links">Story links »</a></li>
|
|
<li><a href="/api/links#boost-links">Boost links »</a></li>
|
|
<li><a href="/api/links#direct-mini-app-links">Direct mini app links »</a></li>
|
|
<li><a href="/api/links#premium-giftcode-links">Premium giftcode links »</a></li>
|
|
<li><a href="/api/links#premium-multigift-links">Premium multigift links »</a></li>
|
|
</ul>
|
|
<p>This layer introduces the <a href="/api/saved-messages">saved messages dialog list and several other saved messages improvements »</a>!</p></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="footer_wrap">
|
|
<div class="footer_columns_wrap footer_desktop">
|
|
<div class="footer_column footer_column_telegram">
|
|
<h5>Telegram</h5>
|
|
<div class="footer_telegram_description"></div>
|
|
Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.
|
|
</div>
|
|
|
|
<div class="footer_column">
|
|
<h5><a href="//telegram.org/faq">About</a></h5>
|
|
<ul>
|
|
<li><a href="//telegram.org/faq">FAQ</a></li>
|
|
<li><a href="//telegram.org/privacy">Privacy</a></li>
|
|
<li><a href="//telegram.org/press">Press</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer_column">
|
|
<h5><a href="//telegram.org/apps#mobile-apps">Mobile Apps</a></h5>
|
|
<ul>
|
|
<li><a href="//telegram.org/dl/ios">iPhone/iPad</a></li>
|
|
<li><a href="//telegram.org/android">Android</a></li>
|
|
<li><a href="//telegram.org/dl/web">Mobile Web</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer_column">
|
|
<h5><a href="//telegram.org/apps#desktop-apps">Desktop Apps</a></h5>
|
|
<ul>
|
|
<li><a href="//desktop.telegram.org/">PC/Mac/Linux</a></li>
|
|
<li><a href="//macos.telegram.org/">macOS</a></li>
|
|
<li><a href="//telegram.org/dl/web">Web-browser</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer_column footer_column_platform">
|
|
<h5><a href="/">Platform</a></h5>
|
|
<ul>
|
|
<li><a href="/api">API</a></li>
|
|
<li><a href="//translations.telegram.org/">Translations</a></li>
|
|
<li><a href="//instantview.telegram.org/">Instant View</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="footer_columns_wrap footer_mobile">
|
|
<div class="footer_column">
|
|
<h5><a href="//telegram.org/faq">About</a></h5>
|
|
</div>
|
|
<div class="footer_column">
|
|
<h5><a href="//telegram.org/blog">Blog</a></h5>
|
|
</div>
|
|
<div class="footer_column">
|
|
<h5><a href="//telegram.org/apps">Apps</a></h5>
|
|
</div>
|
|
<div class="footer_column">
|
|
<h5><a href="/">Platform</a></h5>
|
|
</div>
|
|
<div class="footer_column">
|
|
<h5><a href="//telegram.org/press">Press</a></h5>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/js/main.js?47"></script>
|
|
<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>
|
|
</html>
|
|
|