mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-29 15:59:13 +01:00
Update content of files
This commit is contained in:
parent
b7bb4c1a71
commit
1fd979e70e
62 changed files with 18861 additions and 0 deletions
152
data/core.telegram.org/constructor/error.html
Normal file
152
data/core.telegram.org/constructor/error.html
Normal file
|
@ -0,0 +1,152 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>error</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Error.">
|
||||
<meta property="og:title" content="error">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Error.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/error" >error</a></li></ul></div>
|
||||
<h1 id="dev_page_title">error</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Error.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/error" class="current_page_link" >error</a>#c4b9f9bb code:<a href="/type/int" >int</a> text:<a href="/type/string" >string</a> = <a href="/type/Error" >Error</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>code</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Error code</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Message</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/Error">Error</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
132
data/core.telegram.org/constructor/null.html
Normal file
132
data/core.telegram.org/constructor/null.html
Normal file
|
@ -0,0 +1,132 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>null</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Corresponds to an arbitrary empty object.">
|
||||
<meta property="og:title" content="null">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Corresponds to an arbitrary empty object.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/null" >null</a></li></ul></div>
|
||||
<h1 id="dev_page_title">null</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Corresponds to an arbitrary empty object.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/null" class="current_page_link" >null</a>#56730bcc = <a href="/type/Null" >Null</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<p>This constructor does not require any parameters.</p>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/Null">Null</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
209
data/core.telegram.org/constructor/phoneCall.html
Normal file
209
data/core.telegram.org/constructor/phoneCall.html
Normal file
|
@ -0,0 +1,209 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>phoneCall</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Phone call">
|
||||
<meta property="og:title" content="phoneCall">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Phone call">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/phoneCall" >phoneCall</a></li></ul></div>
|
||||
<h1 id="dev_page_title">phoneCall</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Phone call</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/phoneCall" class="current_page_link" >phoneCall</a>#967f7c67 flags:<a href="/type/%23" >#</a> p2p_allowed:flags.5?true video:flags.6?true 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> = <a href="/type/PhoneCall" >PhoneCall</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>p2p_allowed</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.5?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether P2P connection to the other peer is allowed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>video</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether this is a video call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Call ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>access_hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Access hash</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>date</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Date of creation of the call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>admin_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>User ID of the creator of the call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>participant_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>User ID of the other participant in the call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>g_a_or_b</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/bytes">bytes</a></td>
|
||||
<td><a href="/api/end-to-end/voice-calls">Parameter for key exchange</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>key_fingerprint</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td><a href="/api/end-to-end/voice-calls">Key fingerprint</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>protocol</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/PhoneCallProtocol">PhoneCallProtocol</a></td>
|
||||
<td>Call protocol info to be passed to libtgvoip</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>connections</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Vector%20t">Vector</a><<a href="/type/PhoneConnection">PhoneConnection</a>></td>
|
||||
<td>List of endpoints the user can connect to to exchange call data</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>start_date</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>When was the call actually started</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/PhoneCall">PhoneCall</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#end-to-end-encrypted-voice-calls" id="end-to-end-encrypted-voice-calls" name="end-to-end-encrypted-voice-calls"><i class="anchor-icon"></i></a><a href="/api/end-to-end/voice-calls">End-to-End Encrypted Voice Calls</a></h4></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
189
data/core.telegram.org/constructor/phoneCallAccepted.html
Normal file
189
data/core.telegram.org/constructor/phoneCallAccepted.html
Normal file
|
@ -0,0 +1,189 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>phoneCallAccepted</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="An accepted phone call">
|
||||
<meta property="og:title" content="phoneCallAccepted">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="An accepted phone call">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/phoneCallAccepted" >phoneCallAccepted</a></li></ul></div>
|
||||
<h1 id="dev_page_title">phoneCallAccepted</h1>
|
||||
|
||||
<div id="dev_page_content"><p>An accepted phone call</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/phoneCallAccepted" class="current_page_link" >phoneCallAccepted</a>#3660c311 flags:<a href="/type/%23" >#</a> video:flags.6?true 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_b:<a href="/type/bytes" >bytes</a> protocol:<a href="/type/PhoneCallProtocol" >PhoneCallProtocol</a> = <a href="/type/PhoneCall" >PhoneCall</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>video</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether this is a video call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of accepted phone call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>access_hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Access hash of phone call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>date</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>When was the call accepted</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>admin_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the call creator</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>participant_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the other user in the call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>g_b</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/bytes">bytes</a></td>
|
||||
<td>B parameter for <a href="/api/end-to-end/voice-calls">secure E2E phone call key exchange</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>protocol</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/PhoneCallProtocol">PhoneCallProtocol</a></td>
|
||||
<td>Protocol to use for phone call</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/PhoneCall">PhoneCall</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#end-to-end-encrypted-voice-calls" id="end-to-end-encrypted-voice-calls" name="end-to-end-encrypted-voice-calls"><i class="anchor-icon"></i></a><a href="/api/end-to-end/voice-calls">End-to-End Encrypted Voice Calls</a></h4></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
189
data/core.telegram.org/constructor/phoneCallRequested.html
Normal file
189
data/core.telegram.org/constructor/phoneCallRequested.html
Normal file
|
@ -0,0 +1,189 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>phoneCallRequested</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Requested phone call">
|
||||
<meta property="og:title" content="phoneCallRequested">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Requested phone call">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/phoneCallRequested" >phoneCallRequested</a></li></ul></div>
|
||||
<h1 id="dev_page_title">phoneCallRequested</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Requested phone call</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/phoneCallRequested" class="current_page_link" >phoneCallRequested</a>#14b0ed0c flags:<a href="/type/%23" >#</a> video:flags.6?true 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_hash:<a href="/type/bytes" >bytes</a> protocol:<a href="/type/PhoneCallProtocol" >PhoneCallProtocol</a> = <a href="/type/PhoneCall" >PhoneCall</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>video</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether this is a video call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Phone call ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>access_hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Access hash</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>date</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>When was the phone call created</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>admin_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the creator of the phone call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>participant_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the other participant of the phone call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>g_a_hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/bytes">bytes</a></td>
|
||||
<td><a href="/api/end-to-end/voice-calls">Parameter for key exchange</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>protocol</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/PhoneCallProtocol">PhoneCallProtocol</a></td>
|
||||
<td>Call protocol info to be passed to libtgvoip</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/PhoneCall">PhoneCall</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#end-to-end-encrypted-voice-calls" id="end-to-end-encrypted-voice-calls" name="end-to-end-encrypted-voice-calls"><i class="anchor-icon"></i></a><a href="/api/end-to-end/voice-calls">End-to-End Encrypted Voice Calls</a></h4></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
147
data/core.telegram.org/constructor/statsURL.html
Normal file
147
data/core.telegram.org/constructor/statsURL.html
Normal file
|
@ -0,0 +1,147 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>statsURL</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="URL with chat statistics">
|
||||
<meta property="og:title" content="statsURL">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="URL with chat statistics">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/statsURL" >statsURL</a></li></ul></div>
|
||||
<h1 id="dev_page_title">statsURL</h1>
|
||||
|
||||
<div id="dev_page_content"><p>URL with chat statistics</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/statsURL" class="current_page_link" >statsURL</a>#47a971e0 url:<a href="/type/string" >string</a> = <a href="/type/StatsURL" >StatsURL</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>url</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Chat statistics</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/StatsURL">StatsURL</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
237
data/core.telegram.org/contest300K.html
Normal file
237
data/core.telegram.org/contest300K.html
Normal file
|
@ -0,0 +1,237 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Telegram Cracking Contest Description</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="« Back to Contest Announcement
|
||||
The current round of the contest is over. Go to results »
|
||||
In this contest you assume the…">
|
||||
<meta property="og:title" content="Telegram Cracking Contest Description">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="« Back to Contest Announcement
|
||||
The current round of the contest is over. Go to results »
|
||||
In this contest you assume the…">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><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"></div>
|
||||
<h1 id="dev_page_title">Telegram Cracking Contest Description</h1>
|
||||
|
||||
<div id="dev_page_content"><p><a href="https://telegram.org/blog/cryptocontest"><strong>« Back to Contest Announcement</strong></a></p>
|
||||
<blockquote>
|
||||
<p>The current round of the contest is over. <a href="https://telegram.org/blog/cryptocontest-ends"><strong>Go to results »</strong></a></p>
|
||||
</blockquote>
|
||||
<p>In this contest you assume the role of a malicious entity in control of Telegram's servers. Your goal is to extract sensitive data (a secret email and password) from a conversation between two peers — Paul and Nick. They are represented by two virtual users that communicate via <a href="https://core.telegram.org/api/end-to-end">Secret Chats</a> in Telegram.</p>
|
||||
<p>Paul and Nick are both using clients that perform all the checks from <a href="/mtproto/security_guidelines">Telegram Security Guidelines</a> and compare their key visualizations over an independent channel as soon as a new Secret Chat is established. If any of these checks fails, they stop accepting messages in that Secret Chat. You control the entire process by sending commands to the Telegram user <code>@CryptoContest</code>, used as an interface for this contest. This enables contestants to try CPA, KPA, MITM and other kinds of active attacks and data tampering.</p>
|
||||
<h3><a class="anchor" name="protocol" href="#protocol"><i class="anchor-icon"></i></a>Protocol</h3>
|
||||
<p>The protocol used by Paul and Nick to establish Secret Сhats and exchange messages is identical to the one used for <a href="https://core.telegram.org/api/end-to-end">Secret Chats</a> in Telegram. Since we assume that the attacker is already in full control of the Telegram servers, basic MTProto encryption is bypassed altogether. In order to further simplify the task for contestants, we have removed irrelevant parameters, such as user_id and random_id.</p>
|
||||
<p>The following <a href="/mtproto/TL">TL</a> scheme is used to establish Secret Chats in this contest: </p>
|
||||
<pre><code>contest.dhConfig#01e00a51 g:int p:64*[int] random:64*[int] = contest.DhConfig;
|
||||
contest.requestEncryption#3a73a74c g_a:64*[int] = contest.Message;
|
||||
contest.acceptEncryption#068e4342 g_b:64*[int] fingerprint:int = contest.Message;
|
||||
contest.encryptedMessage#11a6d4b1 id:long message:string = contest.Message;
|
||||
---functions---
|
||||
contest.getDhConfig#369ee1a6 = contest.DhConfig;</code></pre>
|
||||
<p>For exchange of encrypted messages (see <a href="/api/end-to-end#sending-and-receiving-messages-in-a-secret-chat">documentation</a>), the up-to-date layer 17 scheme with <a href="/api/end-to-end/seq_no">sequence numbers</a> is used, but with plain text message support only.</p>
|
||||
<p>Each plaintext message is first created as a layer 17 <a href="/constructor/decryptedMessage">decryptedMessage</a>, then embedded in a <a href="/constructor/decryptedMessageLayer">decryptedMessageLayer</a> and encrypted as explained in the <a href="/api/end-to-end#serialization-and-encryption-of-outgoing-messages">Secret Chat documentation</a>. For the purpose of this contest, it is the result of this encryption <em>(ciphertext)</em> that is exchanged between the parties. </p>
|
||||
<p>Notice that sending messages in an actual Telegram Secret Chat involves further embedding of that <em>ciphertext</em> into an API call and an additional layer of <a href="/mtproto">MTProto</a> encryption for client-server interaction. This step is omitted here, since we assume the attacker to be in control of the Telegram servers, not just of the communication lines between the clients and Telegram servers.</p>
|
||||
<h3><a class="anchor" name="interface" href="#interface"><i class="anchor-icon"></i></a>Interface</h3>
|
||||
<p>To access the interface, find the Telegram user <code>@CryptoContest</code> using the Global Search by username in any of the <a href="https://telegram.org/apps">Telegram apps</a>. This is a special bot we created for this contest. You can control communication between Paul and Nick by sending <a href="#commands">particularly formed</a> text messages to this bot and processing automatically generated answers to these messages (you may find the unofficial <a href="https://github.com/vysheng/tg">Linux CLI</a> convenient for mass automated queries).</p>
|
||||
<p>You can create as many parallel Secret Chats between Paul and Nick as you like using the bot — each of them will have a separate <em>session_id</em>. All data is represented in hexadecimal format, with the exception of the <em>session_id</em>.</p>
|
||||
<h3><a class="anchor" name="commands" href="#commands"><i class="anchor-icon"></i></a>Commands</h3>
|
||||
<p>Below, <strong>A</strong> stands for the creator of the Secret Chat, <strong>B</strong> stands for the second party, <strong>S</strong> — the Telegram Server.</p>
|
||||
<p>Each Secret Chat session in this contest is divided in two phases: </p>
|
||||
<ul>
|
||||
<li><a href="#1-creating-a-secret-chat">Creating a Secret Chat</a></li>
|
||||
<li><a href="#2-sending-text-messages">Sending Encrypted Message</a></li>
|
||||
</ul>
|
||||
<h5><a class="anchor" name="1-creating-a-secret-chat" href="#1-creating-a-secret-chat"><i class="anchor-icon"></i></a>1. Creating a Secret Chat</h5>
|
||||
<p>In order to create a new Secret Chat, six messages need to be exchanged:</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Source</strong></th>
|
||||
<th><strong>Destination</strong></th>
|
||||
<th><strong>Message</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>A</td>
|
||||
<td>S</td>
|
||||
<td>contest.getDhConfig</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>S</td>
|
||||
<td>A</td>
|
||||
<td>contest.DhConfig</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>A</td>
|
||||
<td>B</td>
|
||||
<td>contest.requestEncryption</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>B</td>
|
||||
<td>S</td>
|
||||
<td>contest.getDhConfig</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>S</td>
|
||||
<td>B</td>
|
||||
<td>contest.DhConfig</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>B</td>
|
||||
<td>A</td>
|
||||
<td>contest.acceptEncryption</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>To create a Secret Chat in this contest:</p>
|
||||
<ul>
|
||||
<li>Send the <strong>START</strong> command to the user <code>@CryptoContest</code> in Telegram. You'll get the <strong>getDhConfig</strong> query, sent by A to the Server, and the answer that the server would normally send to A. You shall also receive the new <em>session_id</em> as the first 32-bit integer. All further messages related to this particular session (Secret Chat instance) must be prefixed with this <em>session_id</em> in decimal form.</li>
|
||||
<li>After that, use the <strong>PASS</strong> command to pass the server's answer to A or <strong>ANSWER bytes</strong> to send a different answer instead. <strong>Bytes</strong> is represented by a string of an even number of hexadecimal digits. You'll receive the <strong>requestEncryption</strong> query as the result. </li>
|
||||
<li>After that, use the <strong>PASS</strong> command to pass this query to B or <strong>ANSWER bytes</strong> to arbitrarily change it. You‘ll receive B’s <strong>getDhConfig</strong> to the server as the result.</li>
|
||||
<li>As before, you can use either <strong>PASS</strong> or <strong>ANSWER bytes</strong>. You'll receive <strong>acceptEncryption</strong> as the result.</li>
|
||||
<li>As before, you can use either <strong>PASS</strong> or <strong>ANSWER bytes</strong>. You'll receive “Ok” as the result.</li>
|
||||
</ul>
|
||||
<p>You will receive an error text as the result after any of these steps in case the participating clients perceive that something went wrong. This can happen if a security check is failed, or in the case that the first 128 bits of the SHA-1 of the newly created encryption key don‘t match on both parties’ clients when this stage is completed (this corresponds to Paul and Nick comparing the key visualizations for the Secret Chat in their Telegram apps).</p>
|
||||
<p>If you obtain such an error, the session is failed and can no longer be used. You'll have to start new session. Note that the time to complete this phase is limited. Each step should not take longer than one hour, otherwise the Secret Chat will get cancelled.</p>
|
||||
<p>Example:</p>
|
||||
<pre><code>START
|
||||
15 a6e19e36 510ae00103000000c71caeb9c6b1c9048e6c522f70f13f73980d40238e3e21c14934d037563d930f48198a0aa7c14058229493d22530f4dbfa336f6e0ac925139543aed44cce7c3720fd51f69458705ac68cd4fe6b6b13abdc9746512969328454f18faf8c595f642477fe96bb2a941d5bcd1d4ac8cc49880708fa9b378e3c4f3a9060bee67cf9a4a4a695811051907e162753b56b0f6b410dba74d8a84b2a14b3144e0ef1284754fd17ed950d5965b4b9dd46582db1178d169c6bc465b0d6ff9ca3928fef5b9ae4e418fc15e83ebea0f87fa9ff5eed70050ded2849f47bf959d956850ce929851f0d8115f635b105ee2e4e15d04b2454bf6f4fadf034b10403119cd8e3b92fcc5b202d33053c2340fd84dd024e8012277e9c6442ad7cd09fe85955c13196e2d32861ad0d8f8139ce5870f1c3563fbff77428632897352abd91cd0a6497a0f64a33d87cd8b53470cf1bc6a052bba7d0121623e9611c0de83ffeb63b7d15831a70187093373cb20df5613bdfab12a54bbc6fff94598d95a8dcdb1374631b021e77c350261bca9ffc16c59b19d3041bee011a20b06fc9806d633b6b9cdd79cbb8b02fe8ef9dde29b6d31d80b030c69d67d6fc4a7edb33ffab532d085796cf3e7635fd42ee72ea24840082186fd40c3c45cf0acef886533d4de7468f88942a662d302928470aa8704529180a6aec2f877398efb91893cc9b549e5123d7269adfe7b6ee
|
||||
15 PASS
|
||||
15 4ca7733a1a7823b420111d8e86e3fe9a7cff9fc611ce339d6999fc3053973ef6c8276af841b53547fdebdcb057cbad16aff6178be3fb8747889937dec082c984227c974a19232b85ad85ef457521fcf17d5f697a17b7e62952306f0ed086deb1ebcff0c8a32787789fe7afaa4035c2d0e07c10db46c0df6930a1729d3607fb035154e90c02036318862c5a9537e87a55bc656e3fc53db08f41a07f834e4917ebaaace1214409ffb44c5a806a9cb4def209bfb8ab2e59f1cb6257e422f37dfab288170bdc5666e6a63d1b0447a7b935ad3bdac8d53f64278d433b45925c84dc60214473363d57a30e31324d9b3cc42fb56d375aac2d9d1af16331ad3a92b43a9d64e47813
|
||||
15 PASS
|
||||
15 a6e19e36 510ae00103000000c71caeb9c6b1c9048e6c522f70f13f73980d40238e3e21c14934d037563d930f48198a0aa7c14058229493d22530f4dbfa336f6e0ac925139543aed44cce7c3720fd51f69458705ac68cd4fe6b6b13abdc9746512969328454f18faf8c595f642477fe96bb2a941d5bcd1d4ac8cc49880708fa9b378e3c4f3a9060bee67cf9a4a4a695811051907e162753b56b0f6b410dba74d8a84b2a14b3144e0ef1284754fd17ed950d5965b4b9dd46582db1178d169c6bc465b0d6ff9ca3928fef5b9ae4e418fc15e83ebea0f87fa9ff5eed70050ded2849f47bf959d956850ce929851f0d8115f635b105ee2e4e15d04b2454bf6f4fadf034b10403119cd8e3b92fcc5b1ccd9c752428f0bca9ac9060bb85b8f90acb9374cd8d5a03110635f591a18f131cb7cc204407efec0687a8b77ba6c4e6732c35174e79e36aaa7fa6ab685257710e074065961ce1b16d21fed8a83cd95efcc4be7111cd33b5704fe759dfab21fc3e8aaa86d44609dc0b073354f8160c653f4fbde3ae7c28c87c3667e0797fac24b32e5c1a870cd898b2a9c517709bb0b8e4ee875ff857868eb56548e6dc993f198fd78c8a77cf997ed42a15f99a9b6265c7cf9bedc7580a11514047b881f717b233f3570ec21856bd2b9791e4c43b125e9260ac3fd48b9a10de5f9d5080e53d92d194adb796766684d905cca35e691fab0c76d6b5f49242f81eb92fcc8adc5a64
|
||||
15 ANSWER 510ae00103000000c71caeb9c6b1c9048e6c522f70f13f73980d40238e3e21c14934d037563d930f48198a0aa7c14058229493d22530f4dbfa336f6e0ac925139543aed44cce7c3720fd51f69458705ac68cd4fe6b6b13abdc9746512969328454f18faf8c595f642477fe96bb2a941d5bcd1d4ac8cc49880708fa9b378e3c4f3a9060bee67cf9a4a4a695811051907e162753b56b0f6b410dba74d8a84b2a14b3144e0ef1284754fd17ed950d5965b4b9dd46582db1178d169c6bc465b0d6ff9ca3928fef5b9ae4e418fc15e83ebea0f87fa9ff5eed70050ded2849f47bf959d956850ce929851f0d8115f635b105ee2e4e15d04b2454bf6f4fadf034b10403119cd8e3b92fcc5b1ccd9c752428f0bca9ac9060bb85b8f90acb9374cd8d5a03110635f591a18f131cb7cc204407efec0687a8b77ba6c4e6732c35174e79e36aaa7fa6ab685257710e074065961ce1b16d21fed8a83cd95efcc4be7111cd33b5704fe759dfab21fc3e8aaa86d44609dc0b073354f8160c653f4fbde3ae7c28c87c3667e0797fac24b32e5c1a870cd898b2a9c517709bb0b8e4ee875ff857868eb56548e6dc993f198fd78c8a77cf997ed42a15f99a9b6265c7cf9bedc7580a11514047b881f717b233f3570ec21856bd2b9791e4c43b125e9260ac3fd48b9a10de5f9d5080e53d92d194adb796766684d905cca35e691fab0c76d6b5f49242f81eb92fcc8ad00000
|
||||
15 42438e06bbb424bba5fd95122ec2f206c9b502f1f6d4e4fdbf74ed2c946ad60abaefd6fbd6a08e3ef418709d15bc557ef5e486a51d1e304f6c1e943faad948fde4e6273c0cad0df07068ad028fb01dc0fd7221aeed6ed5dc510dbe4824939036b0f3a45e740b40cef86a32f0b73b20234efc41d573f3e14efc08b3f65e9f7be52d5b930de52d41c7aadc4e0e85dfcf3bb1dd2e9cdf94fc236082879aea27207415cb846a5d5969e619040416a7f0f708f56a5b340a8fd0be1a26bfdc3de365a950532d363b427d6d905af7534af574ae8afd3f47658de5da3fa02dd818a31523122ff53dd31ffd7aa22e53cbf2da7772a1589e9a242f28f9cb1130f54553fcb355b3398fc877b80b3ef2cc3d
|
||||
15 PASS
|
||||
15 Ok</code></pre>
|
||||
<h5><a class="anchor" name="2-sending-text-messages" href="#2-sending-text-messages"><i class="anchor-icon"></i></a>2. Sending Text Messages</h5>
|
||||
<p>Once the Secret Chat has been established, you can use the following queries to make Paul and Nick exchange text messages inside the Secret Chat:</p>
|
||||
<ul>
|
||||
<li><strong>ASK [A|B]</strong> — asks A or B to send a random plaintext message to the other party. It is guaranteed that at least one of the first ten generated messages will contain the secret email and password that are the <a href="#objectives">goal</a> of this contest. It is also guaranteed that apart from that, all messages will contain only dictionary English words, spaces, line breaks and punctuation marks. The result to this query is the ciphertext corresponding to the randomly generated plaintext.</li>
|
||||
<li><strong>TXT [A|B] bytes</strong> — asks A or B to encrypt <strong>bytes</strong> as the (plaintext) contents of a text message and send it to the other party. Note that <strong>bytes</strong> can be any byte sequence, not necessarily a valid UTF-8 sequence. The result to this query is the ciphertext corresponding to the given plaintext.</li>
|
||||
<li><strong>MSG [A|B] bytes</strong> — send a specified (ciphertext) message (for example, obtained as an answer to an <strong>ASK</strong> or <strong>TXT</strong> query) to A or B. You will receive ‘Ok’ if this message was decrypted successfully and accepted by the client, or ‘Fail’ otherwise.</li>
|
||||
</ul>
|
||||
<p>Example:</p>
|
||||
<pre><code>15 ASK A
|
||||
15 b1d4a6119278722b0309a8c1fee80000c877b80b3ef2cc3dc92104de4322d8ae374fbf38758091fe4c86bafffa792f7eb37d8431cf8f868319c3af005791b7c55f788e260b8fa6a96b6808d0d448abfdb49913160c5355ef2d4e439a676055e42de6b26dd7d0e06e3fb48981208449658aff63fd8262ef0669f8bb242ade401e1190d2f54f3896ac17c1b796cbe185d5b0166649d5bac25e4626c08c78527458fc7877ee2add14a8e7b1f9b56651b8264284aa2fd28de55f96bcec8075dd43bbc69f6c05c2428795e51a081e3995e4ede72d190d55d0b30d8215bf4ed13fde7c8f578993050280ec4a940e910eb182bd335e52e2a699d9b5
|
||||
15 MSG B b1d4a6119278722b0309a8c1fee80000c877b80b3ef2cc3dc92104de4322d8ae374fbf38758091fe4c86bafffa792f7eb37d8431cf8f868319c3af005791b7c55f788e260b8fa6a96b6808d0d448abfdb49913160c5355ef2d4e439a676055e42de6b26dd7d0e06e3fb48981208449658aff63fd8262ef0669f8bb242ade401e1190d2f54f3896ac17c1b796cbe185d5b0166649d5bac25e4626c08c78527458fc7877ee2add14a8e7b1f9b56651b8264284aa2fd28de55f96bcec8075dd43bbc69f6c05c2428795e51a081e3995e4ede72d190d55d0b30d8215bf4ed13fde7c8f578993050280ec4a940e910eb182bd335e52e2a699d9b0
|
||||
15 Fail
|
||||
15 MSG B b1d4a6119278722b0309a8c1fee80000c877b80b3ef2cc3dc92104de4322d8ae374fbf38758091fe4c86bafffa792f7eb37d8431cf8f868319c3af005791b7c55f788e260b8fa6a96b6808d0d448abfdb49913160c5355ef2d4e439a676055e42de6b26dd7d0e06e3fb48981208449658aff63fd8262ef0669f8bb242ade401e1190d2f54f3896ac17c1b796cbe185d5b0166649d5bac25e4626c08c78527458fc7877ee2add14a8e7b1f9b56651b8264284aa2fd28de55f96bcec8075dd43bbc69f6c05c2428795e51a081e3995e4ede72d190d55d0b30d8215bf4ed13fde7c8f578993050280ec4a940e910eb182bd335e52e2a699d9b5
|
||||
15 Ok
|
||||
15 TXT B abac
|
||||
15 b1d4a61101771d42f62323e6fe680000c877b80b3ef2cc3df751e68b935b083a6f5c15ba8d95b94388fc34453a1e7b9b20222402b7698be5dd8a6ff69a5141b01ca2488b0dada8f2b0e47980218f48912168ddd2cebd3b61b1edf2f557c7ec44768595ce1cb42a01f7c14dd4e6e6e7601cb17ab0b6d5a274</code></pre>
|
||||
<hr>
|
||||
<h3><a class="anchor" name="objectives" href="#objectives"><i class="anchor-icon"></i></a>Objectives</h3>
|
||||
<p>We are offering a <strong>$300,000</strong> reward to the first person to break Telegram's encryption protocol in this contest.</p>
|
||||
<p>Your goal is to extract a secret email address from one of the random messages that are exchanged between Nick and Paul when you use the <strong>ASK</strong> command. It is guaranteed that at least one of the first ten generated messages within a session will contain the secret address. It is also guaranteed that apart from that, all messages will contain only dictionary English words, spaces, line breaks and punctuation marks.</p>
|
||||
<p>Once you have the address, you will need to send an email to it. That email must contain:<br>- The entire text of the message that contained the secret email.<br>- Session logs for the successful attempt with your user_id.<br>- A detailed explanation of the attack on the protocol.<br>- Your bank account details to receive the $300,000 prize.</p>
|
||||
<h4><a class="anchor" name="decrypting-messages" href="#decrypting-messages"><i class="anchor-icon"></i></a>Decrypting messages</h4>
|
||||
<p>To prove that the competition was fair, we will add a command that returns the keys used for a particular session by its <em>session_id</em> at the end of the contest. This will be done as soon as a winner is announced, or on February 4, 2015 in case no winner is announced to that date.</p>
|
||||
<h4><a class="anchor" name="bonus-objective" href="#bonus-objective"><i class="anchor-icon"></i></a>Bonus objective</h4>
|
||||
<p>We are also offering an independent <strong>$100,000</strong> reward to the first person to make the bot accept a ciphertext message (i.e. the first person to send a message using <strong>MSG [A|B] bytes</strong> and receive the result ‘OK’), provided that that ciphertext deciphers to a plaintext that was never encrypted by the bot itself within this session.</p>
|
||||
<p>Should you succeed at this, kindly send an email to security@telegram.org and include the following:<br>- Session logs for the successful attempt with your user_id.<br>- A detailed explanation of the attack on the protocol.<br>- Your bank account details to receive the $100,000 prize.</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
175
data/core.telegram.org/method/messages.getDhConfig
Normal file
175
data/core.telegram.org/method/messages.getDhConfig
Normal file
|
@ -0,0 +1,175 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>messages.getDhConfig</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.">
|
||||
<meta property="og:title" content="messages.getDhConfig">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/messages.getDhConfig" >messages.getDhConfig</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.getDhConfig</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/messages.dhConfigNotModified" >messages.dhConfigNotModified</a>#c0e24635 random:<a href="/type/bytes" >bytes</a> = <a href="/type/messages.DhConfig" >messages.DhConfig</a>;
|
||||
<a href="/constructor/messages.dhConfig" >messages.dhConfig</a>#2c221edd g:<a href="/type/int" >int</a> p:<a href="/type/bytes" >bytes</a> version:<a href="/type/int" >int</a> random:<a href="/type/bytes" >bytes</a> = <a href="/type/messages.DhConfig" >messages.DhConfig</a>;
|
||||
---functions---
|
||||
<a href="/method/messages.getDhConfig" class="current_page_link" >messages.getDhConfig</a>#26cf8950 version:<a href="/type/int" >int</a> random_length:<a href="/type/int" >int</a> = <a href="/type/messages.DhConfig" >messages.DhConfig</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>version</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Value of the <strong>version</strong> parameter from <a href="/constructor/messages.dhConfig">messages.dhConfig</a>, avialable at the client</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>random_length</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Length of the required random sequence</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/messages.DhConfig">messages.DhConfig</a></p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>RANDOM_LENGTH_INVALID</td>
|
||||
<td>Random length invalid.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#messagesdhconfig" id="messagesdhconfig" name="messagesdhconfig"><i class="anchor-icon"></i></a><a href="/constructor/messages.dhConfig">messages.dhConfig</a></h4>
|
||||
<p>New set of configuring parameters.</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
193
data/core.telegram.org/method/phone.acceptCall
Normal file
193
data/core.telegram.org/method/phone.acceptCall
Normal file
|
@ -0,0 +1,193 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>phone.acceptCall</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Accept incoming call">
|
||||
<meta property="og:title" content="phone.acceptCall">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Accept incoming call">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/phone.acceptCall" >phone.acceptCall</a></li></ul></div>
|
||||
<h1 id="dev_page_title">phone.acceptCall</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Accept incoming call</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/phone.phoneCall" >phone.phoneCall</a>#ec82e140 phone_call:<a href="/type/PhoneCall" >PhoneCall</a> users:<a href="/type/Vector%20t" >Vector</a><<a href="/type/User" >User</a>> = <a href="/type/phone.PhoneCall" >phone.PhoneCall</a>;
|
||||
---functions---
|
||||
<a href="/method/phone.acceptCall" class="current_page_link" >phone.acceptCall</a>#3bd2b4a0 peer:<a href="/type/InputPhoneCall" >InputPhoneCall</a> g_b:<a href="/type/bytes" >bytes</a> protocol:<a href="/type/PhoneCallProtocol" >PhoneCallProtocol</a> = <a href="/type/phone.PhoneCall" >phone.PhoneCall</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputPhoneCall">InputPhoneCall</a></td>
|
||||
<td>The call to accept</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>g_b</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/bytes">bytes</a></td>
|
||||
<td><a href="/api/end-to-end/voice-calls">Parameter for E2E encryption key exchange »</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>protocol</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/PhoneCallProtocol">PhoneCallProtocol</a></td>
|
||||
<td>Phone call settings</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/phone.PhoneCall">phone.PhoneCall</a></p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>CALL_ALREADY_ACCEPTED</td>
|
||||
<td>The call was already accepted.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>CALL_ALREADY_DECLINED</td>
|
||||
<td>The call was already declined.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>CALL_PEER_INVALID</td>
|
||||
<td>The provided call peer object is invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>CALL_PROTOCOL_FLAGS_INVALID</td>
|
||||
<td>Call protocol flags invalid.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#end-to-end-encrypted-voice-calls" id="end-to-end-encrypted-voice-calls" name="end-to-end-encrypted-voice-calls"><i class="anchor-icon"></i></a><a href="/api/end-to-end/voice-calls">End-to-End Encrypted Voice Calls</a></h4></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
213
data/core.telegram.org/method/phone.requestCall
Normal file
213
data/core.telegram.org/method/phone.requestCall
Normal file
|
@ -0,0 +1,213 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>phone.requestCall</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Start a telegram phone call">
|
||||
<meta property="og:title" content="phone.requestCall">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Start a telegram phone call">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/phone.requestCall" >phone.requestCall</a></li></ul></div>
|
||||
<h1 id="dev_page_title">phone.requestCall</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Start a telegram phone call</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/phone.phoneCall" >phone.phoneCall</a>#ec82e140 phone_call:<a href="/type/PhoneCall" >PhoneCall</a> users:<a href="/type/Vector%20t" >Vector</a><<a href="/type/User" >User</a>> = <a href="/type/phone.PhoneCall" >phone.PhoneCall</a>;
|
||||
---functions---
|
||||
<a href="/method/phone.requestCall" class="current_page_link" >phone.requestCall</a>#42ff96ed flags:<a href="/type/%23" >#</a> video:flags.0?true user_id:<a href="/type/InputUser" >InputUser</a> random_id:<a href="/type/int" >int</a> g_a_hash:<a href="/type/bytes" >bytes</a> protocol:<a href="/type/PhoneCallProtocol" >PhoneCallProtocol</a> = <a href="/type/phone.PhoneCall" >phone.PhoneCall</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>video</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether to start a video call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>user_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputUser">InputUser</a></td>
|
||||
<td>Destination of the phone call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>random_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Random ID to avoid resending the same object</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>g_a_hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/bytes">bytes</a></td>
|
||||
<td><a href="/api/end-to-end/voice-calls">Parameter for E2E encryption key exchange »</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>protocol</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/PhoneCallProtocol">PhoneCallProtocol</a></td>
|
||||
<td>Phone call settings</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/phone.PhoneCall">phone.PhoneCall</a></p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>CALL_PROTOCOL_FLAGS_INVALID</td>
|
||||
<td>Call protocol flags invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>PARTICIPANT_VERSION_OUTDATED</td>
|
||||
<td>The other participant does not use an up to date telegram client with support for calls.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>USER_ID_INVALID</td>
|
||||
<td>The provided user ID is invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>403</td>
|
||||
<td>USER_IS_BLOCKED</td>
|
||||
<td>You were blocked by this user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>403</td>
|
||||
<td>USER_PRIVACY_RESTRICTED</td>
|
||||
<td>The user's privacy settings do not allow you to do this.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#end-to-end-encrypted-voice-calls" id="end-to-end-encrypted-voice-calls" name="end-to-end-encrypted-voice-calls"><i class="anchor-icon"></i></a><a href="/api/end-to-end/voice-calls">End-to-End Encrypted Voice Calls</a></h4></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
177
data/core.telegram.org/mtproto/security_guidelines.html
Normal file
177
data/core.telegram.org/mtproto/security_guidelines.html
Normal file
|
@ -0,0 +1,177 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Security Guidelines for Client Developers</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Important checks required in your client application.">
|
||||
<meta property="og:title" content="Security Guidelines for Client Developers">
|
||||
<meta property="og:image" content="2d1fe58b932e5bef0d">
|
||||
<meta property="og:description" content="Important checks required in your client application.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class="active"><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="/mtproto" >Mobile Protocol</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/mtproto/security_guidelines" >Security Guidelines for Client Developers</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Security Guidelines for Client Developers</h1>
|
||||
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p><strong>See also:</strong></p>
|
||||
<p><div class="dev_page_nav_wrap"></p>
|
||||
<ul>
|
||||
<li><a href="/api/pfs">Perfect Forward Secrecy</a></li>
|
||||
<li><a href="/api/end-to-end">Secret chats, end-to-end encryption</a></li>
|
||||
<li><a href="/api/end-to-end/pfs">Perfect Forward Secrecy in Secret Chats</a></li>
|
||||
<li><a href="/mtproto/description">MTProto 2.0, Detailed Description</a>
|
||||
</div></li>
|
||||
</ul>
|
||||
<p>While <a href="/mtproto">MTProto</a> is designed to be a reasonably fast and secure protocol, its advantages can be easily negated by careless implementation. We collected some security guidelines for client software developers on this page. All Telegram clients are required to comply.</p>
|
||||
<blockquote>
|
||||
<p>Note that as of version 4.6, major Telegram clients are using <strong>MTProto 2.0</strong>.
|
||||
MTProto v.1.0 is deprecated and is currently being phased out.</p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" href="#diffie-hellman-key-exchange" id="diffie-hellman-key-exchange" name="diffie-hellman-key-exchange"><i class="anchor-icon"></i></a>Diffie-Hellman key exchange</h3>
|
||||
<p>We use DH key exchange in two cases:</p>
|
||||
<ul>
|
||||
<li><a href="/mtproto/auth_key">Creating an authorization key</a></li>
|
||||
<li><a href="/api/end-to-end">Establishing Secret Chats with end-to-end encryption</a></li>
|
||||
</ul>
|
||||
<p>In both cases, there are some verifications to be done whenever DH is used:</p>
|
||||
<h4><a class="anchor" href="#validation-of-dh-parameters" id="validation-of-dh-parameters" name="validation-of-dh-parameters"><i class="anchor-icon"></i></a>Validation of DH parameters</h4>
|
||||
<p>Client is expected to check whether <strong>p = dh_prime</strong> is a safe 2048-bit prime (meaning that both <strong>p</strong> and <strong>(p-1)/2</strong> are prime, and that 2^2047 < p < 2^2048), and that <strong>g</strong> generates a cyclic subgroup of prime order <strong>(p-1)/2</strong>, i.e. is a quadratic residue <strong>mod p</strong>. Since <strong>g</strong> is always equal to 2, 3, 4, 5, 6 or 7, this is easily done using quadratic reciprocity law, yielding a simple condition on <strong>p mod 4g</strong> -- namely, <strong>p mod 8 = 7</strong> for <strong>g = 2</strong>; <strong>p mod 3 = 2</strong> for <strong>g = 3</strong>; no extra condition for <strong>g = 4</strong>; <strong>p mod 5 = 1 or 4</strong> for <strong>g = 5</strong>; <strong>p mod 24 = 19 or 23</strong> for <strong>g = 6</strong>; and <strong>p mod 7 = 3, 5 or 6</strong> for <strong>g = 7</strong>. After <strong>g</strong> and <strong>p</strong> have been checked by the client, it makes sense to cache the result, so as not to repeat lengthy computations in future.</p>
|
||||
<p>If the verification takes too long (which is the case for older mobile devices), one might initially run only 15 Miller--Rabin iterations (use parameter 30 in Java) for verifying primeness of <strong>p</strong> and <strong>(p - 1)/2</strong> with error probability not exceeding one billionth, and do more iterations in the background later.</p>
|
||||
<p>Another way to optimize this is to embed into the client application code a small table with some known "good" couples <strong>(g,p)</strong> (or just known safe primes <strong>p</strong>, since the condition on <strong>g</strong> is easily verified during execution), checked during code generation phase, so as to avoid doing such verification during runtime altogether. The server rarely changes these values, thus one usually needs to put the current value of server's <strong>dh_prime</strong> into such a table. For example, the current value of <strong>dh_prime</strong> equals (in big-endian byte order)</p>
|
||||
<pre><code>C7 1C AE B9 C6 B1 C9 04 8E 6C 52 2F 70 F1 3F 73 98 0D 40 23 8E 3E 21 C1 49 34 D0 37 56 3D 93 0F 48 19 8A 0A A7 C1 40 58 22 94 93 D2 25 30 F4 DB FA 33 6F 6E 0A C9 25 13 95 43 AE D4 4C CE 7C 37 20 FD 51 F6 94 58 70 5A C6 8C D4 FE 6B 6B 13 AB DC 97 46 51 29 69 32 84 54 F1 8F AF 8C 59 5F 64 24 77 FE 96 BB 2A 94 1D 5B CD 1D 4A C8 CC 49 88 07 08 FA 9B 37 8E 3C 4F 3A 90 60 BE E6 7C F9 A4 A4 A6 95 81 10 51 90 7E 16 27 53 B5 6B 0F 6B 41 0D BA 74 D8 A8 4B 2A 14 B3 14 4E 0E F1 28 47 54 FD 17 ED 95 0D 59 65 B4 B9 DD 46 58 2D B1 17 8D 16 9C 6B C4 65 B0 D6 FF 9C A3 92 8F EF 5B 9A E4 E4 18 FC 15 E8 3E BE A0 F8 7F A9 FF 5E ED 70 05 0D ED 28 49 F4 7B F9 59 D9 56 85 0C E9 29 85 1F 0D 81 15 F6 35 B1 05 EE 2E 4E 15 D0 4B 24 54 BF 6F 4F AD F0 34 B1 04 03 11 9C D8 E3 B9 2F CC 5B</code></pre>
|
||||
<h4><a class="anchor" href="#g-a-and-g-b-validation" id="g-a-and-g-b-validation" name="g-a-and-g-b-validation"><i class="anchor-icon"></i></a>g_a and g_b validation</h4>
|
||||
<p>Apart from the conditions on the Diffie-Hellman prime <strong>dh_prime</strong> and generator <strong>g</strong>, both sides are to check that <strong>g</strong>, <strong>g_a</strong> and <strong>g_b</strong> are greater than <strong>1</strong> and less than <strong>dh_prime - 1</strong>. We recommend checking that <strong>g_a</strong> and <strong>g_b</strong> are between <strong>2^{2048-64}</strong> and <strong>dh_prime - 2^{2048-64}</strong> as well.</p>
|
||||
<h4><a class="anchor" href="#checking-sha1-hash-values-during-key-generation" id="checking-sha1-hash-values-during-key-generation" name="checking-sha1-hash-values-during-key-generation"><i class="anchor-icon"></i></a>Checking SHA1 hash values during key generation</h4>
|
||||
<p>Once the client receives a <code>server_DH_params_ok</code> answer in step 5) of the Authorization Key generation protocol and decrypts it obtaining <code>answer_with_hash</code>, it MUST check that </p>
|
||||
<pre><code>answer_with_hash := SHA1(answer) + answer + (0-15 random bytes)</code></pre>
|
||||
<p>In other words, the first 20 bytes of <code>answer_with_hash</code> must be equal to SHA1 of the remainder of the decrypted message without the padding random bytes.</p>
|
||||
<h4><a class="anchor" href="#checking-nonce-server-nonce-and-new-nonce-fields" id="checking-nonce-server-nonce-and-new-nonce-fields" name="checking-nonce-server-nonce-and-new-nonce-fields"><i class="anchor-icon"></i></a>Checking nonce, server_nonce and new_nonce fields</h4>
|
||||
<p>When the client receives and/or decrypts server messages during creation of Authorization Key, and these messages contain some nonce fields already known to the client from messages previously obtained during the same run of the protocol, the client is to check that these fields indeed contain the values previosly known.</p>
|
||||
<h4><a class="anchor" href="#using-secure-pseudorandom-number-generator-to-create-dh-secret-parameters-a-and-b" id="using-secure-pseudorandom-number-generator-to-create-dh-secret-parameters-a-and-b" name="using-secure-pseudorandom-number-generator-to-create-dh-secret-parameters-a-and-b"><i class="anchor-icon"></i></a>Using secure pseudorandom number generator to create DH secret parameters <code>a</code> and <code>b</code></h4>
|
||||
<p>Client must use a cryptographically secure PRNG to generate secret exponents <code>a</code> or <code>b</code> for DH key exchange. For secret chats, the client might request some entropy (random bytes) from the server while invoking <a href="/method/messages.getDhConfig">messages.getDhConfig</a> and feed these random bytes into its PRNG (for example, by <code>PRNG_seed</code> if OpenSSL library is used), but never using these "random" bytes by themselves or replacing by them the local PRNG seed. One should mix bytes received from server into local PRNG seed.</p>
|
||||
<h3><a class="anchor" href="#mtproto-encrypted-messages" id="mtproto-encrypted-messages" name="mtproto-encrypted-messages"><i class="anchor-icon"></i></a>MTProto Encrypted Messages</h3>
|
||||
<p>Some important checks are to be done while sending and especially receiving <a href="/mtproto/description">encrypted MTProto messages</a>.</p>
|
||||
<h4><a class="anchor" href="#checking-sha256-hash-value-of-msg-key" id="checking-sha256-hash-value-of-msg-key" name="checking-sha256-hash-value-of-msg-key"><i class="anchor-icon"></i></a>Checking SHA256 hash value of msg_key</h4>
|
||||
<p><code>msg_key</code> is used not only to compute the AES key and IV to decrypt the received message. After decryption, the client <strong>MUST</strong> check that <code>msg_key</code> is indeed equal to SHA256 of the plaintext obtained as the result of decryption (including the final 12...1024 padding bytes), prepended with 32 bytes taken from the <code>auth_key</code>, as explained in <a href="/mtproto/description#defining-aes-key-and-initialization-vector">MTProto 2.0 Description</a>.</p>
|
||||
<p>If an error is encountered before this check could be performed, the client <strong>must</strong> perform the <code>msg_key</code> check anyway before returning any result. Note that the response to any error encountered before the <code>msg_key</code> check <strong>must</strong> be the same as the response to a failed <code>msg_key</code> check.</p>
|
||||
<h4><a class="anchor" href="#checking-message-length" id="checking-message-length" name="checking-message-length"><i class="anchor-icon"></i></a>Checking message length</h4>
|
||||
<p>The client <strong>must</strong> check that the length of the message or container obtained from the decrypted message (computed from its <code>length</code> field) does not exceed the total size of the plaintext, and that the difference (i.e. the length of the random padding) lies in the range from 12 to 1024 bytes.</p>
|
||||
<p>The length should be always divisible by 4 and non-negative. On no account the client is to access data past the end of the decryption buffer containing the plaintext message.</p>
|
||||
<h4><a class="anchor" href="#checking-session-id" id="checking-session-id" name="checking-session-id"><i class="anchor-icon"></i></a>Checking session_id</h4>
|
||||
<p>The client is to check that the <code>session_id</code> field in the decrypted message indeed equals to that of an active session created by the client.</p>
|
||||
<h4><a class="anchor" href="#checking-msg-id" id="checking-msg-id" name="checking-msg-id"><i class="anchor-icon"></i></a>Checking msg_id</h4>
|
||||
<p>The client must check that <code>msg_id</code> has even parity for messages from client to server, and odd parity for messages from server to client.</p>
|
||||
<p>In addition, the identifiers (msg_id) of the last N messages received from the other side must be stored, and if a message comes in with an msg_id lower than all or equal to any of the stored values, that message is to be ignored. Otherwise, the new message msg_id is added to the set, and, if the number of stored msg_id values is greater than N, the oldest (i. e. the lowest) is discarded.</p>
|
||||
<p>In addition, msg_id values that belong over 30 seconds in the future or over 300 seconds in the past are to be ignored (recall that <code>msg_id</code> approximately equals unixtime * 2^32). This is especially important for the server. The client would also find this useful (to protect from a replay attack), but only if it is certain of its time (for example, if its time has been synchronized with that of the server).</p>
|
||||
<p>Certain client-to-server service messages containing data sent by the client to the server (for example, <code>msg_id</code> of a recent client query) may, nonetheless, be processed on the client even if the time appears to be “incorrect”. This is especially true of messages to change server_salt and notifications about invalid time on the client. See <a href="/mtproto/service_messages">Mobile Protocol: Service Messages</a>.</p>
|
||||
<h2><a class="anchor" href="#behavior-in-case-of-mismatch" id="behavior-in-case-of-mismatch" name="behavior-in-case-of-mismatch"><i class="anchor-icon"></i></a>Behavior in case of mismatch</h2>
|
||||
<p>If one of the checks listed above fails, the client is to completely discard the message obtained from server. We also recommend closing and reestablishing the TCP connection to the server, then retrying the operation or the whole key generation protocol.</p>
|
||||
<p>No information from incorrect messages can be used. Even if the application throws an exception and dies, this is much better than continuing with invalid data.</p>
|
||||
<p>Notice that invalid messages will infrequently appear during normal work even if no malicious tampering is being done. This is due to network transmission errors. We recommend ignoring the invalid message and closing the TCP connection, then creating a new TCP connection to the server and retrying the original query.</p>
|
||||
<blockquote>
|
||||
<p>The previous version of security recommendations relevant for MTProto 1.0 clients is available <a href="/mtproto/security_guidelines_v1">here</a>.</p>
|
||||
</blockquote></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></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>
|
||||
|
175
data/core.telegram.org/mtproto/security_guidelines_v1.html
Normal file
175
data/core.telegram.org/mtproto/security_guidelines_v1.html
Normal file
|
@ -0,0 +1,175 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Security Guidelines for Client Developers (v.1.0, DEPRECATED)</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="This document describes security recommendations for clients using MTProto 1.0, its status is DEPRECATED.
|
||||
For up-to-date…">
|
||||
<meta property="og:title" content="Security Guidelines for Client Developers (v.1.0, DEPRECATED)">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="This document describes security recommendations for clients using MTProto 1.0, its status is DEPRECATED.
|
||||
For up-to-date…">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class="active"><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="/mtproto" >Mobile Protocol</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/mtproto/security_guidelines_v1" >Security Guidelines for Client Developers…</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Security Guidelines for Client Developers (v.1.0, DEPRECATED)</h1>
|
||||
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<blockquote>
|
||||
<p>This document describes security recommendations for clients using MTProto 1.0, its status is <strong>DEPRECATED</strong>.
|
||||
For up-to-date security recommendations, kindly see <a href="/mtproto/security_guidelines">this document</a>.</p>
|
||||
</blockquote>
|
||||
<p><strong>See also:</strong></p>
|
||||
<p><div class="dev_page_nav_wrap"></p>
|
||||
<ul>
|
||||
<li><a href="/api/pfs">Perfect Forward Secrecy</a></li>
|
||||
<li><a href="/api/end-to-end">Secret chats, end-to-end encryption</a></li>
|
||||
<li><a href="/api/end-to-end/pfs">Perfect Forward Secrecy in Secret Chats</a>
|
||||
</div></li>
|
||||
</ul>
|
||||
<p>While <a href="/mtproto">MTProto</a> is designed to be a reasonably fast and secure protocol, its advantages can be easily negated by careless implementation. We collected some security guidelines for client software developers on this page. All Telegram clients are required to comply with these.</p>
|
||||
<h3><a class="anchor" href="#diffie--hellman-key-exchange" id="diffie--hellman-key-exchange" name="diffie--hellman-key-exchange"><i class="anchor-icon"></i></a>Diffie--Hellman key exchange</h3>
|
||||
<p>We use DH key exchange in two cases:</p>
|
||||
<ul>
|
||||
<li><a href="/mtproto/auth_key">Creating an authorization key</a></li>
|
||||
<li><a href="/api/end-to-end">Establishing Secret Chats with end-to-end encryption</a></li>
|
||||
</ul>
|
||||
<p>In both cases, there are some verifications to be done whenever DH is used:</p>
|
||||
<h4><a class="anchor" href="#validation-of-dh-parameters" id="validation-of-dh-parameters" name="validation-of-dh-parameters"><i class="anchor-icon"></i></a>Validation of DH parameters</h4>
|
||||
<p>Client is expected to check whether <strong>p = dh_prime</strong> is a safe 2048-bit prime (meaning that both <strong>p</strong> and <strong>(p-1)/2</strong> are prime, and that 2^2047 < p < 2^2048), and that <strong>g</strong> generates a cyclic subgroup of prime order <strong>(p-1)/2</strong>, i.e. is a quadratic residue <strong>mod p</strong>. Since <strong>g</strong> is always equal to 2, 3, 4, 5, 6 or 7, this is easily done using quadratic reciprocity law, yielding a simple condition on <strong>p mod 4g</strong> -- namely, <strong>p mod 8 = 7</strong> for <strong>g = 2</strong>; <strong>p mod 3 = 2</strong> for <strong>g = 3</strong>; no extra condition for <strong>g = 4</strong>; <strong>p mod 5 = 1 or 4</strong> for <strong>g = 5</strong>; <strong>p mod 24 = 19 or 23</strong> for <strong>g = 6</strong>; and <strong>p mod 7 = 3, 5 or 6</strong> for <strong>g = 7</strong>. After <strong>g</strong> and <strong>p</strong> have been checked by the client, it makes sense to cache the result, so as not to repeat lengthy computations in future.</p>
|
||||
<p>If the verification takes too long (which is the case for older mobile devices), one might initially run only 15 Miller--Rabin iterations (use parameter 30 in Java) for verifying primeness of <strong>p</strong> and <strong>(p - 1)/2</strong> with error probability not exceeding one billionth, and do more iterations in the background later.</p>
|
||||
<p>Another way to optimize this is to embed into the client application code a small table with some known "good" couples <strong>(g,p)</strong> (or just known safe primes <strong>p</strong>, since the condition on <strong>g</strong> is easily verified during execution), checked during code generation phase, so as to avoid doing such verification during runtime altogether. The server rarely changes these values, thus one usually needs to put the current value of server's <strong>dh_prime</strong> into such a table. For example, the current value of <strong>dh_prime</strong> equals (in big-endian byte order)</p>
|
||||
<pre><code>C7 1C AE B9 C6 B1 C9 04 8E 6C 52 2F 70 F1 3F 73 98 0D 40 23 8E 3E 21 C1 49 34 D0 37 56 3D 93 0F 48 19 8A 0A A7 C1 40 58 22 94 93 D2 25 30 F4 DB FA 33 6F 6E 0A C9 25 13 95 43 AE D4 4C CE 7C 37 20 FD 51 F6 94 58 70 5A C6 8C D4 FE 6B 6B 13 AB DC 97 46 51 29 69 32 84 54 F1 8F AF 8C 59 5F 64 24 77 FE 96 BB 2A 94 1D 5B CD 1D 4A C8 CC 49 88 07 08 FA 9B 37 8E 3C 4F 3A 90 60 BE E6 7C F9 A4 A4 A6 95 81 10 51 90 7E 16 27 53 B5 6B 0F 6B 41 0D BA 74 D8 A8 4B 2A 14 B3 14 4E 0E F1 28 47 54 FD 17 ED 95 0D 59 65 B4 B9 DD 46 58 2D B1 17 8D 16 9C 6B C4 65 B0 D6 FF 9C A3 92 8F EF 5B 9A E4 E4 18 FC 15 E8 3E BE A0 F8 7F A9 FF 5E ED 70 05 0D ED 28 49 F4 7B F9 59 D9 56 85 0C E9 29 85 1F 0D 81 15 F6 35 B1 05 EE 2E 4E 15 D0 4B 24 54 BF 6F 4F AD F0 34 B1 04 03 11 9C D8 E3 B9 2F CC 5B</code></pre>
|
||||
<h4><a class="anchor" href="#g-a-and-g-b-validation" id="g-a-and-g-b-validation" name="g-a-and-g-b-validation"><i class="anchor-icon"></i></a>g_a and g_b validation</h4>
|
||||
<p>Apart from the conditions on the Diffie-Hellman prime <strong>dh_prime</strong> and generator <strong>g</strong>, both sides are to check that <strong>g</strong>, <strong>g_a</strong> and <strong>g_b</strong> are greater than <strong>1</strong> and less than <strong>dh_prime - 1</strong>. We recommend checking that <strong>g_a</strong> and <strong>g_b</strong> are between <strong>2^{2048-64}</strong> and <strong>dh_prime - 2^{2048-64}</strong> as well.</p>
|
||||
<h4><a class="anchor" href="#checking-sha1-hash-values" id="checking-sha1-hash-values" name="checking-sha1-hash-values"><i class="anchor-icon"></i></a>Checking SHA1 hash values</h4>
|
||||
<p>Once the client receives a <code>server_DH_params_ok</code> answer in step 5) of the Authorization Key generation protocol and decrypts it obtaining <code>answer_with_hash</code>, it MUST check that </p>
|
||||
<pre><code>answer_with_hash := SHA1(answer) + answer + (0-15 random bytes)</code></pre>
|
||||
<p>In other words, the first 20 bytes of <code>answer_with_hash</code> must be equal to SHA1 of the remainder of the decrypted message without the padding random bytes.</p>
|
||||
<h4><a class="anchor" href="#checking-nonce-server-nonce-and-new-nonce-fields" id="checking-nonce-server-nonce-and-new-nonce-fields" name="checking-nonce-server-nonce-and-new-nonce-fields"><i class="anchor-icon"></i></a>Checking nonce, server_nonce and new_nonce fields</h4>
|
||||
<p>When the client receives and/or decrypts server messages during creation of Authorization Key, and these messages contain some nonce fields already known to the client from messages previously obtained during the same run of the protocol, the client is to check that these fields indeed contain the values previosly known.</p>
|
||||
<h4><a class="anchor" href="#using-secure-pseudorandom-number-generator-to-create-dh-secret-parameters-a-and-b" id="using-secure-pseudorandom-number-generator-to-create-dh-secret-parameters-a-and-b" name="using-secure-pseudorandom-number-generator-to-create-dh-secret-parameters-a-and-b"><i class="anchor-icon"></i></a>Using secure pseudorandom number generator to create DH secret parameters <code>a</code> and <code>b</code></h4>
|
||||
<p>Client must use a cryptographically secure PRNG to generate secret exponents <code>a</code> or <code>b</code> for DH key exchange. For secret chats, the client might request some entropy (random bytes) from the server while invoking <a href="/method/messages.getDhConfig">messages.getDhConfig</a> and feed these random bytes into its PRNG (for example, by <code>PRNG_seed</code> if OpenSSL library is used), but never using these "random" bytes by themselves or replacing by them the local PRNG seed. One should mix bytes received from server into local PRNG seed.</p>
|
||||
<h3><a class="anchor" href="#mtproto-encrypted-messages" id="mtproto-encrypted-messages" name="mtproto-encrypted-messages"><i class="anchor-icon"></i></a>MTProto Encrypted Messages</h3>
|
||||
<p>Some important checks are to be done while sending and especially receiving <a href="/mtproto/description">encrypted MTProto messages</a>.</p>
|
||||
<h4><a class="anchor" href="#checking-sha1-hash-value-of-msg-key" id="checking-sha1-hash-value-of-msg-key" name="checking-sha1-hash-value-of-msg-key"><i class="anchor-icon"></i></a>Checking SHA1 hash value of msg_key</h4>
|
||||
<p><code>msg_key</code> is used not only to compute the AES key and IV to decrypt the received message. After decryption, the client <strong>MUST</strong> check that <code>msg_key</code> is indeed equal to SHA1 of the plaintext obtained as the result of decryption (without the final padding bytes).</p>
|
||||
<p>If an error is encountered before this check could be performed, the client <strong>must</strong> perform the <code>msg-key</code> check anyway before returning any result. Note that the response to any error encountered before the <code>msg_key</code> check <strong>must</strong> be the same as the response to a failed <code>msg_key</code> check.</p>
|
||||
<h4><a class="anchor" href="#checking-message-length" id="checking-message-length" name="checking-message-length"><i class="anchor-icon"></i></a>Checking message length</h4>
|
||||
<p>The client is to check that the length of the message or container obtained from the decrypted message (computed from its <code>length</code> field) does not exceed the total size of the plaintext, and that the difference is not more than 15 bytes. Apart from this, knowing the total length is important for the previous verification.</p>
|
||||
<p>The length should be always divisible by 4 and non-negative. On no account the client is to access data past the end of the decryption buffer containing the plaintext message.</p>
|
||||
<h4><a class="anchor" href="#checking-session-id" id="checking-session-id" name="checking-session-id"><i class="anchor-icon"></i></a>Checking session_id</h4>
|
||||
<p>The client is to check that the <code>session_id</code> field in the decrypted message indeed equals to that of an active session created by the client.</p>
|
||||
<h4><a class="anchor" href="#checking-msg-id" id="checking-msg-id" name="checking-msg-id"><i class="anchor-icon"></i></a>Checking msg_id</h4>
|
||||
<p>The client must check that <code>msg_id</code> has even parity for messages from client to server, and odd parity for messages from server to client.</p>
|
||||
<p>In addition, the identifiers (msg_id) of the last N messages received from the other side must be stored, and if a message comes in with an msg_id lower than all or equal to any of the stored values, that message is to be ignored. Otherwise, the new message msg_id is added to the set, and, if the number of stored msg_id values is greater than N, the oldest (i. e. the lowest) is discarded.</p>
|
||||
<p>In addition, msg_id values that belong over 30 seconds in the future or over 300 seconds in the past are to be ignored (recall that <code>msg_id</code> approximately equals unixtime * 2^32). This is especially important for the server. The client would also find this useful (to protect from a replay attack), but only if it is certain of its time (for example, if its time has been synchronized with that of the server).</p>
|
||||
<p>Certain client-to-server service messages containing data sent by the client to the server (for example, <code>msg_id</code> of a recent client query) may, nonetheless, be processed on the client even if the time appears to be “incorrect”. This is especially true of messages to change server_salt and notifications about invalid time on the client. See <a href="/mtproto/service_messages">Mobile Protocol: Service Messages</a>.</p>
|
||||
<h2><a class="anchor" href="#behavior-in-case-of-mismatch" id="behavior-in-case-of-mismatch" name="behavior-in-case-of-mismatch"><i class="anchor-icon"></i></a>Behavior in case of mismatch</h2>
|
||||
<p>If one of the checks listed above fails, the client is to completely discard the message obtained from server. We also recommend closing and reestablishing the TCP connection to the server, then retrying the operation or the whole key generation protocol.</p>
|
||||
<p>No information from incorrect messages can be used. Even if the application throws an exception and dies, this is much better than continuing with invalid data.</p>
|
||||
<p>Notice that invalid messages will infrequently appear during normal work even if no malicious tampering is being done. This is due to network transmission errors. We recommend ignoring the invalid message and closing the TCP connection, then creating a new TCP connection to the server and retrying the original query.</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></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>
|
||||
|
1800
data/core.telegram.org/schema.html
Normal file
1800
data/core.telegram.org/schema.html
Normal file
File diff suppressed because it is too large
Load diff
143
data/core.telegram.org/type/Error.html
Normal file
143
data/core.telegram.org/type/Error.html
Normal file
|
@ -0,0 +1,143 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="An object containing a query error.">
|
||||
<meta property="og:title" content="Error">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="An object containing a query error.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/Error" >Error</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Error</h1>
|
||||
|
||||
<div id="dev_page_content"><p>An object containing a query error.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/error" >error</a>#c4b9f9bb code:<a href="/type/int" >int</a> text:<a href="/type/string" >string</a> = <a href="/type/Error" class="current_page_link" >Error</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#constructors" id="constructors" name="constructors"><i class="anchor-icon"></i></a>Constructors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Constructor</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/error">error</a></td>
|
||||
<td>Error.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
143
data/core.telegram.org/type/Null.html
Normal file
143
data/core.telegram.org/type/Null.html
Normal file
|
@ -0,0 +1,143 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Null</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Object corresponds to an arbitrary empty object.">
|
||||
<meta property="og:title" content="Null">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Object corresponds to an arbitrary empty object.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/Null" >Null</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Null</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Object corresponds to an arbitrary empty object.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/null" >null</a>#56730bcc = <a href="/type/Null" class="current_page_link" >Null</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#constructors" id="constructors" name="constructors"><i class="anchor-icon"></i></a>Constructors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Constructor</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/null">null</a></td>
|
||||
<td>Corresponds to an arbitrary empty object.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
143
data/core.telegram.org/type/StatsURL.html
Normal file
143
data/core.telegram.org/type/StatsURL.html
Normal file
|
@ -0,0 +1,143 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>StatsURL</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="URL with chat statistics">
|
||||
<meta property="og:title" content="StatsURL">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="URL with chat statistics">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/StatsURL" >StatsURL</a></li></ul></div>
|
||||
<h1 id="dev_page_title">StatsURL</h1>
|
||||
|
||||
<div id="dev_page_content"><p>URL with chat statistics</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/statsURL" >statsURL</a>#47a971e0 url:<a href="/type/string" >string</a> = <a href="/type/StatsURL" class="current_page_link" >StatsURL</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#constructors" id="constructors" name="constructors"><i class="anchor-icon"></i></a>Constructors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Constructor</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/statsURL">statsURL</a></td>
|
||||
<td>URL with chat statistics</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
189
data/corefork.telegram.org/api/errors.html
Normal file
189
data/corefork.telegram.org/api/errors.html
Normal file
|
@ -0,0 +1,189 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error handling </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="How to handle API return errors correctly.">
|
||||
<meta property="og:title" content="Error handling ">
|
||||
<meta property="og:image" content="80b44334eec2aec564">
|
||||
<meta property="og:description" content="How to handle API return errors correctly.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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/errors" >Error handling </a></li></ul></div>
|
||||
<h1 id="dev_page_title">Error handling </h1>
|
||||
|
||||
<div id="dev_page_content"><p>There will be errors when working with the API, and they must be correctly handled on the client.</p>
|
||||
<p>An error is characterized by several parameters:</p>
|
||||
<h4><a class="anchor" href="#error-code" id="error-code" name="error-code"><i class="anchor-icon"></i></a>Error Code</h4>
|
||||
<p>Numerical value similar to HTTP status. Contains information on the type of error that occurred: for example, a data input error, privacy error, or server error. This is a required parameter.</p>
|
||||
<h4><a class="anchor" href="#error-type" id="error-type" name="error-type"><i class="anchor-icon"></i></a>Error Type</h4>
|
||||
<p>A string literal in the form of <code>/[A-Z_0-9]+/</code>, which summarizes the problem. For example, <code>AUTH_KEY_UNREGISTERED</code>. This is an optional parameter.</p>
|
||||
<hr>
|
||||
<h4><a class="anchor" href="#error-constructors" id="error-constructors" name="error-constructors"><i class="anchor-icon"></i></a>Error Constructors</h4>
|
||||
<p>There should be a way to handle errors that are returned in <a href="/mtproto/service_messages#rpc-error">rpc_error</a> constructors.</p>
|
||||
<p>Below is a list of error codes and their meanings:</p>
|
||||
<h3><a class="anchor" href="#303-see-other" id="303-see-other" name="303-see-other"><i class="anchor-icon"></i></a>303 SEE_OTHER</h3>
|
||||
<p>The request must be repeated, but directed to a different data center.</p>
|
||||
<h4><a class="anchor" href="#examples-of-errors" id="examples-of-errors" name="examples-of-errors"><i class="anchor-icon"></i></a>Examples of Errors:</h4>
|
||||
<ul>
|
||||
<li>FILE_MIGRATE_X: the file to be accessed is currently stored in a different data center.</li>
|
||||
<li>PHONE_MIGRATE_X: the phone number a user is trying to use for authorization is associated with a different data center.</li>
|
||||
<li>NETWORK_MIGRATE_X: the source IP address is associated with a different data center (for registration)</li>
|
||||
<li>USER_MIGRATE_X: the user whose identity is being used to execute queries is associated with a different data center (for registration)</li>
|
||||
</ul>
|
||||
<p>In all these cases, the error description’s string literal contains the number of the data center (instead of the X) to which the repeated query must be sent.
|
||||
<a href="/api/datacenter">More information about redirects between data centers »</a></p>
|
||||
<h3><a class="anchor" href="#400-bad-request" id="400-bad-request" name="400-bad-request"><i class="anchor-icon"></i></a>400 BAD_REQUEST</h3>
|
||||
<p>The query contains errors. In the event that a request was created using a form and contains user generated data, the user should be notified that the data must be corrected before the query is repeated.</p>
|
||||
<h4><a class="anchor" href="#examples-of-errors" id="examples-of-errors" name="examples-of-errors"><i class="anchor-icon"></i></a>Examples of Errors:</h4>
|
||||
<ul>
|
||||
<li>FIRSTNAME_INVALID: The first name is invalid</li>
|
||||
<li>LASTNAME_INVALID: The last name is invalid</li>
|
||||
<li>PHONE_NUMBER_INVALID: The phone number is invalid</li>
|
||||
<li>PHONE_CODE_HASH_EMPTY: phone_code_hash is missing</li>
|
||||
<li>PHONE_CODE_EMPTY: phone_code is missing</li>
|
||||
<li>PHONE_CODE_EXPIRED: The confirmation code has expired</li>
|
||||
<li>API_ID_INVALID: The api_id/api_hash combination is invalid</li>
|
||||
<li>PHONE_NUMBER_OCCUPIED: The phone number is already in use</li>
|
||||
<li>PHONE_NUMBER_UNOCCUPIED: The phone number is not yet being used</li>
|
||||
<li>USERS_TOO_FEW: Not enough users (to create a chat, for example)</li>
|
||||
<li>USERS_TOO_MUCH: The maximum number of users has been exceeded (to create a chat, for example)</li>
|
||||
<li>TYPE_CONSTRUCTOR_INVALID: The type constructor is invalid</li>
|
||||
<li>FILE_PART_INVALID: The file part number is invalid</li>
|
||||
<li>FILE_PARTS_INVALID: The number of file parts is invalid</li>
|
||||
<li>FILE_PART_Х_MISSING: Part X (where X is a number) of the file is missing from storage</li>
|
||||
<li>MD5_CHECKSUM_INVALID: The MD5 checksums do not match</li>
|
||||
<li>PHOTO_INVALID_DIMENSIONS: The photo dimensions are invalid</li>
|
||||
<li>FIELD_NAME_INVALID: The field with the name FIELD_NAME is invalid</li>
|
||||
<li>FIELD_NAME_EMPTY: The field with the name FIELD_NAME is missing</li>
|
||||
<li>MSG_WAIT_FAILED: A request that must be completed before processing the current request returned an error</li>
|
||||
<li>MSG_WAIT_TIMEOUT: A request that must be completed before processing the current request didn't finish processing yet</li>
|
||||
</ul>
|
||||
<h3><a class="anchor" href="#401-unauthorized" id="401-unauthorized" name="401-unauthorized"><i class="anchor-icon"></i></a>401 UNAUTHORIZED</h3>
|
||||
<p>There was an unauthorized attempt to use functionality available only to authorized users.</p>
|
||||
<h4><a class="anchor" href="#examples-of-errors" id="examples-of-errors" name="examples-of-errors"><i class="anchor-icon"></i></a>Examples of Errors:</h4>
|
||||
<ul>
|
||||
<li>AUTH_KEY_UNREGISTERED: The key is not registered in the system</li>
|
||||
<li>AUTH_KEY_INVALID: The key is invalid</li>
|
||||
<li>USER_DEACTIVATED: The user has been deleted/deactivated</li>
|
||||
<li>SESSION_REVOKED: The authorization has been invalidated, because of the user terminating all sessions</li>
|
||||
<li>SESSION_EXPIRED: The authorization has expired</li>
|
||||
<li>AUTH_KEY_PERM_EMPTY: The method is unavailble for temporary authorization key, not bound to permanent</li>
|
||||
</ul>
|
||||
<h3><a class="anchor" href="#403-forbidden" id="403-forbidden" name="403-forbidden"><i class="anchor-icon"></i></a>403 FORBIDDEN</h3>
|
||||
<p>Privacy violation. For example, an attempt to write a message to someone who has blacklisted the current user.</p>
|
||||
<h3><a class="anchor" href="#404-not-found" id="404-not-found" name="404-not-found"><i class="anchor-icon"></i></a>404 NOT_FOUND</h3>
|
||||
<p>An attempt to invoke a non-existent object, such as a method.</p>
|
||||
<h3><a class="anchor" href="#406-not-acceptable" id="406-not-acceptable" name="406-not-acceptable"><i class="anchor-icon"></i></a>406 NOT_ACCEPTABLE</h3>
|
||||
<p>Similar to <a href="#400-bad-request">400 BAD_REQUEST</a>, but the app should not display any error messages to user in UI as a result of this response. The error message will be delivered via <a href="/constructor/updateServiceNotification">updateServiceNotification</a> instead.</p>
|
||||
<h3><a class="anchor" href="#420-flood" id="420-flood" name="420-flood"><i class="anchor-icon"></i></a>420 FLOOD</h3>
|
||||
<p>The maximum allowed number of attempts to invoke the given method with the given input parameters has been exceeded. For example, in an attempt to request a large number of text messages (SMS) for the same phone number.</p>
|
||||
<h4><a class="anchor" href="#error-example" id="error-example" name="error-example"><i class="anchor-icon"></i></a>Error Example:</h4>
|
||||
<ul>
|
||||
<li>FLOOD_WAIT_X: A wait of X seconds is required (where X is a number)</li>
|
||||
</ul>
|
||||
<h3><a class="anchor" href="#500-internal" id="500-internal" name="500-internal"><i class="anchor-icon"></i></a>500 INTERNAL</h3>
|
||||
<p>An internal server error occurred while a request was being processed; for example, there was a disruption while accessing a database or file storage.</p>
|
||||
<p>If a client receives a 500 error, or you believe this error should not have occurred, please collect as much information as possible about the query and error and send it to the developers.</p>
|
||||
<h3><a class="anchor" href="#other-error-codes" id="other-error-codes" name="other-error-codes"><i class="anchor-icon"></i></a>Other Error Codes</h3>
|
||||
<p>If a server returns an error with a code other than the ones listed above, it may be considered the same as a 500 error and treated as an <a href="#500-internal">internal server error</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
125
data/corefork.telegram.org/api/file_reference.html
Normal file
125
data/corefork.telegram.org/api/file_reference.html
Normal file
|
@ -0,0 +1,125 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>File references</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="How to handle file references.">
|
||||
<meta property="og:title" content="File references">
|
||||
<meta property="og:image" content="c06d4e41a64b660b9f">
|
||||
<meta property="og:description" content="How to handle file references.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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/file_reference" >File references</a></li></ul></div>
|
||||
<h1 id="dev_page_title">File references</h1>
|
||||
|
||||
<div id="dev_page_content"><p>File references are strings of bytes, that can be encountered in the <code>file_reference</code> fields of <a href="/constructor/document">document</a> and <a href="/constructor/photo">photo</a> objects.</p>
|
||||
<p>They must be cached by the client, along with the <strong>origin context</strong> where the document/photo object was found, in order to be refetched when the file reference expires.</p>
|
||||
<p>Example implementation of a reference database: <a href="https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php">MadelineProto</a>, <a href="https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/messenger/FileRefController.java">android</a>, <a href="https://github.com/telegramdesktop/tdesktop/blob/bec39d89e19670eb436dc794a8f20b657cb87c71/Telegram/SourceFiles/data/data_file_origin.cpp">telegram desktop</a>, <a href="https://github.com/tdlib/td/blob/56163c2460a65afc4db2c57ece576b8c38ea194b/td/telegram/FileReferenceManager.cpp">tdlib</a>.</p>
|
||||
<h4><a class="anchor" href="#another-example" id="another-example" name="another-example"><i class="anchor-icon"></i></a>Another example:</h4>
|
||||
<p>Assume you receive a <a href="/constructor/message">message</a> from your friend: that message contains a <a href="/constructor/messageMediaPhoto">messageMediaPhoto</a> with a <a href="/constructor/photo">photo</a>.</p>
|
||||
<p>Your client has to cache not only the <code>file_reference</code> field of the photo, but also the context in which the file reference was seen (in this case, a message coming from a specific user).</p>
|
||||
<p>The context info is in this case, <a href="https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php#L74">an origin context of type message</a>, containing the message ID and the peer ID of the chat/channel/user where the message was seen.</p>
|
||||
<p>The context info has to be associated with the file reference: when downloading a file using <a href="/method/upload.getFile">upload.getFile</a>, a <code>FILE_REFERENCE_EXPIRED</code> error (or another error starting with <code>FILE_REFERENCE_</code>) may be returned.<br>
|
||||
If this happens, the context info must be used to refetch the object that contained the file reference: in this example, the peer info and the message ID have to be used with <a href="/method/channels.getMessages">channels.getMessages</a> or <a href="/method/messages.getMessages">messages.getMessages</a> to <a href="https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php#L481">refetch the message</a>, recache the file reference and use it in a new file download request.</p>
|
||||
<p>More than one origin context can be associated to one file reference, for greater resilience (in the case of a message that was deleted in one chat but was also forwarded in another chat, the file reference can be refetched from the second chat, instead).</p>
|
||||
<p>Origin contexts for objects returned by method calls with certain parameters can be considered, too (for example, in the case of favorited sticker sets returned by <a href="/method/messages.getFavedStickers">messages.getFavedStickers</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
140
data/corefork.telegram.org/api/obtaining_api_id.html
Normal file
140
data/corefork.telegram.org/api/obtaining_api_id.html
Normal file
|
@ -0,0 +1,140 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Creating your Telegram Application</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="How to get your application identifier and create a new Telegram app.">
|
||||
<meta property="og:title" content="Creating your Telegram Application">
|
||||
<meta property="og:image" content="06c229ff662379138f">
|
||||
<meta property="og:description" content="How to get your application identifier and create a new Telegram app.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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/obtaining_api_id" >Creating your Telegram Application</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Creating your Telegram Application</h1>
|
||||
|
||||
<div id="dev_page_content"><p>We welcome all developers to use our <a href="https://core.telegram.org/api#telegram-api">API</a> and source code to create Telegram-like messaging applications on our platform free of charge.</p>
|
||||
<blockquote>
|
||||
<p>In order to ensure consistency and security across the Telegram ecosystem,
|
||||
<strong>all third-party client apps</strong> must comply with the <a href="/api/terms"><strong>API Terms of Service</strong></a>.</p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" href="#obtaining-api-id" id="obtaining-api-id" name="obtaining-api-id"><i class="anchor-icon"></i></a>Obtaining api_id</h3>
|
||||
<p>In order to obtain an <strong>API id</strong> and develop your own application using the Telegram API you need to do the following:</p>
|
||||
<ul>
|
||||
<li>Sign up for Telegram using any application.</li>
|
||||
<li>Log in to your Telegram core: <a href="https://my.telegram.org">https://my.telegram.org</a>.</li>
|
||||
<li>Go to <a href="https://my.telegram.org/apps">'API development tools'</a> and fill out the form.</li>
|
||||
<li>You will get basic addresses as well as the <strong>api_id</strong> and <strong>api_hash</strong> parameters required for user authorization.</li>
|
||||
<li>For the moment each number can only have one api_id connected to it.</li>
|
||||
</ul>
|
||||
<p>We will be sending important developer notifications to the phone number that you use in this process, so please use an up-to-date number connected to your active Telegram account.</p>
|
||||
<h3><a class="anchor" href="#using-the-api-id" id="using-the-api-id" name="using-the-api-id"><i class="anchor-icon"></i></a>Using the api_id</h3>
|
||||
<p>Before using the MTProto Telegram API, please note that all API client libraries are strictly monitored to prevent abuse.</p>
|
||||
<p>If you use the Telegram API for flooding, spamming, faking subscriber and view counters of channels, you <strong>will be banned forever</strong>. </p>
|
||||
<p>Due to excessive abuse of the Telegram API, <strong>all accounts</strong> that sign up or log in using unofficial Telegram API clients are automatically put <strong>under observation</strong> to avoid violations of the <a href="/api/terms">Terms of Service</a>. </p>
|
||||
<p>If you didn't violate the Terms of Service but your account does get banned after using the API, write to <a href="mailto:recover@telegram.org">recover@telegram.org</a> explaining what you intend to do with the API, asking to unban your account.<br>
|
||||
Please note that emails are checked by a human, so automatically generated emails will be detected and banned.</p>
|
||||
<h3><a class="anchor" href="#using-telegrams-open-source-code" id="using-telegrams-open-source-code" name="using-telegrams-open-source-code"><i class="anchor-icon"></i></a>Using Telegram's open source code</h3>
|
||||
<p>Everyone is welcome to use our open source code. We have included a sample API id with the code. This API id is limited on the server side and is not suitable for apps released to end-users — using it for anything but testing purposes will result in the API_ID_PUBLISHED_FLOOD error for your users. It is necessary that you obtain your <strong>own API id</strong> before you publish your app.</p>
|
||||
<blockquote>
|
||||
<p>Please remember to publish your code as well in order to comply with the GNU GPL licences.</p>
|
||||
</blockquote></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
199
data/corefork.telegram.org/api/poll.html
Normal file
199
data/corefork.telegram.org/api/poll.html
Normal file
|
@ -0,0 +1,199 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Poll</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Telegram allows sending polls and quizes, that can be voted on by thousands, if not milions of users in chats and channels.">
|
||||
<meta property="og:title" content="Poll">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Telegram allows sending polls and quizes, that can be voted on by thousands, if not milions of users in chats and channels.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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/poll" >Poll</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Poll</h1>
|
||||
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p>Telegram allows sending polls and quizes, that can be voted on by thousands, if not milions of users in chats and channels.</p>
|
||||
<h3><a class="anchor" href="#sending-a-poll" id="sending-a-poll" name="sending-a-poll"><i class="anchor-icon"></i></a>Sending a poll</h3>
|
||||
<pre><code><a href='/constructor/pollAnswer'>pollAnswer</a>#6ca9c2e9 text:<a href='/type/string'>string</a> option:<a href='/type/bytes'>bytes</a> = <a href='/type/PollAnswer'>PollAnswer</a>;
|
||||
|
||||
<a href='/constructor/poll'>poll</a>#86e18161 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/string'>string</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>;
|
||||
|
||||
<a href='/constructor/inputMediaPoll'>inputMediaPoll</a>#f94e5f1 flags:<a href='/type/%23'>#</a> poll:<a href='/type/Poll'>Poll</a> correct_answers:flags.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/bytes'>bytes</a>> solution:flags.1?<a href='/type/string'>string</a> solution_entities:flags.1?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> = <a href='/type/InputMedia'>InputMedia</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.sendMedia'>messages.sendMedia</a>#3491eba9 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> peer:<a href='/type/InputPeer'>InputPeer</a> reply_to_msg_id:flags.0?<a href='/type/int'>int</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> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<p>To send a poll in a chat, call <a href="/method/messages.sendMedia">messages.sendMedia</a>, providing an <a href="/constructor/inputMediaPoll">inputMediaPoll</a>:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>poll</code> is the actual <a href="/constructor/poll">poll constructor</a>, containing:</p>
|
||||
<ul>
|
||||
<li><code>question</code> - The poll title, aka the poll's title</li>
|
||||
<li><code>answers</code> - A vector of possible answers (2-10), each with a visible title <code>text</code> , and a unique <code>option</code> identifier (1-100 bytes)</li>
|
||||
<li><code>closed</code> - Whether the poll is closed</li>
|
||||
<li><code>public_voters</code> - Whether cast votes are publicly visible to all users (non-anonymous poll) </li>
|
||||
<li><code>multiple_choice</code> - Whether multiple options can be chosen as answer</li>
|
||||
<li><code>quiz</code> - Whether this is a quiz with correct answer IDs specified in <code>inputMediaPoll.correct_answers</code></li>
|
||||
<li><code>close_period</code> - Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with <code>close_date</code> .</li>
|
||||
<li><code>close_date</code> - Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future; can't be used together with <code>close_period</code> . <br>
|
||||
These last two parameters are exactly the same, except that one uses absolute, the other relative unixtime.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>correct_answers</code> - For quizes, option ID of the only correct answer</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>solution</code> - Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>solution_entities</code> - <a href="/api/entities">Styled text message entities</a> for the <code>solution</code> explanation</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>In order to prematurely close the poll, preventing further votes, use <a href="/method/messages.editMessage">messages.editMessage</a>, setting the <code>poll.closed</code> flag to true. </p>
|
||||
<h3><a class="anchor" href="#voting-in-polls" id="voting-in-polls" name="voting-in-polls"><i class="anchor-icon"></i></a>Voting in polls</h3>
|
||||
<pre><code><a href='/constructor/pollAnswerVoters'>pollAnswerVoters</a>#3b6ddad2 flags:<a href='/type/%23'>#</a> chosen:flags.0?<a href='/constructor/true'>true</a> correct:flags.1?<a href='/constructor/true'>true</a> option:<a href='/type/bytes'>bytes</a> voters:<a href='/type/int'>int</a> = <a href='/type/PollAnswerVoters'>PollAnswerVoters</a>;
|
||||
|
||||
<a href='/constructor/pollResults'>pollResults</a>#dcb82ea3 flags:<a href='/type/%23'>#</a> min:flags.0?<a href='/constructor/true'>true</a> results:flags.1?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PollAnswerVoters'>PollAnswerVoters</a>> total_voters:flags.2?<a href='/type/int'>int</a> recent_voters:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> solution:flags.4?<a href='/type/string'>string</a> solution_entities:flags.4?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> = <a href='/type/PollResults'>PollResults</a>;
|
||||
|
||||
<a href='/constructor/poll'>poll</a>#86e18161 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/string'>string</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>;
|
||||
|
||||
<a href='/constructor/messageMediaPoll'>messageMediaPoll</a>#4bd6e798 poll:<a href='/type/Poll'>Poll</a> results:<a href='/type/PollResults'>PollResults</a> = <a href='/type/MessageMedia'>MessageMedia</a>;
|
||||
|
||||
<a href='/constructor/updateMessagePoll'>updateMessagePoll</a>#aca1657b flags:<a href='/type/%23'>#</a> poll_id:<a href='/type/long'>long</a> poll:flags.0?<a href='/type/Poll'>Poll</a> results:<a href='/type/PollResults'>PollResults</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.sendVote'>messages.sendVote</a>#10ea6184 peer:<a href='/type/InputPeer'>InputPeer</a> msg_id:<a href='/type/int'>int</a> options:<a href='/type/Vector%20t'>Vector</a><<a href='/type/bytes'>bytes</a>> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<p>When receiving a <a href="/constructor/message">message</a> with a <a href="/constructor/messageMediaPoll">messageMediaPoll</a>, users can vote in it using <a href="/method/messages.sendVote">messages.sendVote</a>, specifying the chosen <code>option</code> identifiers. </p>
|
||||
<p>The method will return an <a href="/constructor/updateMessagePoll">updateMessagePoll</a>, containing an updated <a href="/constructor/pollResults">pollResults</a> constructor, with the <code>chosen</code> flag set on the options we chose, and the <code>correct</code> flag set on the correct answers. </p>
|
||||
<h3><a class="anchor" href="#getting-poll-votes" id="getting-poll-votes" name="getting-poll-votes"><i class="anchor-icon"></i></a>Getting poll votes</h3>
|
||||
<pre><code><a href='/constructor/pollAnswerVoters'>pollAnswerVoters</a>#3b6ddad2 flags:<a href='/type/%23'>#</a> chosen:flags.0?<a href='/constructor/true'>true</a> correct:flags.1?<a href='/constructor/true'>true</a> option:<a href='/type/bytes'>bytes</a> voters:<a href='/type/int'>int</a> = <a href='/type/PollAnswerVoters'>PollAnswerVoters</a>;
|
||||
|
||||
<a href='/constructor/pollResults'>pollResults</a>#dcb82ea3 flags:<a href='/type/%23'>#</a> min:flags.0?<a href='/constructor/true'>true</a> results:flags.1?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PollAnswerVoters'>PollAnswerVoters</a>> total_voters:flags.2?<a href='/type/int'>int</a> recent_voters:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> solution:flags.4?<a href='/type/string'>string</a> solution_entities:flags.4?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> = <a href='/type/PollResults'>PollResults</a>;
|
||||
|
||||
<a href='/constructor/updateMessagePoll'>updateMessagePoll</a>#aca1657b flags:<a href='/type/%23'>#</a> poll_id:<a href='/type/long'>long</a> poll:flags.0?<a href='/type/Poll'>Poll</a> results:<a href='/type/PollResults'>PollResults</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.getPollResults'>messages.getPollResults</a>#73bb643b peer:<a href='/type/InputPeer'>InputPeer</a> msg_id:<a href='/type/int'>int</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<p>Regularly, if new users have voted in polls available to the user, they will receive an <a href="/constructor/updateMessagePoll">updateMessagePoll</a>, with updated <a href="/constructor/pollResults">pollResults</a>. </p>
|
||||
<p>The same constructor can also be fetched manually using <a href="/method/messages.getPollResults">messages.getPollResults</a>.</p>
|
||||
<h3><a class="anchor" href="#getting-poll-voters-in-non-anonymous-polls" id="getting-poll-voters-in-non-anonymous-polls" name="getting-poll-voters-in-non-anonymous-polls"><i class="anchor-icon"></i></a>Getting poll voters in non-anonymous polls</h3>
|
||||
<pre><code><a href='/constructor/messageUserVote'>messageUserVote</a>#34d247b4 user_id:<a href='/type/long'>long</a> option:<a href='/type/bytes'>bytes</a> date:<a href='/type/int'>int</a> = <a href='/type/MessageUserVote'>MessageUserVote</a>;
|
||||
<a href='/constructor/messageUserVoteInputOption'>messageUserVoteInputOption</a>#3ca5b0ec user_id:<a href='/type/long'>long</a> date:<a href='/type/int'>int</a> = <a href='/type/MessageUserVote'>MessageUserVote</a>;
|
||||
<a href='/constructor/messageUserVoteMultiple'>messageUserVoteMultiple</a>#8a65e557 user_id:<a href='/type/long'>long</a> options:<a href='/type/Vector%20t'>Vector</a><<a href='/type/bytes'>bytes</a>> date:<a href='/type/int'>int</a> = <a href='/type/MessageUserVote'>MessageUserVote</a>;
|
||||
|
||||
<a href='/constructor/messages.votesList'>messages.votesList</a>#823f649 flags:<a href='/type/%23'>#</a> count:<a href='/type/int'>int</a> votes:<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageUserVote'>MessageUserVote</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> next_offset:flags.0?<a href='/type/string'>string</a> = <a href='/type/messages.VotesList'>messages.VotesList</a>;
|
||||
|
||||
<a href='/constructor/updateMessagePollVote'>updateMessagePollVote</a>#106395c9 poll_id:<a href='/type/long'>long</a> user_id:<a href='/type/long'>long</a> options:<a href='/type/Vector%20t'>Vector</a><<a href='/type/bytes'>bytes</a>> qts:<a href='/type/int'>int</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.getPollVotes'>messages.getPollVotes</a>#b86e380e flags:<a href='/type/%23'>#</a> peer:<a href='/type/InputPeer'>InputPeer</a> id:<a href='/type/int'>int</a> option:flags.0?<a href='/type/bytes'>bytes</a> offset:flags.1?<a href='/type/string'>string</a> limit:<a href='/type/int'>int</a> = <a href='/type/messages.VotesList'>messages.VotesList</a>; </code></pre>
|
||||
<p><a href="/method/messages.getPollVotes">messages.getPollVotes</a> can be used to get poll results for non-anonymous polls, to see how each user voted for a poll option.<br>
|
||||
Bots will also receive an <a href="/constructor/updateMessagePollVote">updateMessagePollVote</a> every time a user their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></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>
|
||||
|
154
data/corefork.telegram.org/api/qr-login.html
Normal file
154
data/corefork.telegram.org/api/qr-login.html
Normal file
|
@ -0,0 +1,154 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Login via QR code</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="QR code login flow">
|
||||
<meta property="og:title" content="Login via QR code">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="QR code login flow">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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/qr-login" >Login via QR code</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Login via QR code</h1>
|
||||
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p><a href="https://en.wikipedia.org/wiki/QR_code">QR code</a> login flow.</p>
|
||||
<p>Related TL schema:</p>
|
||||
<pre><code><a href='/constructor/auth.loginToken'>auth.loginToken</a>#629f1980 expires:<a href='/type/int'>int</a> token:<a href='/type/bytes'>bytes</a> = <a href='/type/auth.LoginToken'>auth.LoginToken</a>;
|
||||
<a href='/constructor/auth.loginTokenMigrateTo'>auth.loginTokenMigrateTo</a>#68e9916 dc_id:<a href='/type/int'>int</a> token:<a href='/type/bytes'>bytes</a> = <a href='/type/auth.LoginToken'>auth.LoginToken</a>;
|
||||
<a href='/constructor/auth.loginTokenSuccess'>auth.loginTokenSuccess</a>#390d5c5e authorization:<a href='/type/auth.Authorization'>auth.Authorization</a> = <a href='/type/auth.LoginToken'>auth.LoginToken</a>;
|
||||
|
||||
<a href='/constructor/updateLoginToken'>updateLoginToken</a>#564fe691 = <a href='/type/Update'>Update</a>;
|
||||
|
||||
<a href='/constructor/authorization'>authorization</a>#ad01d61d flags:<a href='/type/%23'>#</a> current:flags.0?<a href='/constructor/true'>true</a> official_app:flags.1?<a href='/constructor/true'>true</a> password_pending:flags.2?<a href='/constructor/true'>true</a> hash:<a href='/type/long'>long</a> device_model:<a href='/type/string'>string</a> platform:<a href='/type/string'>string</a> system_version:<a href='/type/string'>string</a> api_id:<a href='/type/int'>int</a> app_name:<a href='/type/string'>string</a> app_version:<a href='/type/string'>string</a> date_created:<a href='/type/int'>int</a> date_active:<a href='/type/int'>int</a> ip:<a href='/type/string'>string</a> country:<a href='/type/string'>string</a> region:<a href='/type/string'>string</a> = <a href='/type/Authorization'>Authorization</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/auth.exportLoginToken'>auth.exportLoginToken</a>#b7e085fe api_id:<a href='/type/int'>int</a> api_hash:<a href='/type/string'>string</a> except_ids:<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> = <a href='/type/auth.LoginToken'>auth.LoginToken</a>;
|
||||
<a href='/method/auth.acceptLoginToken'>auth.acceptLoginToken</a>#e894ad4d token:<a href='/type/bytes'>bytes</a> = <a href='/type/Authorization'>Authorization</a>;
|
||||
<a href='/method/auth.importLoginToken'>auth.importLoginToken</a>#95ac5ce4 token:<a href='/type/bytes'>bytes</a> = <a href='/type/auth.LoginToken'>auth.LoginToken</a>;</code></pre>
|
||||
<h3><a class="anchor" href="#exporting-a-login-token" id="exporting-a-login-token" name="exporting-a-login-token"><i class="anchor-icon"></i></a>Exporting a login token</h3>
|
||||
<p>First of all, <a href="/method/auth.exportLoginToken">auth.exportLoginToken</a> must be called by the app that wants to log in to an existing Telegram account.<br>
|
||||
The method will return an <a href="/constructor/auth.loginToken">auth.loginToken</a> constructor, containing a binary login <code>token</code> and an expiry date (usually 30 seconds). </p>
|
||||
<p>The login <code>token</code> must be encoded using <a href="https://tools.ietf.org/html/rfc4648#section-5">base64url</a>, embedded in a <code>tg://login?token=base64encodedtoken</code> URL and shown in the form of a <a href="https://en.wikipedia.org/wiki/QR_code">QR code</a> to the user.<br>
|
||||
After the expiration of the current QR code, the <a href="/method/auth.exportLoginToken">auth.exportLoginToken</a> method must be recalled and a new QR code must be generated automatically.</p>
|
||||
<h3><a class="anchor" href="#accepting-a-login-token" id="accepting-a-login-token" name="accepting-a-login-token"><i class="anchor-icon"></i></a>Accepting a login token</h3>
|
||||
<p>In order to log in, the QR code must be scanned and accepted by an already logged-in Telegram app using <a href="/method/auth.acceptLoginToken">auth.acceptLoginToken</a>.<br>
|
||||
The token must be extracted from the <code>tg://login</code> URI and <a href="https://tools.ietf.org/html/rfc4648#section-5">base64url-decoded</a> before using it in the method.</p>
|
||||
<p>Possible <a href="/api/errors">errors</a> returned by the method are: </p>
|
||||
<ul>
|
||||
<li>400 - <code>AUTH_TOKEN_INVALID</code>, an invalid authorization token was provided</li>
|
||||
<li>400 - <code>AUTH_TOKEN_EXPIRED</code>, the provided authorization token has expired and the updated QR-code must be re-scanned</li>
|
||||
<li>400 - <code>AUTH_TOKEN_ALREADY_ACCEPTED</code>, the authorization token was already used</li>
|
||||
</ul>
|
||||
<p>The method will return an <a href="/constructor/authorization">authorization</a> object, containing info about the app and session that we just authorized.</p>
|
||||
<h3><a class="anchor" href="#confirming-importing-the-login-token" id="confirming-importing-the-login-token" name="confirming-importing-the-login-token"><i class="anchor-icon"></i></a>Confirming (importing) the login token</h3>
|
||||
<p>After the logged-in app calls <a href="/method/auth.acceptLoginToken">auth.acceptLoginToken</a> and accepts the login token, the app that is trying to login will receive an <a href="/constructor/updateLoginToken">updateLoginToken</a> update, which should trigger a <strong>second</strong> call to the <a href="/method/auth.exportLoginToken">auth.exportLoginToken</a> method. </p>
|
||||
<p>This second call should then return an <a href="/constructor/auth.loginTokenSuccess">auth.loginTokenSuccess</a> constructor, indicating <strong>successful login</strong>, essentially allowing further authorized interaction with the API.</p>
|
||||
<p>If, however, there is a DC mismatch between the two apps, <a href="/constructor/auth.loginTokenMigrateTo">auth.loginTokenMigrateTo</a> is returned instead, to which the app that is trying to login should respond by calling <a href="/method/auth.importLoginToken">auth.importLoginToken</a> with the specified <code>token</code>, to the specified DC. </p>
|
||||
<p>This call should then finally return a <a href="/constructor/auth.loginTokenSuccess">auth.loginTokenSuccess</a> constructor.</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></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>
|
||||
|
154
data/corefork.telegram.org/api/recent-actions.html
Normal file
154
data/corefork.telegram.org/api/recent-actions.html
Normal file
|
@ -0,0 +1,154 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Admin log</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Both supergroups and channels offer a so-called [admin log](https://telegram.org/blog/admin-revolution), a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.">
|
||||
<meta property="og:title" content="Admin log">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Both supergroups and channels offer a so-called [admin log](https://telegram.org/blog/admin-revolution), a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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/recent-actions" >Admin log</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Admin log</h1>
|
||||
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p>Both supergroups and channels offer a so-called <a href="https://telegram.org/blog/admin-revolution">admin log</a>, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more. </p>
|
||||
<pre><code><a href='/constructor/channelAdminLogEventActionChangeTitle'>channelAdminLogEventActionChangeTitle</a>#e6dfb825 prev_value:<a href='/type/string'>string</a> new_value:<a href='/type/string'>string</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionChangeAbout'>channelAdminLogEventActionChangeAbout</a>#55188a2e prev_value:<a href='/type/string'>string</a> new_value:<a href='/type/string'>string</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionChangeUsername'>channelAdminLogEventActionChangeUsername</a>#6a4afc38 prev_value:<a href='/type/string'>string</a> new_value:<a href='/type/string'>string</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionChangePhoto'>channelAdminLogEventActionChangePhoto</a>#434bd2af prev_photo:<a href='/type/Photo'>Photo</a> new_photo:<a href='/type/Photo'>Photo</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionToggleInvites'>channelAdminLogEventActionToggleInvites</a>#1b7907ae new_value:<a href='/type/Bool'>Bool</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionToggleSignatures'>channelAdminLogEventActionToggleSignatures</a>#26ae0971 new_value:<a href='/type/Bool'>Bool</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionUpdatePinned'>channelAdminLogEventActionUpdatePinned</a>#e9e82c18 message:<a href='/type/Message'>Message</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionEditMessage'>channelAdminLogEventActionEditMessage</a>#709b2405 prev_message:<a href='/type/Message'>Message</a> new_message:<a href='/type/Message'>Message</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionDeleteMessage'>channelAdminLogEventActionDeleteMessage</a>#42e047bb message:<a href='/type/Message'>Message</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionParticipantJoin'>channelAdminLogEventActionParticipantJoin</a>#183040d3 = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionParticipantLeave'>channelAdminLogEventActionParticipantLeave</a>#f89777f2 = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionParticipantInvite'>channelAdminLogEventActionParticipantInvite</a>#e31c34d8 participant:<a href='/type/ChannelParticipant'>ChannelParticipant</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionParticipantToggleBan'>channelAdminLogEventActionParticipantToggleBan</a>#e6d83d7e prev_participant:<a href='/type/ChannelParticipant'>ChannelParticipant</a> new_participant:<a href='/type/ChannelParticipant'>ChannelParticipant</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionParticipantToggleAdmin'>channelAdminLogEventActionParticipantToggleAdmin</a>#d5676710 prev_participant:<a href='/type/ChannelParticipant'>ChannelParticipant</a> new_participant:<a href='/type/ChannelParticipant'>ChannelParticipant</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionChangeStickerSet'>channelAdminLogEventActionChangeStickerSet</a>#b1c3caa7 prev_stickerset:<a href='/type/InputStickerSet'>InputStickerSet</a> new_stickerset:<a href='/type/InputStickerSet'>InputStickerSet</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionTogglePreHistoryHidden'>channelAdminLogEventActionTogglePreHistoryHidden</a>#5f5c95f1 new_value:<a href='/type/Bool'>Bool</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionDefaultBannedRights'>channelAdminLogEventActionDefaultBannedRights</a>#2df5fc0a prev_banned_rights:<a href='/type/ChatBannedRights'>ChatBannedRights</a> new_banned_rights:<a href='/type/ChatBannedRights'>ChatBannedRights</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionStopPoll'>channelAdminLogEventActionStopPoll</a>#8f079643 message:<a href='/type/Message'>Message</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionChangeLinkedChat'>channelAdminLogEventActionChangeLinkedChat</a>#50c7ac8 prev_value:<a href='/type/long'>long</a> new_value:<a href='/type/long'>long</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionChangeLocation'>channelAdminLogEventActionChangeLocation</a>#e6b76ae prev_value:<a href='/type/ChannelLocation'>ChannelLocation</a> new_value:<a href='/type/ChannelLocation'>ChannelLocation</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionToggleSlowMode'>channelAdminLogEventActionToggleSlowMode</a>#53909779 prev_value:<a href='/type/int'>int</a> new_value:<a href='/type/int'>int</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
|
||||
<a href='/constructor/channelAdminLogEvent'>channelAdminLogEvent</a>#1fad68cd id:<a href='/type/long'>long</a> date:<a href='/type/int'>int</a> user_id:<a href='/type/long'>long</a> action:<a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a> = <a href='/type/ChannelAdminLogEvent'>ChannelAdminLogEvent</a>;
|
||||
|
||||
<a href='/constructor/channels.adminLogResults'>channels.adminLogResults</a>#ed8af74d events:<a href='/type/Vector%20t'>Vector</a><<a href='/type/ChannelAdminLogEvent'>ChannelAdminLogEvent</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/channels.AdminLogResults'>channels.AdminLogResults</a>;
|
||||
|
||||
<a href='/constructor/channelAdminLogEventsFilter'>channelAdminLogEventsFilter</a>#ea107ae4 flags:<a href='/type/%23'>#</a> join:flags.0?<a href='/constructor/true'>true</a> leave:flags.1?<a href='/constructor/true'>true</a> invite:flags.2?<a href='/constructor/true'>true</a> ban:flags.3?<a href='/constructor/true'>true</a> unban:flags.4?<a href='/constructor/true'>true</a> kick:flags.5?<a href='/constructor/true'>true</a> unkick:flags.6?<a href='/constructor/true'>true</a> promote:flags.7?<a href='/constructor/true'>true</a> demote:flags.8?<a href='/constructor/true'>true</a> info:flags.9?<a href='/constructor/true'>true</a> settings:flags.10?<a href='/constructor/true'>true</a> pinned:flags.11?<a href='/constructor/true'>true</a> edit:flags.12?<a href='/constructor/true'>true</a> delete:flags.13?<a href='/constructor/true'>true</a> group_call:flags.14?<a href='/constructor/true'>true</a> invites:flags.15?<a href='/constructor/true'>true</a> = <a href='/type/ChannelAdminLogEventsFilter'>ChannelAdminLogEventsFilter</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/channels.getAdminLog'>channels.getAdminLog</a>#33ddf480 flags:<a href='/type/%23'>#</a> channel:<a href='/type/InputChannel'>InputChannel</a> q:<a href='/type/string'>string</a> events_filter:flags.0?<a href='/type/ChannelAdminLogEventsFilter'>ChannelAdminLogEventsFilter</a> admins:flags.1?<a href='/type/Vector%20t'>Vector</a><<a href='/type/InputUser'>InputUser</a>> max_id:<a href='/type/long'>long</a> min_id:<a href='/type/long'>long</a> limit:<a href='/type/int'>int</a> = <a href='/type/channels.AdminLogResults'>channels.AdminLogResults</a>;</code></pre>
|
||||
<p><a href="/method/channels.getAdminLog">channels.getAdminLog</a> can be used to list recent admin activity.<br>
|
||||
A <a href="/constructor/channelAdminLogEventsFilter">channelAdminLogEventsFilter</a> can be used to filter out actions of a certain type, and the <code>admins</code> field can be used to show only actions by certain admins.<br>
|
||||
<code>q</code> can also be used to filter only logs matching a query string. </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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></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>
|
||||
|
133
data/corefork.telegram.org/api/terms.html
Normal file
133
data/corefork.telegram.org/api/terms.html
Normal file
|
@ -0,0 +1,133 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Telegram API Terms of Service</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="We welcome all developers to use our API and source code to create Telegram-like messaging applications on our platform…">
|
||||
<meta property="og:title" content="Telegram API Terms of Service">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="We welcome all developers to use our API and source code to create Telegram-like messaging applications on our platform…">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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/terms" >Telegram API Terms of Service</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Telegram API Terms of Service</h1>
|
||||
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p>We welcome all developers to use our API and source code to <a href="/api/obtaining_api_id">create Telegram-like messaging applications</a> on our platform free of charge. In order to ensure consistency and security across the Telegram ecosystem, all third-party client apps must comply with the following Terms of Service.</p>
|
||||
<h4><a class="anchor" name="1-privacy-amp-security" href="#1-privacy-amp-security"><i class="anchor-icon"></i></a>1. Privacy & Security</h4>
|
||||
<p><strong>1.1.</strong> Telegram is a privacy-oriented platform. All client apps must, therefore, guard their users' privacy with utmost care and comply with our <a href="https://core.telegram.org/mtproto/security_guidelines">Security Guidelines</a>.<br><strong>1.2.</strong> Developers are welcome to add new features or improve and extend existing Telegram features provided that these modifications do not violate these Terms of Service.<br><strong>1.3.</strong> As a client developer, you must make sure that all the basic features of the main Telegram apps function correctly and in an expected way both in your app and when users of your app communicate with other Telegram users. It is forbidden to force users of other Telegram clients to download your app in order to view certain messages and content sent using your app.<br><strong>1.4.</strong> It is forbidden to interfere with the basic functionality of Telegram. This includes but is not limited to: making actions on behalf of the user without the user's knowledge and consent, preventing self-destructing content from disappearing, preventing last seen and online statuses from being displayed correctly, tampering with the 'read' statuses of messages (e.g. implementing a 'ghost mode'), preventing typing statuses from being sent/displayed, etc. </p>
|
||||
<h4><a class="anchor" name="2-transparency" href="#2-transparency"><i class="anchor-icon"></i></a>2. Transparency</h4>
|
||||
<p><strong>2.1.</strong> You must <a href="/api/obtaining_api_id#obtaining-api-id">obtain your own api_id</a> for your application.<br><strong>2.2.</strong> We offer our API free of charge, but your users must be aware of the fact that your app uses the Telegram API and is part of the Telegram ecosystem. This fact must be featured prominently in the app's description in the app stores and in the in-app intro if your app has it.<br><strong>2.3.</strong> To avoid confusion, the title of your app must not include the word “Telegram”. An exception can be made if the word “Telegram” is preceded with the word “Unofficial” in the title.<br><strong>2.4.</strong> You must not use the official Telegram logo for your app. Both the Telegram brand and its logo are registered trademarks protected by law in almost every country. </p>
|
||||
<h4><a class="anchor" name="3-advertising-amp-monetization" href="#3-advertising-amp-monetization"><i class="anchor-icon"></i></a>3. Advertising & Monetization</h4>
|
||||
<p><strong>3.1.</strong> Developers are allowed to monetize their coding efforts through advertising or other legitimate means.<br><strong>3.2.</strong> If you decide to monetize your app, you must clearly mention all the methods of monetization that are used in your app in all its app store descriptions.<br><strong>3.3.</strong> If your app allows accessing content from Telegram <a href="https://telegram.org/tour/channels">channels</a>, you must include support for <a href="https://core.telegram.org/api/sponsored-messages">official sponsored messages</a> in Telegram channels and may not interefere with this functionality.</p>
|
||||
<h4><a class="anchor" name="4-breach-of-terms" href="#4-breach-of-terms"><i class="anchor-icon"></i></a>4. Breach of terms</h4>
|
||||
<p><strong>4.1.</strong> If your app violates these terms, we will notify the Telegram account responsible for the app about the breach of terms.<br><strong>4.2.</strong> If you do not update the app to fix the highlighted issues within <strong>10</strong> days, we will have to discontinue your access to Telegram API and contact the app stores about the removal of your apps that are using the Telegram API in violation of these terms. </p>
|
||||
<p>We reserve the right to expand these terms and guidelines as the need arises. We will inform client developers of such changes via an in-app notification to their accounts connected to the app in question. </p>
|
||||
<blockquote>
|
||||
<p><a href="https://core.telegram.org/api/obtaining_api_id">Back to Creating Your Telegram Application »</a></p>
|
||||
</blockquote>
|
||||
</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></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>
|
||||
|
289
data/corefork.telegram.org/constructor/channel.html
Normal file
289
data/corefork.telegram.org/constructor/channel.html
Normal file
|
@ -0,0 +1,289 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>channel</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Channel/supergroup info">
|
||||
<meta property="og:title" content="channel">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Channel/supergroup info">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/channel" >channel</a></li></ul></div>
|
||||
<h1 id="dev_page_title">channel</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Channel/supergroup info</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/channel" class="current_page_link" >channel</a>#8261ac61 flags:<a href="/type/%23" >#</a> creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true id:<a href="/type/long" >long</a> access_hash:flags.13?<a href="/type/long" >long</a> title:<a href="/type/string" >string</a> username:flags.6?<a href="/type/string" >string</a> photo:<a href="/type/ChatPhoto" >ChatPhoto</a> date:<a href="/type/int" >int</a> restriction_reason:flags.9?<a href="/type/Vector%20t" >Vector</a><<a href="/type/RestrictionReason" >RestrictionReason</a>> admin_rights:flags.14?<a href="/type/ChatAdminRights" >ChatAdminRights</a> banned_rights:flags.15?<a href="/type/ChatBannedRights" >ChatBannedRights</a> default_banned_rights:flags.18?<a href="/type/ChatBannedRights" >ChatBannedRights</a> participants_count:flags.17?<a href="/type/int" >int</a> = <a href="/type/Chat" >Chat</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>creator</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether the current user is the creator of this channel</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>left</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether the current user has left this channel</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>broadcast</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.5?<a href="/constructor/true">true</a></td>
|
||||
<td>Is this a channel?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>verified</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.7?<a href="/constructor/true">true</a></td>
|
||||
<td>Is this channel verified by telegram?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>megagroup</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.8?<a href="/constructor/true">true</a></td>
|
||||
<td>Is this a supergroup?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>restricted</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.9?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether viewing/writing in this channel for a reason (see <code>restriction_reason</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>signatures</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.11?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether signatures are enabled (channels)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>min</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.12?<a href="/constructor/true">true</a></td>
|
||||
<td>See <a href="/api/min">min</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>scam</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.19?<a href="/constructor/true">true</a></td>
|
||||
<td>This channel/supergroup is probably a scam</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>has_link</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.20?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether this channel has a private join link</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>has_geo</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.21?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether this chanel has a geoposition</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>slowmode_enabled</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.22?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether slow mode is enabled for groups to prevent flood in chat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>call_active</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.23?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether a group call or livestream is currently active</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>call_not_empty</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.24?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether there's anyone in the group call or livestream</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>fake</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.25?<a href="/constructor/true">true</a></td>
|
||||
<td>If set, this <a href="/api/channel">supergroup/channel</a> was reported by many users as a fake or scam: be careful when interacting with it.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>gigagroup</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.26?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether this <a href="/api/channel">supergroup</a> is a gigagroup</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the channel</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>access_hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.13?<a href="/type/long">long</a></td>
|
||||
<td>Access hash</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>title</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Title</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>username</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/type/string">string</a></td>
|
||||
<td>Username</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>photo</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/ChatPhoto">ChatPhoto</a></td>
|
||||
<td>Profile photo</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>date</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Date when the user joined the supergroup/channel, or if the user isn't a member, its creation date</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>restriction_reason</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.9?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>></td>
|
||||
<td>Contains the reason why access to this channel must be restricted.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>admin_rights</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.14?<a href="/type/ChatAdminRights">ChatAdminRights</a></td>
|
||||
<td>Admin rights of the user in this channel (see <a href="/api/rights">rights</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>banned_rights</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.15?<a href="/type/ChatBannedRights">ChatBannedRights</a></td>
|
||||
<td>Banned rights of the user in this channel (see <a href="/api/rights">rights</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>default_banned_rights</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.18?<a href="/type/ChatBannedRights">ChatBannedRights</a></td>
|
||||
<td>Default chat rights (see <a href="/api/rights">rights</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>participants_count</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.17?<a href="/type/int">int</a></td>
|
||||
<td>Participant count</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/Chat">Chat</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#min-constructors" id="min-constructors" name="min-constructors"><i class="anchor-icon"></i></a><a href="/api/min">Min constructors</a></h4>
|
||||
<p>In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.</p>
|
||||
<h4><a class="anchor" href="#channels" id="channels" name="channels"><i class="anchor-icon"></i></a><a href="/api/channel">Channels</a></h4>
|
||||
<p>How to handle channels, supergroups, groups, and what's the difference between them.</p>
|
||||
<h4><a class="anchor" href="#admin-banned-default-rights" id="admin-banned-default-rights" name="admin-banned-default-rights"><i class="anchor-icon"></i></a><a href="/api/rights">Admin, banned, default rights</a></h4>
|
||||
<p>How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.</p></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
231
data/corefork.telegram.org/constructor/chatFull.html
Normal file
231
data/corefork.telegram.org/constructor/chatFull.html
Normal file
|
@ -0,0 +1,231 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>chatFull</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Detailed chat info">
|
||||
<meta property="og:title" content="chatFull">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Detailed chat info">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/chatFull" >chatFull</a></li></ul></div>
|
||||
<h1 id="dev_page_title">chatFull</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Detailed chat info</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/chatFull" class="current_page_link" >chatFull</a>#4dbdc099 flags:<a href="/type/%23" >#</a> can_set_username:flags.7?true has_scheduled:flags.8?true 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> = <a href="/type/ChatFull" >ChatFull</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>can_set_username</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.7?<a href="/constructor/true">true</a></td>
|
||||
<td>Can we change the username of this chat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>has_scheduled</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.8?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether <a href="/api/scheduled-messages">scheduled messages</a> are available</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the chat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>about</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>About string for this chat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>participants</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/ChatParticipants">ChatParticipants</a></td>
|
||||
<td>Participant list</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>chat_photo</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/Photo">Photo</a></td>
|
||||
<td>Chat photo</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>notify_settings</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/PeerNotifySettings">PeerNotifySettings</a></td>
|
||||
<td>Notification settings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>exported_invite</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.13?<a href="/type/ExportedChatInvite">ExportedChatInvite</a></td>
|
||||
<td>Chat invite</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>bot_info</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/type/Vector%20t">Vector</a><<a href="/type/BotInfo">BotInfo</a>></td>
|
||||
<td>Info about bots that are in this chat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>pinned_msg_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/type/int">int</a></td>
|
||||
<td>Message ID of the last <a href="/api/pin">pinned message</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>folder_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.11?<a href="/type/int">int</a></td>
|
||||
<td><a href="/api/folders#peer-folders">Peer folder ID, for more info click here</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>call</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.12?<a href="/type/InputGroupCall">InputGroupCall</a></td>
|
||||
<td>Group call information</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>ttl_period</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.14?<a href="/type/int">int</a></td>
|
||||
<td>Time-To-Live of messages sent by the current user to this chat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>groupcall_default_join_as</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.15?<a href="/type/Peer">Peer</a></td>
|
||||
<td>When using <a href="/method/phone.getGroupCallJoinAs">phone.getGroupCallJoinAs</a> to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>theme_emoticon</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.16?<a href="/type/string">string</a></td>
|
||||
<td>Emoji representing a specific chat theme</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/ChatFull">ChatFull</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#scheduled-messages" id="scheduled-messages" name="scheduled-messages"><i class="anchor-icon"></i></a><a href="/api/scheduled-messages">Scheduled messages</a></h4>
|
||||
<p>Telegram allows scheduling messages</p>
|
||||
<h4><a class="anchor" href="#pinned-messages" id="pinned-messages" name="pinned-messages"><i class="anchor-icon"></i></a><a href="/api/pin">Pinned messages</a></h4>
|
||||
<p>Telegram allows pinning multiple messages on top of a specific chat.</p>
|
||||
<h4><a class="anchor" href="#folders" id="folders" name="folders"><i class="anchor-icon"></i></a><a href="/api/folders">Folders</a></h4>
|
||||
<p>Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.</p>
|
||||
<h4><a class="anchor" href="#phonegetgroupcalljoinas" id="phonegetgroupcalljoinas" name="phonegetgroupcalljoinas"><i class="anchor-icon"></i></a><a href="/method/phone.getGroupCallJoinAs">phone.getGroupCallJoinAs</a></h4>
|
||||
<p>Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
147
data/corefork.telegram.org/constructor/keyboardButton.html
Normal file
147
data/corefork.telegram.org/constructor/keyboardButton.html
Normal file
|
@ -0,0 +1,147 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>keyboardButton</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Bot keyboard button">
|
||||
<meta property="og:title" content="keyboardButton">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Bot keyboard button">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/keyboardButton" >keyboardButton</a></li></ul></div>
|
||||
<h1 id="dev_page_title">keyboardButton</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Bot keyboard button</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/keyboardButton" class="current_page_link" >keyboardButton</a>#a2fa4880 text:<a href="/type/string" >string</a> = <a href="/type/KeyboardButton" >KeyboardButton</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Button text</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/KeyboardButton">KeyboardButton</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
147
data/corefork.telegram.org/constructor/keyboardButtonBuy.html
Normal file
147
data/corefork.telegram.org/constructor/keyboardButtonBuy.html
Normal file
|
@ -0,0 +1,147 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>keyboardButtonBuy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Button to buy a product">
|
||||
<meta property="og:title" content="keyboardButtonBuy">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Button to buy a product">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/keyboardButtonBuy" >keyboardButtonBuy</a></li></ul></div>
|
||||
<h1 id="dev_page_title">keyboardButtonBuy</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Button to buy a product</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/keyboardButtonBuy" class="current_page_link" >keyboardButtonBuy</a>#afd93fbb text:<a href="/type/string" >string</a> = <a href="/type/KeyboardButton" >KeyboardButton</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Button text</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/KeyboardButton">KeyboardButton</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,167 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>keyboardButtonCallback</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Callback button">
|
||||
<meta property="og:title" content="keyboardButtonCallback">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Callback button">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/keyboardButtonCallback" >keyboardButtonCallback</a></li></ul></div>
|
||||
<h1 id="dev_page_title">keyboardButtonCallback</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Callback button</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/keyboardButtonCallback" class="current_page_link" >keyboardButtonCallback</a>#35bbdb6b flags:<a href="/type/%23" >#</a> requires_password:flags.0?true text:<a href="/type/string" >string</a> data:<a href="/type/bytes" >bytes</a> = <a href="/type/KeyboardButton" >KeyboardButton</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>requires_password</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether the user should verify his identity by entering his <a href="/api/srp">2FA SRP parameters</a> to the <a href="/method/messages.getBotCallbackAnswer">messages.getBotCallbackAnswer</a> method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to <a href="/api/srp">SRP</a>. This button is mainly used by the official <a href="https://t.me/botfather">@botfather</a> bot, for verifying the user's identity before transferring ownership of a bot to another user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Button text</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>data</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/bytes">bytes</a></td>
|
||||
<td>Callback data</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/KeyboardButton">KeyboardButton</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#two-factor-authentication" id="two-factor-authentication" name="two-factor-authentication"><i class="anchor-icon"></i></a><a href="/api/srp">Two-factor authentication</a></h4>
|
||||
<p>How to login to a user's account if they have enabled 2FA, how to change password.</p>
|
||||
<h4><a class="anchor" href="#messagesgetbotcallbackanswer" id="messagesgetbotcallbackanswer" name="messagesgetbotcallbackanswer"><i class="anchor-icon"></i></a><a href="/method/messages.getBotCallbackAnswer">messages.getBotCallbackAnswer</a></h4>
|
||||
<p>Press an inline callback button and get a callback answer from the bot</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
147
data/corefork.telegram.org/constructor/keyboardButtonGame.html
Normal file
147
data/corefork.telegram.org/constructor/keyboardButtonGame.html
Normal file
|
@ -0,0 +1,147 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>keyboardButtonGame</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Button to start a game">
|
||||
<meta property="og:title" content="keyboardButtonGame">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Button to start a game">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/keyboardButtonGame" >keyboardButtonGame</a></li></ul></div>
|
||||
<h1 id="dev_page_title">keyboardButtonGame</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Button to start a game</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/keyboardButtonGame" class="current_page_link" >keyboardButtonGame</a>#50f41ccf text:<a href="/type/string" >string</a> = <a href="/type/KeyboardButton" >KeyboardButton</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Button text</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/KeyboardButton">KeyboardButton</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>keyboardButtonRequestPhone</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Button to request a user's phone number">
|
||||
<meta property="og:title" content="keyboardButtonRequestPhone">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Button to request a user's phone number">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/keyboardButtonRequestPhone" >keyboardButtonRequestPhone</a></li></ul></div>
|
||||
<h1 id="dev_page_title">keyboardButtonRequestPhone</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Button to request a user's phone number</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/keyboardButtonRequestPhone" class="current_page_link" >keyboardButtonRequestPhone</a>#b16a6c29 text:<a href="/type/string" >string</a> = <a href="/type/KeyboardButton" >KeyboardButton</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Button text</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/KeyboardButton">KeyboardButton</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,162 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>keyboardButtonSwitchInline</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field.">
|
||||
<meta property="og:title" content="keyboardButtonSwitchInline">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/keyboardButtonSwitchInline" >keyboardButtonSwitchInline</a></li></ul></div>
|
||||
<h1 id="dev_page_title">keyboardButtonSwitchInline</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/keyboardButtonSwitchInline" class="current_page_link" >keyboardButtonSwitchInline</a>#568a748 flags:<a href="/type/%23" >#</a> same_peer:flags.0?true text:<a href="/type/string" >string</a> query:<a href="/type/string" >string</a> = <a href="/type/KeyboardButton" >KeyboardButton</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>same_peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td>If set, pressing the button will insert the bot‘s username and the specified inline <code>query</code> in the current chat's input field.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Button label</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>query</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>The inline query to use</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/KeyboardButton">KeyboardButton</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
152
data/corefork.telegram.org/constructor/keyboardButtonUrl.html
Normal file
152
data/corefork.telegram.org/constructor/keyboardButtonUrl.html
Normal file
|
@ -0,0 +1,152 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>keyboardButtonUrl</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="URL button">
|
||||
<meta property="og:title" content="keyboardButtonUrl">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="URL button">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/keyboardButtonUrl" >keyboardButtonUrl</a></li></ul></div>
|
||||
<h1 id="dev_page_title">keyboardButtonUrl</h1>
|
||||
|
||||
<div id="dev_page_content"><p>URL button</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/keyboardButtonUrl" class="current_page_link" >keyboardButtonUrl</a>#258aff05 text:<a href="/type/string" >string</a> url:<a href="/type/string" >string</a> = <a href="/type/KeyboardButton" >KeyboardButton</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>text</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Button label</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>url</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>URL</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/KeyboardButton">KeyboardButton</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
147
data/corefork.telegram.org/constructor/messageMediaGame.html
Normal file
147
data/corefork.telegram.org/constructor/messageMediaGame.html
Normal file
|
@ -0,0 +1,147 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>messageMediaGame</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Telegram game">
|
||||
<meta property="og:title" content="messageMediaGame">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Telegram game">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/messageMediaGame" >messageMediaGame</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messageMediaGame</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Telegram game</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/messageMediaGame" class="current_page_link" >messageMediaGame</a>#fdb19008 game:<a href="/type/Game" >Game</a> = <a href="/type/MessageMedia" >MessageMedia</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>game</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Game">Game</a></td>
|
||||
<td>Game</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/MessageMedia">MessageMedia</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,177 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>messages.botCallbackAnswer</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Callback answer sent by the bot in response to a button press">
|
||||
<meta property="og:title" content="messages.botCallbackAnswer">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Callback answer sent by the bot in response to a button press">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/messages.botCallbackAnswer" >messages.botCallbackAnswer</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.botCallbackAnswer</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Callback answer sent by the bot in response to a button press</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/messages.botCallbackAnswer" class="current_page_link" >messages.botCallbackAnswer</a>#36585ea4 flags:<a href="/type/%23" >#</a> alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?<a href="/type/string" >string</a> url:flags.2?<a href="/type/string" >string</a> cache_time:<a href="/type/int" >int</a> = <a href="/type/messages.BotCallbackAnswer" >messages.BotCallbackAnswer</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>alert</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether an alert should be shown to the user instead of a toast notification</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>has_url</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether an URL is present</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>native_ui</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.4?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether to show games in WebView or in native UI.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>message</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/string">string</a></td>
|
||||
<td>Alert to show</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>url</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/string">string</a></td>
|
||||
<td>URL to open</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>cache_time</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>For how long should this answer be cached</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/messages.BotCallbackAnswer">messages.BotCallbackAnswer</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,162 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>replyKeyboardForceReply</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Force the user to send a reply">
|
||||
<meta property="og:title" content="replyKeyboardForceReply">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Force the user to send a reply">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/replyKeyboardForceReply" >replyKeyboardForceReply</a></li></ul></div>
|
||||
<h1 id="dev_page_title">replyKeyboardForceReply</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Force the user to send a reply</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/replyKeyboardForceReply" class="current_page_link" >replyKeyboardForceReply</a>#86b40b08 flags:<a href="/type/%23" >#</a> single_use:flags.1?true selective:flags.2?true placeholder:flags.3?<a href="/type/string" >string</a> = <a href="/type/ReplyMarkup" >ReplyMarkup</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>single_use</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/constructor/true">true</a></td>
|
||||
<td>Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>selective</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/constructor/true">true</a></td>
|
||||
<td>Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message. <br>Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>placeholder</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/type/string">string</a></td>
|
||||
<td>The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/ReplyMarkup">ReplyMarkup</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
152
data/corefork.telegram.org/constructor/replyKeyboardHide.html
Normal file
152
data/corefork.telegram.org/constructor/replyKeyboardHide.html
Normal file
|
@ -0,0 +1,152 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>replyKeyboardHide</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Hide sent bot keyboard">
|
||||
<meta property="og:title" content="replyKeyboardHide">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Hide sent bot keyboard">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/replyKeyboardHide" >replyKeyboardHide</a></li></ul></div>
|
||||
<h1 id="dev_page_title">replyKeyboardHide</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Hide sent bot keyboard</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/replyKeyboardHide" class="current_page_link" >replyKeyboardHide</a>#a03e5b85 flags:<a href="/type/%23" >#</a> selective:flags.2?true = <a href="/type/ReplyMarkup" >ReplyMarkup</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>selective</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/constructor/true">true</a></td>
|
||||
<td>Use this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.<br><br>Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/ReplyMarkup">ReplyMarkup</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,182 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>updateBotCallbackQuery</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="A callback button was pressed, and the button data was sent to the bot that created the button">
|
||||
<meta property="og:title" content="updateBotCallbackQuery">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="A callback button was pressed, and the button data was sent to the bot that created the button">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/updateBotCallbackQuery" >updateBotCallbackQuery</a></li></ul></div>
|
||||
<h1 id="dev_page_title">updateBotCallbackQuery</h1>
|
||||
|
||||
<div id="dev_page_content"><p>A callback button was pressed, and the button data was sent to the bot that created the button</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/updateBotCallbackQuery" class="current_page_link" >updateBotCallbackQuery</a>#b9cfc48d flags:<a href="/type/%23" >#</a> query_id:<a href="/type/long" >long</a> user_id:<a href="/type/long" >long</a> peer:<a href="/type/Peer" >Peer</a> msg_id:<a href="/type/int" >int</a> chat_instance:<a href="/type/long" >long</a> data:flags.0?<a href="/type/bytes" >bytes</a> game_short_name:flags.1?<a href="/type/string" >string</a> = <a href="/type/Update" >Update</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>query_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Query ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>user_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the user that pressed the button</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Peer">Peer</a></td>
|
||||
<td>Chat where the inline keyboard was sent</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>msg_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Message ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>chat_instance</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>data</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/bytes">bytes</a></td>
|
||||
<td>Callback data</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>game_short_name</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/string">string</a></td>
|
||||
<td>Short name of a Game to be returned, serves as the unique identifier for the game</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/Update">Update</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,157 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>updateChatParticipantDelete</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="A member has left the group.">
|
||||
<meta property="og:title" content="updateChatParticipantDelete">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="A member has left the group.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/updateChatParticipantDelete" >updateChatParticipantDelete</a></li></ul></div>
|
||||
<h1 id="dev_page_title">updateChatParticipantDelete</h1>
|
||||
|
||||
<div id="dev_page_content"><p>A member has left the group.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/updateChatParticipantDelete" class="current_page_link" >updateChatParticipantDelete</a>#e32f3d77 chat_id:<a href="/type/long" >long</a> user_id:<a href="/type/long" >long</a> version:<a href="/type/int" >int</a> = <a href="/type/Update" >Update</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>chat_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Group ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>user_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the user</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>version</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Used in basic groups to reorder updates and make sure that all of them was received.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/Update">Update</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
172
data/corefork.telegram.org/method/account.setContentSettings
Normal file
172
data/corefork.telegram.org/method/account.setContentSettings
Normal file
|
@ -0,0 +1,172 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>account.setContentSettings</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Set sensitive content settings (for viewing or hiding NSFW content)">
|
||||
<meta property="og:title" content="account.setContentSettings">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Set sensitive content settings (for viewing or hiding NSFW content)">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/account.setContentSettings" >account.setContentSettings</a></li></ul></div>
|
||||
<h1 id="dev_page_title">account.setContentSettings</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Set sensitive content settings (for viewing or hiding NSFW content)</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/boolFalse" >boolFalse</a>#bc799737 = <a href="/type/Bool" >Bool</a>;
|
||||
<a href="/constructor/boolTrue" >boolTrue</a>#997275b5 = <a href="/type/Bool" >Bool</a>;
|
||||
---functions---
|
||||
<a href="/method/account.setContentSettings" class="current_page_link" >account.setContentSettings</a>#b574b16b flags:<a href="/type/%23" >#</a> sensitive_enabled:flags.0?true = <a href="/type/Bool" >Bool</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>sensitive_enabled</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td>Enable NSFW content</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/Bool">Bool</a></p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>403</td>
|
||||
<td>SENSITIVE_CHANGE_FORBIDDEN</td>
|
||||
<td>You can't change your sensitive content settings.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
226
data/corefork.telegram.org/method/messages.getBotCallbackAnswer
Normal file
226
data/corefork.telegram.org/method/messages.getBotCallbackAnswer
Normal file
|
@ -0,0 +1,226 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>messages.getBotCallbackAnswer</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Press an inline callback button and get a callback answer from the bot">
|
||||
<meta property="og:title" content="messages.getBotCallbackAnswer">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Press an inline callback button and get a callback answer from the bot">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/messages.getBotCallbackAnswer" >messages.getBotCallbackAnswer</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.getBotCallbackAnswer</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Press an inline callback button and get a callback answer from the bot</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/messages.botCallbackAnswer" >messages.botCallbackAnswer</a>#36585ea4 flags:<a href="/type/%23" >#</a> alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?<a href="/type/string" >string</a> url:flags.2?<a href="/type/string" >string</a> cache_time:<a href="/type/int" >int</a> = <a href="/type/messages.BotCallbackAnswer" >messages.BotCallbackAnswer</a>;
|
||||
---functions---
|
||||
<a href="/method/messages.getBotCallbackAnswer" class="current_page_link" >messages.getBotCallbackAnswer</a>#9342ca07 flags:<a href="/type/%23" >#</a> game:flags.1?true peer:<a href="/type/InputPeer" >InputPeer</a> msg_id:<a href="/type/int" >int</a> data:flags.0?<a href="/type/bytes" >bytes</a> password:flags.2?<a href="/type/InputCheckPasswordSRP" >InputCheckPasswordSRP</a> = <a href="/type/messages.BotCallbackAnswer" >messages.BotCallbackAnswer</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>game</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether this is a "play game" button</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputPeer">InputPeer</a></td>
|
||||
<td>Where was the inline keyboard sent</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>msg_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>ID of the Message with the inline keyboard</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>data</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/bytes">bytes</a></td>
|
||||
<td>Callback data</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>password</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/InputCheckPasswordSRP">InputCheckPasswordSRP</a></td>
|
||||
<td>For buttons <a href="/constructor/keyboardButtonCallback">requiring you to verify your identity with your 2FA password</a>, the SRP payload generated using <a href="/api/srp">SRP</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/messages.BotCallbackAnswer">messages.BotCallbackAnswer</a></p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>BOT_RESPONSE_TIMEOUT</td>
|
||||
<td>A timeout occurred while fetching data from the bot.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>CHANNEL_INVALID</td>
|
||||
<td>The provided channel is invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>CHANNEL_PRIVATE</td>
|
||||
<td>You haven't joined this channel/supergroup.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>DATA_INVALID</td>
|
||||
<td>Encrypted data invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>MESSAGE_ID_INVALID</td>
|
||||
<td>The provided message id is invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>PEER_ID_INVALID</td>
|
||||
<td>The provided peer id is invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>-503</td>
|
||||
<td>Timeout</td>
|
||||
<td>Timeout while fetching data.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#keyboardbuttoncallback" id="keyboardbuttoncallback" name="keyboardbuttoncallback"><i class="anchor-icon"></i></a><a href="/constructor/keyboardButtonCallback">keyboardButtonCallback</a></h4>
|
||||
<p>Callback button</p>
|
||||
<h4><a class="anchor" href="#two-factor-authentication" id="two-factor-authentication" name="two-factor-authentication"><i class="anchor-icon"></i></a><a href="/api/srp">Two-factor authentication</a></h4>
|
||||
<p>How to login to a user's account if they have enabled 2FA, how to change password.</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
203
data/corefork.telegram.org/method/messages.setBotCallbackAnswer
Normal file
203
data/corefork.telegram.org/method/messages.setBotCallbackAnswer
Normal file
|
@ -0,0 +1,203 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>messages.setBotCallbackAnswer</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Set the callback answer to a user button press (bots only)">
|
||||
<meta property="og:title" content="messages.setBotCallbackAnswer">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Set the callback answer to a user button press (bots only)">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/messages.setBotCallbackAnswer" >messages.setBotCallbackAnswer</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.setBotCallbackAnswer</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Set the callback answer to a user button press (bots only)</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/boolFalse" >boolFalse</a>#bc799737 = <a href="/type/Bool" >Bool</a>;
|
||||
<a href="/constructor/boolTrue" >boolTrue</a>#997275b5 = <a href="/type/Bool" >Bool</a>;
|
||||
---functions---
|
||||
<a href="/method/messages.setBotCallbackAnswer" class="current_page_link" >messages.setBotCallbackAnswer</a>#d58f130a flags:<a href="/type/%23" >#</a> alert:flags.1?true query_id:<a href="/type/long" >long</a> message:flags.0?<a href="/type/string" >string</a> url:flags.2?<a href="/type/string" >string</a> cache_time:<a href="/type/int" >int</a> = <a href="/type/Bool" >Bool</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>alert</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether to show the message as a popup instead of a toast notification</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>query_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>Query ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>message</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/string">string</a></td>
|
||||
<td>Popup to show</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>url</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/string">string</a></td>
|
||||
<td>URL to open</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>cache_time</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td>Cache validity</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/Bool">Bool</a></p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>MESSAGE_TOO_LONG</td>
|
||||
<td>The provided message is too long.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>QUERY_ID_INVALID</td>
|
||||
<td>The query ID is invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>URL_INVALID</td>
|
||||
<td>Invalid URL provided.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3></div>
|
||||
|
||||
</div>
|
||||
|
||||
</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
167
data/corefork.telegram.org/method/phone.editGroupCallMember
Normal file
167
data/corefork.telegram.org/method/phone.editGroupCallMember
Normal file
|
@ -0,0 +1,167 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>phone.editGroupCallMember</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Edit information about a given group call participant
|
||||
Parameters
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
muted
|
||||
flags.0?true…">
|
||||
<meta property="og:title" content="phone.editGroupCallMember">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Edit information about a given group call participant
|
||||
Parameters
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
muted
|
||||
flags.0?true…">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/phone.editGroupCallMember" >phone.editGroupCallMember</a></li></ul></div>
|
||||
<h1 id="dev_page_title">phone.editGroupCallMember</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Edit information about a given group call participant</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"> <code>Method schema is available as of layer 123. <a href="?layer=123">Switch »</a></code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>flags</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/%23">#</a></td>
|
||||
<td>Flags, see <a href="/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>muted</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether to mute or unmute the user</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>call</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputGroupCall">InputGroupCall</a></td>
|
||||
<td>Group call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>user_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputUser">InputUser</a></td>
|
||||
<td>The user in question</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/Updates">Updates</a></p></div>
|
||||
|
||||
</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,160 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>phone.toggleGroupCallStartSubscription</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Subscribe or unsubscribe to a scheduled group call">
|
||||
<meta property="og:title" content="phone.toggleGroupCallStartSubscription">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Subscribe or unsubscribe to a scheduled group call">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/phone.toggleGroupCallStartSubscription" >phone.toggleGroupCallStartSubscription</a></li></ul></div>
|
||||
<h1 id="dev_page_title">phone.toggleGroupCallStartSubscription</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Subscribe or unsubscribe to a scheduled group call</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/updatesTooLong" >updatesTooLong</a>#e317af7e = <a href="/type/Updates" >Updates</a>;
|
||||
<a href="/constructor/updateShortMessage" >updateShortMessage</a>#313bc7f8 flags:<a href="/type/%23" >#</a> out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:<a href="/type/int" >int</a> user_id:<a href="/type/long" >long</a> message:<a href="/type/string" >string</a> pts:<a href="/type/int" >int</a> pts_count:<a href="/type/int" >int</a> date:<a href="/type/int" >int</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> entities:flags.7?<a href="/type/Vector%20t" >Vector</a><<a href="/type/MessageEntity" >MessageEntity</a>> ttl_period:flags.25?<a href="/type/int" >int</a> = <a href="/type/Updates" >Updates</a>;
|
||||
<a href="/constructor/updateShortChatMessage" >updateShortChatMessage</a>#4d6deea5 flags:<a href="/type/%23" >#</a> out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:<a href="/type/int" >int</a> from_id:<a href="/type/long" >long</a> chat_id:<a href="/type/long" >long</a> message:<a href="/type/string" >string</a> pts:<a href="/type/int" >int</a> pts_count:<a href="/type/int" >int</a> date:<a href="/type/int" >int</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> entities:flags.7?<a href="/type/Vector%20t" >Vector</a><<a href="/type/MessageEntity" >MessageEntity</a>> ttl_period:flags.25?<a href="/type/int" >int</a> = <a href="/type/Updates" >Updates</a>;
|
||||
<a href="/constructor/updateShort" >updateShort</a>#78d4dec1 update:<a href="/type/Update" >Update</a> date:<a href="/type/int" >int</a> = <a href="/type/Updates" >Updates</a>;
|
||||
<a href="/constructor/updatesCombined" >updatesCombined</a>#725b04c3 updates:<a href="/type/Vector%20t" >Vector</a><<a href="/type/Update" >Update</a>> users:<a href="/type/Vector%20t" >Vector</a><<a href="/type/User" >User</a>> chats:<a href="/type/Vector%20t" >Vector</a><<a href="/type/Chat" >Chat</a>> date:<a href="/type/int" >int</a> seq_start:<a href="/type/int" >int</a> seq:<a href="/type/int" >int</a> = <a href="/type/Updates" >Updates</a>;
|
||||
<a href="/constructor/updates" >updates</a>#74ae4240 updates:<a href="/type/Vector%20t" >Vector</a><<a href="/type/Update" >Update</a>> users:<a href="/type/Vector%20t" >Vector</a><<a href="/type/User" >User</a>> chats:<a href="/type/Vector%20t" >Vector</a><<a href="/type/Chat" >Chat</a>> date:<a href="/type/int" >int</a> seq:<a href="/type/int" >int</a> = <a href="/type/Updates" >Updates</a>;
|
||||
<a href="/constructor/updateShortSentMessage" >updateShortSentMessage</a>#9015e101 flags:<a href="/type/%23" >#</a> out:flags.1?true id:<a href="/type/int" >int</a> pts:<a href="/type/int" >int</a> pts_count:<a href="/type/int" >int</a> date:<a href="/type/int" >int</a> media:flags.9?<a href="/type/MessageMedia" >MessageMedia</a> entities:flags.7?<a href="/type/Vector%20t" >Vector</a><<a href="/type/MessageEntity" >MessageEntity</a>> ttl_period:flags.25?<a href="/type/int" >int</a> = <a href="/type/Updates" >Updates</a>;
|
||||
---functions---
|
||||
<a href="/method/phone.toggleGroupCallStartSubscription" class="current_page_link" >phone.toggleGroupCallStartSubscription</a>#219c34e6 call:<a href="/type/InputGroupCall" >InputGroupCall</a> subscribed:<a href="/type/Bool" >Bool</a> = <a href="/type/Updates" >Updates</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>call</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputGroupCall">InputGroupCall</a></td>
|
||||
<td>Scheduled group call</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>subscribed</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Bool">Bool</a></td>
|
||||
<td>Enable or disable subscription</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/Updates">Updates</a></p></div>
|
||||
|
||||
</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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
177
data/corefork.telegram.org/type/User.html
Normal file
177
data/corefork.telegram.org/type/User.html
Normal file
|
@ -0,0 +1,177 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>User</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Object defines a user.">
|
||||
<meta property="og:title" content="User">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Object defines a user.">
|
||||
<link rel="shortcut icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" 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=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/User" >User</a></li></ul></div>
|
||||
<h1 id="dev_page_title">User</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Object defines a user.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 133 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133"><strong>133 – 64-bit IDs for User/Chat</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/userEmpty" >userEmpty</a>#d3bc4b7a id:<a href="/type/long" >long</a> = <a href="/type/User" class="current_page_link" >User</a>;
|
||||
<a href="/constructor/user" >user</a>#3ff6ecb0 flags:<a href="/type/%23" >#</a> self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true 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> = <a href="/type/User" class="current_page_link" >User</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href="/method/account.updateProfile" >account.updateProfile</a>#78515775 flags:<a href="/type/%23" >#</a> first_name:flags.0?<a href="/type/string" >string</a> last_name:flags.1?<a href="/type/string" >string</a> about:flags.2?<a href="/type/string" >string</a> = <a href="/type/User" class="current_page_link" >User</a>;
|
||||
<a href="/method/account.updateUsername" >account.updateUsername</a>#3e0bdd7c username:<a href="/type/string" >string</a> = <a href="/type/User" class="current_page_link" >User</a>;
|
||||
<a href="/method/account.changePhone" >account.changePhone</a>#70c32edb phone_number:<a href="/type/string" >string</a> phone_code_hash:<a href="/type/string" >string</a> phone_code:<a href="/type/string" >string</a> = <a href="/type/User" class="current_page_link" >User</a>;</code></pre></p>
|
||||
<h3><a class="anchor" href="#constructors" id="constructors" name="constructors"><i class="anchor-icon"></i></a>Constructors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Constructor</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/userEmpty">userEmpty</a></td>
|
||||
<td>Empty constructor, non-existent user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/user">user</a></td>
|
||||
<td>Indicates info about a certain user</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#methods" id="methods" name="methods"><i class="anchor-icon"></i></a>Methods</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/account.updateProfile">account.updateProfile</a></td>
|
||||
<td>Updates user profile.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/account.updateUsername">account.updateUsername</a></td>
|
||||
<td>Changes username for the current user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/account.changePhone">account.changePhone</a></td>
|
||||
<td>Change the phone number of the current account</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></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/blog">Blog</a></li>
|
||||
<li><a href="//telegram.org/jobs">Jobs</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/dl/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/wp">Windows Phone</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="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
624
data/instantview.telegram.org/checklist.html
Normal file
624
data/instantview.telegram.org/checklist.html
Normal file
|
@ -0,0 +1,624 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Checklist – Instant View</title>
|
||||
<meta property="og:title" content="A Guide to Good Templates">
|
||||
<meta property="og:image" content="https://instantview.telegram.org/file/811140890/2/3WnXjPnynwU.52493/709f815bf5f24bff9c">
|
||||
<meta property="og:description" content="This page lists general rules and detailed clarifications for creating good Instant View templates for news articles.
|
||||
For…">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet">
|
||||
<link href="/css/codemirror.css?1" rel="stylesheet">
|
||||
<link href="/css/instantview.css?115" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="no-transition">
|
||||
<header>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-lg-10 col-lg-offset-1">
|
||||
<div class="header-wrap">
|
||||
<div id="header-panel" class="header-panel">
|
||||
<div class="header-breadcrumb header-breadcrumb-simple">
|
||||
<ol id="breadcrumb" class="header-nav breadcrumb"><li class="iv-logo"><a href="/"><i class="iv-icon"></i><span class="iv-logo-title">Instant View</span></a></li><li class="active">Checklist</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="intro container">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-push-9 col-lg-offset-1 col-lg-3 col-lg-push-7">
|
||||
<section class="nav-menu">
|
||||
<ul class="nav nav-pills nav-stacked"><li><a href="/">Intro</a></li><li><a href="/templates">Templates</a></li><li class="active"><a href="/checklist">Checklist</a><div id="dev_side_nav_cont"></div></li><li><a href="/contest/winners2017">2017 Contest Winners</a></li><li><a href="/contest/winners2019">2019 Contest Winners</a></li><li class="divider"></li><li><a href="/samples/">Sample Templates</a></li><li><a href="/my/" data-need-auth>My Templates</a></li><li><a href="/docs">Manual</a></li></ul>
|
||||
<div class="nav-footer">
|
||||
<a class="logged-link" href="/auth" data-need-auth>Login</a>
|
||||
<span class="logged">
|
||||
<span class="logged-label">Hello, anonymous!</span>
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-sm-9 col-sm-pull-3 col-lg-7 col-lg-pull-3">
|
||||
<div class="content">
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<div class="dev_page_bread_crumbs"></div>
|
||||
<h1 id="dev_page_title">A Guide to Good Templates</h1>
|
||||
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<div class="dev_side_image">
|
||||
<a href="/file/811140067/3/6oS3A6aSzxU.261217/1d6f75b81ed67c983a" target="_blank"><img src="/file/811140890/2/3WnXjPnynwU.52493/709f815bf5f24bff9c" title="Instant View Platform. Click for hi-res picture">
|
||||
</a></div>
|
||||
|
||||
<p>This page lists <a href="#general-rules">general rules</a> and <a href="#perfect-templates">detailed clarifications</a> for creating good Instant View templates for news articles.</p>
|
||||
<p>For more info on templates, see our <a href="/">Introduction</a> and <a href="/samples/">Sample Templates</a>.</p>
|
||||
<h3><a class="anchor-link" href="#general-rules"><i class="anchor-icon"></i></a><a class="anchor" name="general-rules"></a>General Rules</h3>
|
||||
<p>Instant View templates must meet these five basic requirements:</p>
|
||||
<h4><a class="anchor-link" href="#1-ivs-must-only-be-generated-for-pages-that-need-them"><i class="anchor-icon"></i></a><a class="anchor" name="1-ivs-must-only-be-generated-for-pages-that-need-them"></a>1. IVs must only be generated for pages that need them</h4>
|
||||
<p>Instant View pages work best with relatively <strong>static articles</strong>. Dynamic pages (such as the main page of a news site) that are constantly refreshed with new links and media don't need IV.</p>
|
||||
<p>Templates should <strong>only</strong> generate IV pages for <em>articles</em> and should not affect service areas of websites, as well as any other sections unsuitable for IV. IV pages should <strong>not</strong> be generated for articles that have content which is not supported in IV since this would result in unacceptable loss of information (e.g., IV pages don't support dynamic maps — if you generate an IV page for a wiki article with a dynamic map, the IV version will be missing a key element). </p>
|
||||
<h4><a class="anchor-link" href="#2-all-essential-content-must-be-preserved"><i class="anchor-icon"></i></a><a class="anchor" name="2-all-essential-content-must-be-preserved"></a>2. All essential content must be preserved</h4>
|
||||
<p>IV pages should show the entire text of the article, along with all its formatting, media, and embedded content. This includes headings, subheadings, quotes, captions, photos, videos, links, etc.</p>
|
||||
<h4><a class="anchor-link" href="#3-unnecessary-elements-must-be-removed"><i class="anchor-icon"></i></a><a class="anchor" name="3-unnecessary-elements-must-be-removed"></a>3. Unnecessary elements must be removed</h4>
|
||||
<p>IV pages should display only the source’s <em>content</em> – removing all interface elements, advertisments and irrelevant embedded material.</p>
|
||||
<h4><a class="anchor-link" href="#4-template-must-process-all-the-pages-it-covers"><i class="anchor-icon"></i></a><a class="anchor" name="4-template-must-process-all-the-pages-it-covers"></a>4. Template must process all the pages it covers</h4>
|
||||
<p>Pages with irregular elements should be processed correctly. All media, embeds, quotes and separators should be properly displayed.</p>
|
||||
<h4><a class="anchor-link" href="#5-no-extraneous-info-may-be-added"><i class="anchor-icon"></i></a><a class="anchor" name="5-no-extraneous-info-may-be-added"></a>5. No extraneous info may be added</h4>
|
||||
<p> Any attempt to add content that is not present on the original page will cause your template to be rejected.</p>
|
||||
<p>You may include the username of websites’ <strong>official</strong> channels in Instant View templates. The username is assigned to the <a href="https://instantview.telegram.org/docs#instant-view-format">channel property</a>, and to be considered official, the channel must be labeled as such by the company or person who published it (on its website or social media).</p>
|
||||
<blockquote>
|
||||
<p>More detailed <a href="#perfect-templates">criteria and clarifications</a> are available below.</p>
|
||||
</blockquote>
|
||||
<hr>
|
||||
<h3><a class="anchor-link" href="#submitting-templates"><i class="anchor-icon"></i></a><a class="anchor" name="submitting-templates"></a>Submitting Templates</h3>
|
||||
<p>You can submit your template for review as soon as it covers a sufficient number of articles. Make sure you've enabled <a href="https://instantview.telegram.org/#tracking-changes"><strong>Track Changes</strong></a> for at least <strong>10-15</strong> different pages on the target website and that all IV pages are generated correctly. </p>
|
||||
<p>When ready, simply tap <strong>Submit Template</strong> next to a template in the <a href="/my">My Templates</a> section:</p>
|
||||
<div class="blog_image_wrap">
|
||||
<a href="/file/811140021/2/zZEvkMN8bHI.15429/e7369f84b0e449b2ad" target="_blank"><img src="/file/811140021/2/zZEvkMN8bHI.15429/e7369f84b0e449b2ad" title="Submit button"/></a>
|
||||
<p>Submitting a template from My Templates</p> </div>
|
||||
|
||||
<h3><a class="anchor-link" href="#finding-issues"><i class="anchor-icon"></i></a><a class="anchor" name="finding-issues"></a>Finding Issues</h3>
|
||||
<p><strong>Anyone</strong> can check how well Instant View templates process articles on their respective websites, and may submit feedback using the <strong>Report Issue</strong> button.</p>
|
||||
<p>Click to select and highlight incorrectly parsed blocks in the source page or in the Instant View result and provide a detailed explanation of what is wrong (check the <a href="#perfect-templates">criteria below</a> for ideas). The author of the template will be able to see all issues, fix and resubmit their work.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor-link" href="#perfect-templates"><i class="anchor-icon"></i></a><a class="anchor" name="perfect-templates"></a>Perfect Templates</h3>
|
||||
<p>To make it easier to report issues in Instant View templates, we’ve compiled this list of characteristics that make a <strong>perfect template</strong>. Please use the list below as a reference when looking for issues in templates.</p>
|
||||
<h3><a class="anchor-link" href="#1-iv-targets-must-generate"><i class="anchor-icon"></i></a><a class="anchor" name="1-iv-targets-must-generate"></a>1. IV Targets: Must Generate</h3>
|
||||
<p>Templates must generate Instant View pages for all relevant pages on the target website.</p>
|
||||
<p><strong>1.1. Pages with static article-like content</strong></p>
|
||||
<ul>
|
||||
<li>News articles</li>
|
||||
<li>Blog posts</li>
|
||||
<li>Guides</li>
|
||||
<li>Wiki entries</li>
|
||||
<li>Documentation</li>
|
||||
<li>Etc.</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> It may be a good idea to identify a common feature of all the IV-positive pages and add rules so that the template only applies to them. Note that these pages only need IV pages if their essential content is supported in the IV format — otherwise, see <a href="#2-3-pages-featuring-content-not-supported-by-the-iv-format">2.3</a>.</p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor-link" href="#2-iv-targets-must-not-generate"><i class="anchor-icon"></i></a><a class="anchor" name="2-iv-targets-must-not-generate"></a>2. IV Targets: Must NOT Generate</h3>
|
||||
<p>Templates must not generate Instant View content for pages of the following types:</p>
|
||||
<h4><a class="anchor-link" href="#2-1-pages-with-dynamic-content"><i class="anchor-icon"></i></a><a class="anchor" name="2-1-pages-with-dynamic-content"></a>2.1. Pages with dynamic content</h4>
|
||||
<ul>
|
||||
<li>Dynamically updated lists of articles</li>
|
||||
<li>Catalogs</li>
|
||||
<li>Forum threads</li>
|
||||
<li>Search pages and search results</li>
|
||||
<li>Etc.</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> IV pages are cached. As articles get older, their cached IV pages update less frequently. Any pages that update content in real time would subsequently display outdated IV pages to users — which is unacceptable.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#2-2-pages-that-require-significant-interaction"><i class="anchor-icon"></i></a><a class="anchor" name="2-2-pages-that-require-significant-interaction"></a>2.2. Pages that require significant interaction</h4>
|
||||
<ul>
|
||||
<li>Service areas of websites, such as Contact pages with forms</li>
|
||||
<li>Store areas of websites, such as pages where users can buy products</li>
|
||||
<li>Etc.</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> While it's possible to modify interactive components of a page into simple links, the IV format was primarily designed to allow Telegram users to enjoy web content in a quick and uniform way. Interacting with websites, buying things, writing reviews, etc. are outside of the current scope for IVs. </p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#2-3-pages-featuring-content-not-supported-by-the-iv-format"><i class="anchor-icon"></i></a><a class="anchor" name="2-3-pages-featuring-content-not-supported-by-the-iv-format"></a>2.3. Pages featuring content not supported by the IV format</h4>
|
||||
<ul>
|
||||
<li>Pages with unsupported embedded content that can't be displayed</li>
|
||||
<li>Any other unsupported content</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> The rule is simple. If an essential part of an article is not available in the Instant View format, an IV page must <strong>not</strong> be generated. In most cases, this will happen automatically but template creators can further protect their templates from data loss by marking any unsupported essential content using the <a href="/docs#unsupported">@unsupported</a> function. See <a href="#6-4-2-video-audio-from-unsupported-players">this section</a> for advice on handling unsupported videos.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#2-4-inaccessible-pages"><i class="anchor-icon"></i></a><a class="anchor" name="2-4-inaccessible-pages"></a>2.4. Inaccessible pages</h4>
|
||||
<ul>
|
||||
<li>Pages that are fully or partially behind a paywall.</li>
|
||||
<li>Pages that are only accessible after logging in, etc.</li>
|
||||
</ul>
|
||||
<h3><a class="anchor-link" href="#3-essential-content"><i class="anchor-icon"></i></a><a class="anchor" name="3-essential-content"></a>3. Essential Content</h3>
|
||||
<p>All essential content must be presented on the Instant View page.</p>
|
||||
<h4><a class="anchor-link" href="#3-1-general-properties"><i class="anchor-icon"></i></a><a class="anchor" name="3-1-general-properties"></a>3.1. General properties</h4>
|
||||
<ul>
|
||||
<li>The title must be shown on the IV page (may need to include the <a href="#6-1-5-kicker">kicker</a>). </li>
|
||||
<li>The subtitle must be shown on the IV page if a subtitle exists in the source. </li>
|
||||
<li>The date of publication must be shown on the IV page if the date of publication is mentioned anywhere in the source (including meta tags).</li>
|
||||
</ul>
|
||||
<p><strong>These properties are also essential, but not always present or supported in IV:</strong></p>
|
||||
<ul>
|
||||
<li>Author name can be shown on the IV page if an author is specified in the source.</li>
|
||||
<li>Author name on the IV page can link to the author URL if an author URL is specified in the source. </li>
|
||||
<li>The main image can be shown as a cover on the IV page if a suitable image exists in the source. </li>
|
||||
<li><code>NEW</code> Right-To-Left pages (Arabic, Persian, Hebrew, etc.) must have the <code>dir="rtl"</code> attribute set.</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Important:</strong> See our <a href="#6-clarifications"><strong>Clarifications</strong></a> below for tips on how to best process cover images, date and time, author names and URLs, and other tricky elements.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#3-2-link-preview"><i class="anchor-icon"></i></a><a class="anchor" name="3-2-link-preview"></a>3.2. Link preview</h4>
|
||||
<ul>
|
||||
<li>The link preview must include a <strong>photo</strong> if a suitable image or document exist in the source.</li>
|
||||
<li>If the page has a <em>cover</em> but the metadata contains no image or contains the generic site logo, you <strong>must</strong> use the cover as the photo.</li>
|
||||
<li>The link preview requires a <strong>description</strong>. </li>
|
||||
<li>If a short description exists in the source, it must be used for the link preview (OpenGraph descriptions, lead sections, etc.).</li>
|
||||
<li>If the description in the metadata (routinely) doesn’t describe the contents of the article, your template must create a description using the subtitle or lead section, first paragraph, etc.</li>
|
||||
<li>The <code>site_name</code> property <strong>must</strong> include the name that users see on the main page of the website (<a href="https://telegra.ph/Site-name-03-19">examples here</a>).</li>
|
||||
<li>It is <em>advisable</em> to generate proper link previews even for pages that do not generate an IV.</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Note:</strong> Telegram apps will show <code>site_name</code> in the header of the IV. It must match the name that users see on the main page of the website (<a href="https://telegra.ph/Site-name-03-19">see examples</a>) and it must not contain any additional data. For this reason metadata should not be used blindly. If the main page doesn’t display a site name, use the name they use on social networks (Telegram channels have priority).</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#3-3-supported-elements"><i class="anchor-icon"></i></a><a class="anchor" name="3-3-supported-elements"></a>3.3. Supported elements</h4>
|
||||
<ul>
|
||||
<li>All important media (images, videos, slideshows, and other content that is relevant to the article) that exists in the source must be formatted accordingly.</li>
|
||||
<li>Media captions must be included with the corresponding media, provided they exist in the source and can be reliably identified.</li>
|
||||
<li>Credits in quotes and media captions must be formatted correctly.</li>
|
||||
<li>Dividers must be converted to simplified dividers on the IV page if dividers exist in the source. </li>
|
||||
<li>Anchor links must work properly on IV page if anchor links exist in the source. </li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> Check that pages featuring unsupported content do not generate IV pages. In most cases, this will happen automatically, but it is a good idea to confirm this before submitting your template. Mark any unsupported essential content using the <a href="/docs#unsupported">@unsupported</a> function. See <a href="#6-4-2-video-audio-from-unsupported-players">this section</a> for advice on handling unsupported videos.</p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor-link" href="#4-content-to-be-removed"><i class="anchor-icon"></i></a><a class="anchor" name="4-content-to-be-removed"></a>4. Content to be Removed</h3>
|
||||
<p>Anything that is not essential to the article in question should be removed from the Instant View page, including:</p>
|
||||
<ul>
|
||||
<li>Main navigation bars and menus (essential navigation may be adjusted to simple links)</li>
|
||||
<li>Top bars</li>
|
||||
<li>Side bars (can potentially be adjusted and appended to bottom of IV page)</li>
|
||||
<li>Footers</li>
|
||||
<li>Unsupported widgets (check <a href="https://instantview.telegram.org/docs?v=2.0#embedded-elements">supported embeds</a>)</li>
|
||||
<li>Advertisements</li>
|
||||
<li>Banners</li>
|
||||
<li>Social media links and buttons, including “Share” and “Like”</li>
|
||||
<li>Other buttons (if it is essential, it must be simplified into a link)</li>
|
||||
<li>Etc.</li>
|
||||
</ul>
|
||||
<h3><a class="anchor-link" href="#5-extraneous-content"><i class="anchor-icon"></i></a><a class="anchor" name="5-extraneous-content"></a>5. Extraneous Content</h3>
|
||||
<p>The resulting IV page may not contain any content not present in the original.</p>
|
||||
<ul>
|
||||
<li>No signatures or information about the template's author</li>
|
||||
<li>No extra links or ads of any kind</li>
|
||||
<li>Etc.</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> You may display the official Telegram channel of the website that published the article at the top of the IV page (by using the <em>channel</em> property). To be considered official, the channel must be labelled as such somewhere on the source website (doesn't have to be on the same page as the original article).</p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor-link" href="#6-clarifications"><i class="anchor-icon"></i></a><a class="anchor" name="6-clarifications"></a>6. Clarifications</h3>
|
||||
<blockquote>
|
||||
<p>Below are some clarifications for the trickier aspects of creating perfect Instant View templates.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#general-properties"><i class="anchor-icon"></i></a><a class="anchor" name="general-properties"></a>GENERAL PROPERTIES</h4>
|
||||
<h4><a class="anchor-link" href="#6-1-1-author-name"><i class="anchor-icon"></i></a><a class="anchor" name="6-1-1-author-name"></a>6.1.1 Author name</h4>
|
||||
<p>Author name is <strong>required only if</strong> it is presented in the source article in a consistent, clear and identifiable way (in an html block with particular properties), especially if there's a name of an actual person.</p>
|
||||
<p>In less obvious cases, what the user sees when viewing the original article in a browser has <strong>priority</strong> over invisible meta-information. Names of <strong>actual people</strong> are <strong>always</strong> preferable over entity names like 'team' or the name of the website.</p>
|
||||
<p>You may omit the author in cases where no name can be seen by a regular user opening the original article in the browser. You may omit the name when there's no identifiable person, only the website's 'team', 'editors', 'website name' etc.</p>
|
||||
<p>Absent author names for articles in which no author can be easily identified by a regular viewing user are not considered an issue.</p>
|
||||
<h4><a class="anchor-link" href="#6-1-2-date-and-time"><i class="anchor-icon"></i></a><a class="anchor" name="6-1-2-date-and-time"></a>6.1.2 Date and time</h4>
|
||||
<p>The date of publication is <strong>obligatory</strong> for news publications. It must be obtained by any means possible, including meta tags, etc. If the date is specified correctly, time is <strong>optional</strong>.</p>
|
||||
<p>If conflicting dates are stored in multiple places on the source page, preference should be given to the time that is visible to an ordinary user who views the page in a browser.</p>
|
||||
<p>The IV editor's 'Preview' section will always show the date/time in UTC format, while the 'Original' section may use a different time zone. It is possible for a perfect template to display a date/time that looks different than the original. </p>
|
||||
<p>Support for time zones is optional, unless the time zone is reliably identifiable from the source, in which case it’s obligatory.</p>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> If given 'date published' and 'date last edited', use 'date published' for articles. For wiki-like entries 'date last edited' must be used.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#6-1-3-subtitle"><i class="anchor-icon"></i></a><a class="anchor" name="6-1-3-subtitle"></a>6.1.3 Subtitle</h4>
|
||||
<p>A <strong>subtitle</strong> is <em>a subordinate title of a published work or article giving additional information about its content</em>. If this is present in the original article, a <code>subtitle</code> is <strong>required</strong>. Here's an example of a subtitle:</p>
|
||||
<div class="blog_image_wrap">
|
||||
<a href="/file/811140067/4/sHpKJZGksno.26146/01c22f5990ad752f20" target="_blank"><img src="/file/811140067/4/sHpKJZGksno.26146/01c22f5990ad752f20" title="Subtitle"/></a>
|
||||
<p>A Subtitle</p>
|
||||
</div>
|
||||
|
||||
<p>Few publications actually use subtitles. More commonly, short summary sentences are shown below the title (and are called <em>standfirst</em> in the UK). These summary sentences are usually short and are not part of the article's text. It is <strong>advisable</strong> but not required to represent them as <code>subtitle</code> elements. Here's an example:</p>
|
||||
<div class="blog_image_wrap">
|
||||
<a href="/file/811140239/3/NUL4Rsj3By8.33798/35bd1353620089d84c" target="_blank"><img src="/file/811140239/3/NUL4Rsj3By8.33798/35bd1353620089d84c" title="Summary, standfirst"/></a>
|
||||
<p>A Summary</p> </div>
|
||||
|
||||
<h4><a class="anchor-link" href="#6-1-4-lead-paragraph"><i class="anchor-icon"></i></a><a class="anchor" name="6-1-4-lead-paragraph"></a>6.1.4 Lead paragraph</h4>
|
||||
<p>Many publications use a slightly different style for their <a href="https://en.wikipedia.org/wiki/Lead_paragraph">lead paragraphs</a>. Unlike subtitles and summaries, the lead paragraph is part of the article's text. Even if the lead uses a different style from the rest of the text, it is <strong>less desirable</strong> to present it as a <code>subtitle</code> — but this is not a critical issue.</p>
|
||||
<p>If the lead paragraph uses a different style, it is recommended to use <strong>bold</strong> or <strong>italic</strong> text. </p>
|
||||
<div class="blog_image_wrap">
|
||||
<a href="/file/811140143/2/4WbpXiI4m8E.64274/a31d87f94d80a60426" target="_blank"><img src="/file/811140143/2/4WbpXiI4m8E.64274/a31d87f94d80a60426" title="Summary, then lead paragraph in bol"/></a>
|
||||
<p>A summary, then lead in bold</p> </div>
|
||||
|
||||
<p>In the example above, the lead paragraph is highlighted in bold: “TAXI giant Uber has reportedly fired over 20 workers following an internal investigation into sexual harassment allegations.”</p>
|
||||
<p>The article then continues: “The company told staff of the layoffs on Tuesday and related claims by law firm Perkins Coie, a person close with the case told Bloomberg.” It would be acceptable to present the “TAXI giant Uber…” paragraph as bold, or italic, or plain text.</p>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> Generally, it is advisable to avoid setting too much text as the subtitle. If the website publishes summaries that take an entire paragraph or even multiple paragraphs, it's better to use italic/bold text instead of the subtitle element to represent this content in IV.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#6-1-5-kicker"><i class="anchor-icon"></i></a><a class="anchor" name="6-1-5-kicker"></a>6.1.5 Kicker</h4>
|
||||
<p>Kickers are separately formatted parts of the title supported in IV 2.0 with the <a href="https://instantview.telegram.org/docs?v=2.0#instant-view-format"><em>kicker</em></a> property. The kicker property must be set if a kicker is present and its text is actually a part of the title/story (see 'UBER SEX CLAIMS' on the screenshot above).</p>
|
||||
<p>If the kicker represents a regular section or category into which the article falls, (e.g. 'CRIME: Seventy suitcases stolen from Heathrow airport'), it should be omitted. Missing section/category kickers are not considered an issue.</p>
|
||||
<h4><a class="anchor-link" href="#images-and-media"><i class="anchor-icon"></i></a><a class="anchor" name="images-and-media"></a>IMAGES AND MEDIA</h4>
|
||||
<h4><a class="anchor-link" href="#6-2-1-image-quality"><i class="anchor-icon"></i></a><a class="anchor" name="6-2-1-image-quality"></a>6.2.1 Image quality</h4>
|
||||
<p>When several image resolutions are available and can be extracted reliably, the IV page should use <strong>better quality</strong> images (within reason). The optimal resolution range is <strong>1280px-2560px</strong>, using larger images is pointless. Note that images that are too large (<strong>>5 MB</strong>) will fail to load. We recommend updating your template to IV 2.1 to automatically extract optimal images from the <code>srcset</code> attribute.</p>
|
||||
<p>If for some reason it is only technically possible to obtain low-resolution versions of images (lower than 320px) for a page, but its original web version has high-resolution images, the page should not generate an IV.</p>
|
||||
<blockquote>
|
||||
<p><strong>Note:</strong> For the <code>Icon</code> type, we highly recommend setting the correct size using the width/height attributes so that they appear the same way in IV as they do in the text. Otherwise, you risk grabbing the 3x version of an emoji and displaying it as a full-blown image.</p>
|
||||
</blockquote>
|
||||
<p>See also: <strong><a href="#6-2-6-infographics">Infographics</a></strong></p>
|
||||
<h4><a class="anchor-link" href="#6-2-2-cover-images"><i class="anchor-icon"></i></a><a class="anchor" name="6-2-2-cover-images"></a>6.2.2 Cover images</h4>
|
||||
<p>It is <strong>obligatory</strong> to use a cover image:</p>
|
||||
<ul>
|
||||
<li>If the image is <strong>present</strong> on the page and described in the source as “featured-img”, “cover”, “lead_img”, “main_image”, etc.</li>
|
||||
<li>When the article has a cover on the source website (above the title or subtitle).</li>
|
||||
</ul>
|
||||
<p>In other cases, cover images are <strong>optional</strong>:</p>
|
||||
<ul>
|
||||
<li>We recommend setting a cover If there's a suitable image directly below the title/subtitle.</li>
|
||||
<li>While it is possible to use GIFs and videos as cover, in most cases, it's better to leave these elements in the body of the article.</li>
|
||||
</ul>
|
||||
<p>Sometimes, a cover is less desirable:</p>
|
||||
<ul>
|
||||
<li>In single-image, single-video, or single-GIF articles with no significant text.</li>
|
||||
<li>When text on the cover image repeats the title.</li>
|
||||
<li>Images from meta-tags are not recommended: they might be suitable, but are usually designed with sharing widgets in mind and don’t work well in the IV environment.</li>
|
||||
</ul>
|
||||
<p>A cover must <strong>not be set</strong> if:</p>
|
||||
<ul>
|
||||
<li>The chosen image is clearly inappropriate for the cover.</li>
|
||||
<li>The chosen image appears several paragraphs into the article and it is possible to reliably identify this.</li>
|
||||
<li>The cover image is duplicated in the article.</li>
|
||||
<li>Several images appear in the article one after another. In this case, the template should not break the sequence by extracting one of them as a cover (<a href="https://instantview.telegram.org/samples/medium.com/?url=https%3A%2F%2Fmedium.com%2F%40LibbyMari%2Fconsidering-abortion-27b3dcbaee32">example</a>).</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> Cover images can also have captions in IV, don't lose them.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#6-2-3-galleries-and-slideshows"><i class="anchor-icon"></i></a><a class="anchor" name="6-2-3-galleries-and-slideshows"></a>6.2.3 Galleries and slideshows</h4>
|
||||
<p>Slideshows are <strong>required only if</strong> the source article shows several photos or other media as a slideshow or gallery. If this is the case, do the following:<br>- Present all images in the IV as a gallery, if possible.<br>- If that's not possible, keep a link to the full gallery.<br>- If none of the above are possible, generate no IV for the page.</p>
|
||||
<p>If the source has several ordinary images/videos/GIFs following each other in the source, you may also convert them into a slideshow, but this is <strong>purely optional</strong>. This makes more sense in cases when images serve as additional content (e.g., a long text about a new car which is followed by ten images of the car).</p>
|
||||
<p>We will not accept issue reports based on presence or absence of slideshows for ordinary images following each other in the source article.</p>
|
||||
<p><strong>EXCEPTION!</strong> Slideshows <strong>must not be used</strong> when:</p>
|
||||
<ul>
|
||||
<li>The slideshow fetches unrelated images (e.g. an illustration and a disclaimer).</li>
|
||||
<li>The article consists entirely of a slideshow (and its caption/description) and there's no other content.</li>
|
||||
<li>The article uses images/videos/GIFs with captions as the main medium (e.g.: travel blogs that show many photos with captions, step-by-step crafting guides, cooking recipes, etc.).</li>
|
||||
</ul>
|
||||
<p>In the cases above, use images with captions (or even plain paragraph text) following one another.</p>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> Remember that captions should be preserved for all images in the source. If you lose captions for images you've put into a slideshow, it's a valid issue. IV Slideshows support both a caption for the entire slideshows and different captions for each individual element.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#6-2-4-captions"><i class="anchor-icon"></i></a><a class="anchor" name="6-2-4-captions"></a>6.2.4 Captions</h4>
|
||||
<p>Any captions present in the source article must be preserved. This includes captions for the cover image and captions for <strong>all</strong> individual elements of slideshows.</p>
|
||||
<div class="blog_image_wrap">
|
||||
<a href="/file/811140078/1/ZmgNlv6_TZo.75424/f8e251df3e3d8affe0" target="_blank"><img src="/file/811140078/1/ZmgNlv6_TZo.75424/f8e251df3e3d8affe0" title="Caption for the slideshow and individual image" /></a>
|
||||
<p>All Captions Preserved</p>
|
||||
</div>
|
||||
|
||||
<p>If the image has no caption, but has meaningful text in the <em>alt</em> attribute, you may use that text as the caption. This is optional, we will not accept issue reports about alt-text missing from captions.</p>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> Please don't include meaningless alt-text as captions (e.g., the PlayStation blog always puts the name of the corresponding game in the alt attribute of all screenshots – there's no need to reproduce that on the IV page.)</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#6-2-5-media-credits"><i class="anchor-icon"></i></a><a class="anchor" name="6-2-5-media-credits"></a>6.2.5 Media credits</h4>
|
||||
<p>IV 2.0 supports a dedicated <code><cite></code> tag for credits in media captions. Credits in captions must be preserved and placed inside the appropriate tag, provided it is possible to reliably identify them.</p>
|
||||
<h4><a class="anchor-link" href="#6-2-6-infographics"><i class="anchor-icon"></i></a><a class="anchor" name="6-2-6-infographics"></a>6.2.6 Infographics</h4>
|
||||
<p>Tall infographic images are currently unreadable in Telegram apps. If there’s a reliable way to identify them (e.g., consistently used attributes or a specific section on the website that only contains infographics) the IV must add an <strong>image link</strong> to the full version of the image. If there is no reliable way to identify such images and they are not consistently featured on the website, it is acceptable to leave infographics as ordinary photos.</p>
|
||||
<h4><a class="anchor-link" href="#links"><i class="anchor-icon"></i></a><a class="anchor" name="links"></a>LINKS</h4>
|
||||
<h4><a class="anchor-link" href="#6-3-1-image-links"><i class="anchor-icon"></i></a><a class="anchor" name="6-3-1-image-links"></a>6.3.1 Image links</h4>
|
||||
<p>In IV 2.0, <code><img></code> tags support the attribute <code>href</code> to make the image <strong>clickable</strong>. It must be used to preserve the link behind the image if it leads to some different page or content.</p>
|
||||
<p>Image links are required only if they are meaningful. If the link opens the same image in a higher resolution, it must be removed. Exception: <a href="#6-2-6-infographics">Infographics</a>.</p>
|
||||
<h4><a class="anchor-link" href="#6-3-2-related-articles-and-other-more-links"><i class="anchor-icon"></i></a><a class="anchor" name="6-3-2-related-articles-and-other-more-links"></a>6.3.2 Related Articles and other “More” links</h4>
|
||||
<p>IV 2.0 supports a dedicated type for <a href="https://instantview.telegram.org/docs?v=2.0#supported-types">RelatedArticles</a>. Related articles are relatively static individual links or blocks of articles which are thematically related to the current one. They don't have to be located on the same domain.</p>
|
||||
<p>It is obligatory to format “Related articles” links using the new <code><related></code> tag and/or remove other “More” links, provided all these links can be extracted from the article without endangering essential information.</p>
|
||||
<p>We designed the RelatedArticles block to deliver a better IV-reading experience to users. The IV engine automatically checks whether articles in the <code><related></code> block have an IV, you don't need to worry about this.</p>
|
||||
<blockquote>
|
||||
<p>If pages have <strong>no IV</strong>, they will <strong>not</strong> be displayed. If this results in an empty block, it will <strong>not</strong> be displayed.</p>
|
||||
</blockquote>
|
||||
<p>There are cases when you must not use RelatedArticles:</p>
|
||||
<p><strong>1.</strong> <strong>Keep</strong> but <strong>don’t format</strong> as Related</p>
|
||||
<ul>
|
||||
<li>Links that <strong>can’t</strong> be safely and reliably extracted from the article text.</li>
|
||||
<li>Links that are part of <strong>essential</strong> content for the article (without which the article makes no sense).</li>
|
||||
<li>Navigational links to the other parts of <a href="#6-3-7-multi-page-articles">multipart articles</a>.</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p><strong>Never</strong> put <strong>essential</strong> links into <related>, they will be lost if the page they are leading to doesn’t have an IV.</p>
|
||||
</blockquote>
|
||||
<p><strong>2.</strong> <strong>Remove</strong></p>
|
||||
<ul>
|
||||
<li>“More” blocks that show <em>different</em> links each time the page is reloaded.</li>
|
||||
<li>(Consistently) random unrelated articles.</li>
|
||||
<li>Dynamic lists of "Latest articles from this category”, “More articles by this author”, “Featured articles”, etc.</li>
|
||||
<li>Lists of categories (links to dynamic lists).</li>
|
||||
<li>External links leading to “Partner sites” (e.g., You won't believe what this game does to people!).</li>
|
||||
</ul>
|
||||
<h4><a class="anchor-link" href="#6-3-2-1-formatting-related-articles"><i class="anchor-icon"></i></a><a class="anchor" name="6-3-2-1-formatting-related-articles"></a>6.3.2.1. Formatting Related Articles</h4>
|
||||
<p>It is sufficient to put links into <code><related></code>. You only need the <code><a></code> – the IV engine will handle the rest (title, description, etc.). Your IV may only have <strong>one block</strong> of related articles at the end of the page. If the source has several blocks, merge them together or choose which one to keep.</p>
|
||||
<p><strong>Headers</strong><br>Only <em>one</em> header may be present for the block of related articles at the end of the page. We will not accept reports about missing headers on Related blocks (unless the header contains <em>critical</em> information).</p>
|
||||
<p>Note that if a header for a related article is not reliably extractable from the body, you must <em>not</em> use <related> for that link. (Otherwise, if the link gets no IV, the text will have a hanging header). </p>
|
||||
<p><strong>“Inline” blocks</strong><br>You <em>may</em> leave “inline” related links in the middle the article. If you do, these <code><related></code> blocks <em>must not have headers</em> (unless the header contains <em>critical</em> information).</p>
|
||||
<h4><a class="anchor-link" href="#6-3-3-channel-links"><i class="anchor-icon"></i></a><a class="anchor" name="6-3-3-channel-links"></a>6.3.3 Channel links</h4>
|
||||
<p>You may display the official channel of the website that published the article on the IV page by using the <code>channel</code> property:</p>
|
||||
<div class="blog_image_wrap">
|
||||
<a href="/file/811140053/2/y2z4UVQevzU.36357/2e7481b67386604d59" target="_blank"><img src="/file/811140053/2/y2z4UVQevzU.36357/2e7481b67386604d59" title="Channel link" /></a>
|
||||
<p>Official Channel Link</p>
|
||||
</div>
|
||||
|
||||
<p>This channel link is <strong>optional</strong>. We will not accept issue reports based on the absence or presence of a channel link, with one exception:</p>
|
||||
<p>If the channel property is set, the channel it is pointing to <strong>must</strong> be the official channel. To be considered official, the channel must be labelled as such somewhere on the source website (doesn't have to be on the same page as the original article).</p>
|
||||
<h4><a class="anchor-link" href="#6-3-4-source-links"><i class="anchor-icon"></i></a><a class="anchor" name="6-3-4-source-links"></a>6.3.4 Source links</h4>
|
||||
<p>Some articles include a link to their source. This link could be inserted at the end of the article in the format <code>via <a href="https://example.org">Website Name</a></code>. A word with a similar meaning could be used instead of 'via' for websites in other languages.</p>
|
||||
<h4><a class="anchor-link" href="#6-3-5-author-links"><i class="anchor-icon"></i></a><a class="anchor" name="6-3-5-author-links"></a>6.3.5 Author links</h4>
|
||||
<p>Author links are <strong>optional</strong>. If there's a clearly identifiable author and they have a page on the target website, use that one. In more ambiguous cases, use what the regular viewing user can see in the original article or omit the link altogether.</p>
|
||||
<blockquote>
|
||||
<p><strong>Tip:</strong> IV only supports one author URL per article. If there are several in the article, it's permissible to choose one or omit them altogether.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#6-3-6-social-media-links"><i class="anchor-icon"></i></a><a class="anchor" name="6-3-6-social-media-links"></a>6.3.6 Social media links</h4>
|
||||
<p>Sharing buttons and other interface-based links <strong>must be removed</strong> as per <a href="#4-content-to-be-removed">Rule 4</a>.</p>
|
||||
<p>Many articles include something like “check out our Facebook page” at the end of the text. Such links <strong>must be removed</strong> if they are placed in a reliably identifiable container.</p>
|
||||
<h4><a class="anchor-link" href="#6-3-7-multi-page-articles"><i class="anchor-icon"></i></a><a class="anchor" name="6-3-7-multi-page-articles"></a>6.3.7 Multi-page articles</h4>
|
||||
<p>To parse several pages into one IV, update your template to <a href="/docs#options-new">IV 2.1</a> (which skips canonical redirects by default) and use the <a href="/docs#inline">inline</a> function. Make sure to check in-app to see if your solution is working. The IV should open correctly when users share a link to <strong>any</strong> part of the article.</p>
|
||||
<p>If pages can’t be safely assembled into one IV, navigation <strong>must</strong> be preserved. Please confirm that navigation is working and all further pages open correctly. If navigation can’t be preserved, the article must <strong>not</strong> generate an IV.</p>
|
||||
<p><strong>Never</strong> format links to the other parts of an article as <em>related</em>. This may break navigation if one part of the article fails to generate IV (since related articles without IVs are omitted in the block).</p>
|
||||
<h4><a class="anchor-link" href="#unsupported-content"><i class="anchor-icon"></i></a><a class="anchor" name="unsupported-content"></a>UNSUPPORTED CONTENT</h4>
|
||||
<p>Pages that display unsupported content (e.g. an interactive map widget) must not generate IVs.</p>
|
||||
<p><strong>Important:</strong> We will accept issue reports requesting to generate IVs for pages with content previously deemed unsupported if you include a link to a template that fully supports the content in question. This does <strong>not</strong> apply to supporting content from popular widgets that are likely to get official support in the future, see the <a href="#6-4-4-popular-widgets">list below</a>.</p>
|
||||
<h4><a class="anchor-link" href="#6-4-1-complex-tables"><i class="anchor-icon"></i></a><a class="anchor" name="6-4-1-complex-tables"></a>6.4.1 Complex tables</h4>
|
||||
<p>IV 2.0 includes support for <a href="https://instantview.telegram.org/docs?v=2.0#supported-types"><strong>Tables</strong></a>. IVs can now be generated for articles with simple tables. However, complex tables may not render through existing means, and must be tagged as <a href="/docs/#unsupported">@unsupported</a>.</p>
|
||||
<p><strong>Important:</strong> We will accept issue reports requesting to generate IVs for pages with content previously deemed unsupported if you include a link to a template that fully supports the content in question.</p>
|
||||
<h4><a class="anchor-link" href="#6-4-2-video-audio-from-unsupported-players"><i class="anchor-icon"></i></a><a class="anchor" name="6-4-2-video-audio-from-unsupported-players"></a>6.4.2 Video/Audio from unsupported players</h4>
|
||||
<ul>
|
||||
<li>If the unsupported widget has an iFrame version, make it into an <code><iframe></code>. If you do that, the IV page will not be generated due to unsupported content, but things will work out of the box if and when we support that widget.</li>
|
||||
<li>If it is <strong>not</strong> possible to represent the widget as an iFrame, but it is possible to get a direct link to the video/audio, use that link to generate a <code><video></code> or <code><audio></code> with the correct <code>src</code> attribute.</li>
|
||||
<li>Otherwise, mark the object with the <a href="/docs#unsupported">@unsupported</a> function.</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p>If an article that is otherwise supported includes a video or an audio track that would cause it to become unsupported, it is acceptable to include a link to the video instead of unsupporting the article. If there’s no other content on the page, it must <strong>not</strong> generate an IV.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#6-4-3-auxiliary-widgets"><i class="anchor-icon"></i></a><a class="anchor" name="6-4-3-auxiliary-widgets"></a>6.4.3 Auxiliary widgets</h4>
|
||||
<p>Some pages include unsupported widgets that are not essential for the understanding of the article. A local news site may show a weather forecast widget on their pages. A business newspaper may show a stock price ticker for the companies covered in the article. Some websites include “And what would you do?” polls at the end of some of their articles to increase user engagement.</p>
|
||||
<p>Such non-essential widgets may be omitted in IV. <strong>Warning:</strong> Make sure that this dynamic auxiliary data doesn't get added to the static IV page.</p>
|
||||
<h4><a class="anchor-link" href="#6-4-4-popular-widgets"><i class="anchor-icon"></i></a><a class="anchor" name="6-4-4-popular-widgets"></a>6.4.4 Popular Widgets</h4>
|
||||
<p>Telegram is likely to support the following popular widgets in the future:</p>
|
||||
<ul>
|
||||
<li>Reddit</li>
|
||||
<li>Spotify</li>
|
||||
<li>Getty images</li>
|
||||
<li>Imgur</li>
|
||||
<li>Coub </li>
|
||||
<li>Soundbank</li>
|
||||
<li>JW Player</li>
|
||||
<li>Twitter Timeline</li>
|
||||
<li>Infogram</li>
|
||||
<li>VK Post</li>
|
||||
<li>WordPress Embed Post</li>
|
||||
<li>Yandex.music</li>
|
||||
</ul>
|
||||
<p>Supporting content from these widgets is <strong>optional</strong> since it will eventually become available through official means.</p>
|
||||
<h4><a class="anchor-link" href="#other"><i class="anchor-icon"></i></a><a class="anchor" name="other"></a>OTHER</h4>
|
||||
<h4><a class="anchor-link" href="#6-5-1-subdomains"><i class="anchor-icon"></i></a><a class="anchor" name="6-5-1-subdomains"></a>6.5.1 Subdomains</h4>
|
||||
<p>Subdomains that present content in a similar way to the higher-level domain must be supported.</p>
|
||||
<p>If a subdomain looks like a separate website, supporting it is <strong>optional</strong>. We <strong>will</strong> accept issue reports if a template generates broken IV pages for any subdomain.</p>
|
||||
<blockquote>
|
||||
<p>Note: We will add the necessary redirects so that Telegram apps will show IVs for articles on the main domain when users share links to the mobile version. It is not necessary to support pages from the mobile version.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor-link" href="#6-5-2-service-areas"><i class="anchor-icon"></i></a><a class="anchor" name="6-5-2-service-areas"></a>6.5.2 Service areas</h4>
|
||||
<p>Non-article pages are strictly <strong>optional</strong>, unless there’s interactive content – in which case they must <strong>not</strong> generate IVs. This includes Terms of Service, Privacy Policies, About sections, Contacts sections and special “Print” versions of articles.</p>
|
||||
<h4><a class="anchor-link" href="#6-5-3-single-media-pages"><i class="anchor-icon"></i></a><a class="anchor" name="6-5-3-single-media-pages"></a>6.5.3 Single-media pages</h4>
|
||||
<p>Support for pages that only contain a single media item (photo, GIF, video, etc.) is <strong>required</strong> if:</p>
|
||||
<ul>
|
||||
<li>The pages are routinely accessible to users through the main navigation of the website and include other data like title, date, etc.</li>
|
||||
<li>Such pages are the main medium for the domain in question (e.g. Pikabu.ru)</li>
|
||||
</ul>
|
||||
<p>If the single-media page contains unsupported media, it must <strong>not</strong> generate an IV. See <a href="#6-4-2-video-audio-from-unsupported-players">6.4.2 Unsupported Video and Audio content</a>.</p>
|
||||
<p>In all other cases, supporting single-media pages is optional.</p>
|
||||
<h4><a class="anchor-link" href="#6-5-4-ancient-lore"><i class="anchor-icon"></i></a><a class="anchor" name="6-5-4-ancient-lore"></a>6.5.4 Ancient lore</h4>
|
||||
<p>Support for news articles from 2015 and earlier is <strong>optional</strong>. We won’t accept issue reports on news articles posted before 2016 if the template correctly handles articles published recently.</p>
|
||||
<h4><a class="anchor-link" href="#6-5-5-quotes"><i class="anchor-icon"></i></a><a class="anchor" name="6-5-5-quotes"></a>6.5.5 Quotes</h4>
|
||||
<p>Quotes must be formatted to match their appearance in the source article, provided it is possible to identify them (and their type) in a reliable way. Line breaks in quotes must be preserved. </p>
|
||||
<p>Quotes support <code><cite></code> tags. If a quote includes an author, it must be formatted accordingly (provided the author can be reliably identified in the source).</p>
|
||||
<hr>
|
||||
<h3><a class="anchor-link" href="#7-checklist-changelog"><i class="anchor-icon"></i></a><a class="anchor" name="7-checklist-changelog"></a>7. Checklist Changelog</h3>
|
||||
<p>We will be updating this document with further clarifications as new issues arise.</p>
|
||||
<h4><a class="anchor-link" href="#mar-20-2019"><i class="anchor-icon"></i></a><a class="anchor" name="mar-20-2019"></a>Mar 20 2019</h4>
|
||||
<blockquote>
|
||||
<p>Don’t miss the <a href="/docs#iv-2-1-march-20">IV 2.1</a> update.</p>
|
||||
</blockquote>
|
||||
<p><strong>Checklist 2.2:</strong></p>
|
||||
<p><strong>Expanded clarifications</strong></p>
|
||||
<ul>
|
||||
<li><a href="#3-2-link-preview">3.2</a>, <strong>Link Preview</strong>: <code>site_name</code> must include the name that users see on the main page of the website; cover photo must be used in preview if metadata is empty or contains site logo; template must generate proper description if metadata is unsuitable</li>
|
||||
<li><a href="#3-3-supported-elements">3.3</a>, <strong>Supported Elements</strong>: Credits must be supported in media captions and quotes</li>
|
||||
<li><a href="#6-1-2-date-and-time">6.1.2</a>, <strong>Date and Time</strong>: Time is optional if the date is set correctly; time zones are optional, unless reliably identifiable in the source</li>
|
||||
<li><a href="#6-2-1-image-quality">6.2.1</a>, <strong>Image Quality</strong>: for issues to be accepted, the difference in image quality must be significant; higher resolution images must be <em>reliably</em> extractable; note </li>
|
||||
<li><a href="#6-3-1-image-links">6.3.1</a>, <strong>Image links</strong>: Must be preserved if they are meaningful</li>
|
||||
<li><a href="#6-3-2-related-articles-and-other-more-links">6.3.2</a>, <strong>Related articles</strong>: Details on when RelatedArticles must not be used; <a href="#6-3-2-1-formatting-related-articles">Formatting guidelines</a></li>
|
||||
<li><a href="#unsupported-content">6.4</a>, <strong>Unsupported content</strong>: Optional to extract content from popular widgets which are scheduled for official Telegram support, even if another template does this</li>
|
||||
<li><a href="#6-4-2-video-audio-from-unsupported-players">6.4.2</a>, <strong>Unsupported Video/Audio</strong>: Possible to include a link to an audio/video instead of unsupporting an otherwise fine article</li>
|
||||
<li><a href="#6-5-1-subdomains">6.5.1</a>, <strong>Subdomains</strong>: Added a note on mobile versions</li>
|
||||
</ul>
|
||||
<p><strong>Added NEW clarifications</strong></p>
|
||||
<ul>
|
||||
<li><a href="#6-2-6-infographics">6.2.6</a>, <strong>Infographics</strong></li>
|
||||
<li><a href="#6-3-7-multi-page-articles">6.3.7</a>, <strong>Multi-page articles</strong></li>
|
||||
<li><a href="#6-4-4-popular-widgets">6.4.3</a>, <strong>Popular Widgets</strong></li>
|
||||
<li><a href="#6-5-2-service-areas">6.5.2</a>, <strong>Service Areas</strong></li>
|
||||
<li><a href="#6-5-3-single-media-pages">6.5.3</a>, <strong>Single-media pages</strong></li>
|
||||
<li><a href="#6-5-4-ancient-lore">6.5.4</a>, <strong>Ancient lore</strong></li>
|
||||
<li><a href="#6-5-5-quotes">6.5.5</a>, <strong>Quotes</strong></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4><a class="anchor-link" href="#feb-6-2019"><i class="anchor-icon"></i></a><a class="anchor" name="feb-6-2019"></a>Feb 6 2019</h4>
|
||||
<p><strong>Checklist 2.1</strong></p>
|
||||
<ul>
|
||||
<li><a href="https://instantview.telegram.org/checklist#6-3-2-related-articles-and-other-more-links"><strong>Related Articles</strong></a> (6.3.2). Considerably expanded guidelines. Now <em>obligatory</em> to put <strong>related</strong> links into the new “Related articles” block, provided they are reliably identifiable in the source. Other links should be removed, see <a href="#6-3-2-related-articles-and-other-more-links">full details</a>.</li>
|
||||
<li><a href="https://instantview.telegram.org/checklist#6-2-2-cover-images"><strong>Cover Images</strong></a> (6.2.2). Added conditions when covers are <em>obligatory</em>.</li>
|
||||
<li><a href="https://instantview.telegram.org/checklist#6-2-3-galleries-and-slideshows"><strong>Galleries and Slideshows</strong></a> (6.2.3). Added detailed explanations on gallery usage.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4><a class="anchor-link" href="#feb-2-2019"><i class="anchor-icon"></i></a><a class="anchor" name="feb-2-2019"></a>Feb 2 2019</h4>
|
||||
<p><strong>Checklist 2.0:</strong> Changes for the Second Instant View Contest</p>
|
||||
<p>The <strong>Clarifications</strong> section has been rewritten to better organize the lore we've accumulated during and after the previous contest. These clarifications have been updated:</p>
|
||||
<ul>
|
||||
<li><a href="#6-4-1-complex-tables">Tables</a> are supported (if they are not too complex).</li>
|
||||
<li>Nested lists (and lists inside tables) are supported.</li>
|
||||
<li><a href="#3-1-general-properties">RTL-support</a> has been introduced and is obligatory for RTL pages.</li>
|
||||
<li><a href="#6-3-2-related-articles-and-other-more-links">Related Articles</a> got a dedicated element (<code>UPDATED 6.02</code>, see guidelines!).</li>
|
||||
<li><a href="#6-3-1-image-links">Image links</a> are supported.</li>
|
||||
<li>Added guidelines on <a href="#6-2-1-image-quality">image quality</a>.</li>
|
||||
<li>Updated guidelines for <a href="#6-2-2-cover-images">cover images</a></li>
|
||||
<li>The new <a href="#6-2-1-image-quality">Icon</a> type requires careful handling.</li>
|
||||
<li><a href="#6-2-5-media-credits">Media credits</a> can be formatted properly (if separable from caption).</li>
|
||||
<li><a href="#6-1-5-kicker">Kickers</a> in titles got a dedicated element for certain cases.</li>
|
||||
<li>Added guidelines for supporting <a href="#6-5-1-subdomains">subdomains</a>.</li>
|
||||
<li>Updated guidelines for <a href="#6-3-6-social-media-links">social media links</a></li>
|
||||
<li>Updated the guidelines for <a href="#3-2-link-preview">site_name</a> in link previews.</li>
|
||||
</ul>
|
||||
<p>Don't forget to check out <a href="https://instantview.telegram.org/docs?v=2.0#what-39s-new-in-2-0">what's new in IV 2.0</a> to know what your templates are now able to support.</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body">
|
||||
<section>
|
||||
<h2>Log In</h2>
|
||||
<p>Log in here to create Instant View templates. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||||
|
||||
<div id="login-alert"></div>
|
||||
<form id="send-form" class="login-form" onsubmit="return requestConfirmation(event);">
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control iv-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><!--
|
||||
--><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="login-form" class="hide">
|
||||
<div class="form-group">
|
||||
<span class="form-control iv-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><!--
|
||||
--><a class="btn btn-link btn-lg login-back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/codemirror/codemirror.js?1"></script>
|
||||
<script src="/js/codemirror/simple.js?1"></script>
|
||||
<script src="/js/codemirror/runmode.js?1"></script>
|
||||
<script src="/js/codemirror-instantview.js?21"></script>
|
||||
<script src="/js/instantview.js?72"></script>
|
||||
|
||||
<script>$(window).resize(updateNavBar);updateNavBar();
|
||||
window.initDevPageNav&&initDevPageNav();
|
||||
$("pre").addClass("cm-s-default").each(function(){CodeMirror.runMode($(this).text(),"instantview",this);});
|
||||
function showLoginError(error_text) {
|
||||
$('#login-alert').html('<div class="alert alert-danger"> <a class="close" data-dismiss="alert" href="#">×</a>' + error_text + ' </div>').show();
|
||||
}
|
||||
function requestConfirmation(event) {
|
||||
event.preventDefault();
|
||||
$('#login-alert').hide();
|
||||
var phone = $('#phone-number').val();
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/request',
|
||||
data: {
|
||||
phone: phone
|
||||
},
|
||||
success: function(result) {
|
||||
$('#phone-number-field').text(phone);
|
||||
$('#send-form').addClass('hide');
|
||||
$('#login-form').removeClass('hide');
|
||||
checkAuth(result.temp_session);
|
||||
},
|
||||
error: function(xhr) {
|
||||
showLoginError(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function cancelConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
$('#login-alert').hide();
|
||||
$('#phone-number-field').text('');
|
||||
$('#send-form').removeClass('hide');
|
||||
$('#login-form').addClass('hide');
|
||||
$('#phone-number').focus();
|
||||
clearTimeout(window.authTimeout);
|
||||
return false;
|
||||
}
|
||||
function checkAuth(temp_session) {
|
||||
clearTimeout(window.authTimeout);
|
||||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/login',
|
||||
data: {
|
||||
temp_session: temp_session
|
||||
},
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
location.reload();
|
||||
} else {
|
||||
checkAuth(temp_session);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
showLoginError(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}, 700);
|
||||
}
|
||||
$('#login-popup-container').on('popup:open', function() {
|
||||
$('#phone-number').focus();
|
||||
});
|
||||
$('#login-popup-container').on('popup:close', function() {
|
||||
cancelConfirmation();
|
||||
if (location.pathname == '/auth') {
|
||||
window.history && history.replaceState(null, null, '/');
|
||||
}
|
||||
});
|
||||
App.unauth = true;
|
||||
$('a[data-need-auth]').click(function(e) {
|
||||
e.preventDefault();
|
||||
openPopup('#login-popup-container');
|
||||
});
|
||||
$('#login-popup-container .login-cancel-btn').click(function(e) {
|
||||
e.preventDefault();
|
||||
closePopup('#login-popup-container');
|
||||
});
|
||||
$('.login-back').click(cancelConfirmation);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
1527
data/instantview.telegram.org/docs.html
Normal file
1527
data/instantview.telegram.org/docs.html
Normal file
File diff suppressed because it is too large
Load diff
1749
data/instantview.telegram.org/js/jquery-ex.js
vendored
Normal file
1749
data/instantview.telegram.org/js/jquery-ex.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
1253
data/instantview.telegram.org/templates.html
Normal file
1253
data/instantview.telegram.org/templates.html
Normal file
File diff suppressed because one or more lines are too long
283
data/telegram.org/api.html
Normal file
283
data/telegram.org/api.html
Normal file
|
@ -0,0 +1,283 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Telegram Messenger</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title" content="Telegram – a new era of messaging">
|
||||
<meta property="og:image" content="https://telegram.org/img/t_logo.png">
|
||||
<meta property="og:site_name" content="Telegram">
|
||||
<meta property="og:description" content="Fast. Secure. Powerful.">
|
||||
|
||||
<meta property="fb:app_id" content="254098051407226">
|
||||
<meta property="vk:app_id" content="3782569">
|
||||
<meta name="apple-itunes-app" content="app-id=686449807">
|
||||
<meta name="telegram:channel" content="@telegram">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div id="fb-root"></div>
|
||||
<div class="tl_page_wrap">
|
||||
<div class="tl_page_head navbar navbar-static-top navbar navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right"><li class="dropdown top_lang_select"><a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#"><i class="dev_top_lang_icon"></i> <b class="minicaret"></b></a>
|
||||
<ul class="dropdown-menu"><li class=""><a href="?setln=en">English</a></li><li class="long "><a href="?setln=id">Bahasa Indonesia</a></li><li class="long "><a href="?setln=ms">Bahasa Melayu</a></li><li class=""><a href="?setln=de">Deutsch</a></li><li class=""><a href="?setln=es">Español</a></li><li class=""><a href="?setln=fr">Français</a></li><li class=""><a href="?setln=it">Italiano</a></li><li class=""><a href="?setln=nl">Nederlands</a></li><li class=""><a href="?setln=uz">O‘zbek</a></li><li class=""><a href="?setln=pl">Polski</a></li><li class="long "><a href="?setln=pt-br">Português (Brasil)</a></li><li class=""><a href="?setln=tr">Türkçe</a></li><li class=""><a href="?setln=be">Беларуская</a></li><li class=""><a href="?setln=ru">Русский</a></li><li class=""><a href="?setln=uk">Українська</a></li><li class=""><a href="?setln=ar">العربية</a></li><li class=""><a href="?setln=fa">فارسی</a></li><li class=""><a href="?setln=ko">한국어</a></li></ul></li><li class="navbar-twitter hidden-xs"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i> Twitter</a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class=""><a href="/">Home</a></li>
|
||||
<li class=""><a href="/faq">FAQ</a></li>
|
||||
<li class=""><a href="/apps">Apps</a></li>
|
||||
<li class="hidden-xs active"><a href="//core.telegram.org/api">API</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/mtproto">Protocol</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix tl_page_container tl_main_page_container">
|
||||
<div class="tl_page">
|
||||
<div class="tl_main_wrap">
|
||||
<div class="tl_main_head">
|
||||
<div class="tl_main_side_blog"><div class="side_blog_wrap">
|
||||
<div class="side_blog">
|
||||
<a href="/blog" class="side_blog_header">Recent News</a>
|
||||
<div class="side_blog_entries">
|
||||
<a href="/blog/video-stickers-better-reactions" class="side_blog_entry">
|
||||
<div class="side_blog_date">Jan 31</div>
|
||||
<div class="side_blog_title">Video Stickers, Better Reactions and More</div>
|
||||
</a><a href="/blog/reactions-spoilers-translations" class="side_blog_entry">
|
||||
<div class="side_blog_date">Dec 30</div>
|
||||
<div class="side_blog_title">Reactions, Spoilers, Translation and QR Codes</div>
|
||||
</a><a href="/blog/protected-content-delete-by-date-and-more" class="side_blog_entry">
|
||||
<div class="side_blog_date">Dec 7</div>
|
||||
<div class="side_blog_title">Protected Content, Delete by Date, Device Management and More</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<div class="tl_main_logo_wrap">
|
||||
<a href="/" class="tl_main_logo">
|
||||
<svg width="128" height="128" class="tl_main_logo">
|
||||
<image class="tl_main_logo" xlink:href="/img/t_logo.svg?1" src="/img/t_logo.png?1" srcset="/img/t_logo_2x.png?1 2x, /img/t_logo.png?1 1x" alt="Telegram logo" width="128" height="128" />
|
||||
</svg>
|
||||
<div class="tl_main_logo_title_image" alt="Telegram"></div>
|
||||
</a>
|
||||
<p class="tl_main_logo_lead">a new era of messaging</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_download_mobile clearfix">
|
||||
<a href="/android" class="tl_main_download_link tl_main_download_link_android" data-track="AppDownload/Android" onclick="trackDlClick(this, event)" onmouseover="mainDemoVideoHover(this, 1)" onmouseout="mainDemoVideoHover(this, 0)">
|
||||
<i class="icon icon-android "></i>Telegram for <b>Android</b>
|
||||
<div class="tl_main_download_image__android"></div>
|
||||
<video class="tl_main_video_player tl_main_video_player__android video__init_retina" muted="" vindex="1" preload="none" data-sources="/img/t_main_Android_demo.mp4,/img/t_main_Android_demo_2x.mp4"></video>
|
||||
</a><a href="/dl/ios" class="tl_main_download_link tl_main_download_link_ios" target="_blank" data-track="AppDownload/iOS" onclick="trackDlClick(this, event)" onmouseover="mainDemoVideoHover(this, 1)" onmouseout="mainDemoVideoHover(this, 0)">
|
||||
<i class="icon icon-ios "></i>Telegram for <b>iPhone</b> / <b>iPad</b>
|
||||
<div class="tl_main_download_image__ios"></div>
|
||||
<video class="tl_main_video_player tl_main_video_player__ios video__init_retina" muted="" vindex="1" preload="none" data-sources="/img/t_main_iOS_demo.mp4,/img/t_main_iOS_demo_2x.mp4"></video>
|
||||
</a>
|
||||
<a href="//desktop.telegram.org/" class="tl_main_download_link tl_main_download_link_tdesktop" data-track="AppDownload/TDesktop" onclick="trackDlClick(this, event)">
|
||||
Telegram for <b>Windows / Mac / Linux</b>
|
||||
</a>
|
||||
|
||||
<a class="tl_main_download_more_btn" href="/apps">Browse more Telegram apps<i class="icon icon-arrow-more"></i></a>
|
||||
</div>
|
||||
<div class="tl_main_download_desktop_section">
|
||||
<h3 class="tl_main_download_desktop_header"></h3>
|
||||
<div class="tl_main_download_desktop_wrap1">
|
||||
<div class="tl_main_download_desktop_wrap">
|
||||
<div class="tl_main_download_desktop clearfix">
|
||||
<div class="tl_main_download_desktop_links clearfix">
|
||||
<a href="//desktop.telegram.org/" class="tl_main_download_desktop_link tl_main_download_link_td" data-track="DesktopDownload/TDesktop" onclick="trackDlClick(this, event)">
|
||||
Telegram for <b>PC / Linux</b>
|
||||
</a><a href="//macos.telegram.org/" class="tl_main_download_desktop_link tl_main_download_link_osx" data-track="DesktopDownload/OSX" onclick="trackDlClick(this, event)">
|
||||
Telegram for <b>macOS</b>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tl_main_recent_news_wrap tl_blog_list_page_wrap">
|
||||
<h3 class="tl_main_recent_news_header">
|
||||
<a href="/blog">Recent News</a>
|
||||
</h3>
|
||||
<div class="tl_main_recent_news_cards clearfix">
|
||||
<a class="dev_blog_card_link_wrap" href="/blog/video-stickers-better-reactions"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001234/e805/Z0pNrCJET-E.104373/a38ce74977bc53b064" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Video Stickers, Better Reactions and More</h4>
|
||||
<div class="dev_blog_card_lead">This update brings easy-to-make video stickers, better reactions with more compact animations and extra emoji, a button to review unseen…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Jan 31, 2022</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/reactions-spoilers-translations"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001488/d35b/oNi_rR0In0o.124097/c74f7d759893b78bfb" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Reactions, Spoilers, Translation and QR Codes</h4>
|
||||
<div class="dev_blog_card_lead">Telegram's 12th update of the year introduces reactions, message translation, themed QR codes, hidden text (spoilers), and more.</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Dec 30, 2021</div>
|
||||
</div></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_body tl_main_cards_animated_wrap">
|
||||
<a name="what-can-you-do-with-Telegram"></a>
|
||||
<h3 class="tl_main_body_header">Why Telegram?</h3>
|
||||
|
||||
<div class="tl_main_cards">
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001484/1/bzi7gr7XRGU.10147/815df2ef527132dd23"><img src="/file/464001897/3/f0Go0rLpEwk.11343.png/dd4eeb46cc5efc0688" /></picture>
|
||||
<h3 class="tl_main_card_header">Simple</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> is so simple you already know how to use it.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001418/1/fabnJFzygPY.17422/bc9dec9fd8bd26e00e"><img src="/file/464001737/4/Fn57W9l3xI0.15286.png/d4b936ecc2c939f4fa" /></picture>
|
||||
<h3 class="tl_main_card_header">Private</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> messages are heavily encrypted and can self-destruct.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001560/1/zLlKYgeDLoA.14496/62085b07461f2d87e4"><img src="/file/464001560/2/n7EACfx4FPY.16465.png/7318c11715aa2ec45b" /></picture>
|
||||
<h3 class="tl_main_card_header">Synced</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> lets you access your chats from multiple devices.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001493/2/hV6uPcaHk_E.17388/dcccb066a7b4fe44ee"><img src="/file/464001132/3/-1qvqKPZsQQ.17975.png/7d57d7159cf4fbe9b2" /></picture>
|
||||
<h3 class="tl_main_card_header">Fast</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> delivers messages faster than any other application.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001803/1/cnqy4KrA5bE.12755/b97780ca9da88b4f84"><img src="/file/464001871/3/Uyg3R7LmX1I.17628.png/911807f65dfb4f8f20" /></picture>
|
||||
<h3 class="tl_main_card_header">Powerful</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> has no limits on the size of your media and chats.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001880/2/VGTLBN3QuYM.10959/8940838e7dddc787d8"><img src="/file/464001880/3/xOpm7ohoHQ0.12690.png/feb1e161b1d3608613" /></picture>
|
||||
<h3 class="tl_main_card_header">Open</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> has an open <a href="https://core.telegram.org/api">API</a> and source code free for everyone.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001453/2/eW_MzRhUGoM.10926/fe1f3bc3dd08367c0a"><img src="/file/464001453/3/mNzXWC3RX0c.15740.png/9ce5fa5f3fb74460b4" /></picture>
|
||||
<h3 class="tl_main_card_header">Secure</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> keeps your messages safe from hacker attacks.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001812/2/kLAK2TPyvUU.12545/f68c1caf735a2ea3db"><img src="/file/464001402/5/eOMSj3GzJXo.13579.png/f3cec6c451d023c109" /></picture>
|
||||
<h3 class="tl_main_card_header">Social</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> groups can hold up to 200,000 members.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tl_main_card_cell">
|
||||
<div class="tl_main_card_wrap">
|
||||
<picture class="dev_page_tgsticker tl_main_card_animated js-tgsticker_image"><div></div><source type="application/x-tgsticker" srcset="/file/464001166/1/01aTJ2ISKeU.21801/24028c7b6d07639794"><img src="/file/464001166/2/FzTl8_M5mQA.19325.png/b6c5dbc0e4f6553805" /></picture>
|
||||
<h3 class="tl_main_card_header">Expressive</h3>
|
||||
<div class="tl_main_card_lead"><b>Telegram</b> lets you completely customize your messenger.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tl_main_noshare clearfix"></div>
|
||||
|
||||
</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="/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
<li><a href="/jobs">Jobs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="/dl/android">Android</a></li>
|
||||
<li><a href="/dl/wp">Windows Phone</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/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="/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/tgsticker.js?24"></script>
|
||||
|
||||
<script>mainInitRetinaVideos();
|
||||
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":3,"unsupportedURL":"\/?notgs=1"});
|
||||
backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
214
data/telegram.org/blog/cryptocontest-ends.html
Normal file
214
data/telegram.org/blog/cryptocontest-ends.html
Normal file
|
@ -0,0 +1,214 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Crypto Contest Ends</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title" content="Crypto Contest Ends">
|
||||
<meta property="og:image" content="https://telegram.org/file/811140321/1/7mGGHI8WYkM/ddcd4f302d7514ee75">
|
||||
<meta property="og:site_name" content="Telegram">
|
||||
<meta property="og:description" content="Another round of the #Telegram $300K crypto contest ends with no winners.">
|
||||
<meta property="article:published_time" content="2015-02-11T19:02:21+00:00"><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:image" content="https://telegram.org/file/811140321/1/7mGGHI8WYkM/ddcd4f302d7514ee75" />
|
||||
<meta property="fb:app_id" content="254098051407226">
|
||||
<meta property="vk:app_id" content="3782569">
|
||||
<meta name="apple-itunes-app" content="app-id=686449807">
|
||||
<meta name="telegram:channel" content="@telegram">
|
||||
<link rel="canonical" href="https://telegram.org/blog/cryptocontest-ends" />
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div id="fb-root"></div>
|
||||
<div class="tl_page_wrap">
|
||||
<div class="tl_page_head navbar navbar-static-top navbar navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right"><li class="dropdown top_lang_select"><a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#"><i class="dev_top_lang_icon"></i> <b class="minicaret"></b></a>
|
||||
<ul class="dropdown-menu"><li class=""><a href="?setln=en">English</a></li><li class="long "><a href="?setln=id">Bahasa Indonesia</a></li><li class="long "><a href="?setln=ms">Bahasa Melayu</a></li><li class=""><a href="?setln=de">Deutsch</a></li><li class=""><a href="?setln=es">Español</a></li><li class=""><a href="?setln=fr">Français</a></li><li class=""><a href="?setln=it">Italiano</a></li><li class=""><a href="?setln=nl">Nederlands</a></li><li class=""><a href="?setln=uz">O‘zbek</a></li><li class=""><a href="?setln=pl">Polski</a></li><li class="long "><a href="?setln=pt-br">Português (Brasil)</a></li><li class=""><a href="?setln=tr">Türkçe</a></li><li class=""><a href="?setln=be">Беларуская</a></li><li class=""><a href="?setln=ru">Русский</a></li><li class=""><a href="?setln=uk">Українська</a></li><li class=""><a href="?setln=ar">العربية</a></li><li class=""><a href="?setln=fa">فارسی</a></li><li class=""><a href="?setln=ko">한국어</a></li></ul></li><li class="navbar-twitter hidden-xs"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i> Twitter</a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class=""><a href="/">Home</a></li>
|
||||
<li class=""><a href="/faq">FAQ</a></li>
|
||||
<li class=""><a href="/apps">Apps</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/api">API</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/mtproto">Protocol</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix tl_page_container ">
|
||||
<div class="tl_page">
|
||||
<div class="tl_contest_page_wrap">
|
||||
<div class="tl_blog_side_blog"><div class="side_blog_wrap">
|
||||
<div class="side_blog">
|
||||
<a href="/blog" class="side_blog_header">Recent News</a>
|
||||
<div class="side_blog_entries">
|
||||
<a href="/blog/video-stickers-better-reactions" class="side_blog_entry">
|
||||
<div class="side_blog_date">Jan 31</div>
|
||||
<div class="side_blog_title">Video Stickers, Better Reactions and More</div>
|
||||
</a><a href="/blog/reactions-spoilers-translations" class="side_blog_entry">
|
||||
<div class="side_blog_date">Dec 30</div>
|
||||
<div class="side_blog_title">Reactions, Spoilers, Translation and QR Codes</div>
|
||||
</a><a href="/blog/protected-content-delete-by-date-and-more" class="side_blog_entry">
|
||||
<div class="side_blog_date">Dec 7</div>
|
||||
<div class="side_blog_title">Protected Content, Delete by Date, Device Management and More</div>
|
||||
</a><a href="/blog/shared-media-scrolling-calendar-join-requests-and-more" class="side_blog_entry">
|
||||
<div class="side_blog_date">Nov 3</div>
|
||||
<div class="side_blog_title">Hyper-Speed Scrolling and Calendar View for Shared Media, Join Requests and More</div>
|
||||
</a><a href="/blog/chat-themes-interactive-emoji-read-receipts" class="side_blog_entry">
|
||||
<div class="side_blog_date">Sep 19</div>
|
||||
<div class="side_blog_title">Chat Themes, Interactive Emoji, Read Receipts in Groups</div>
|
||||
</a><a href="/blog/live-streams-forwarding-next-channel" class="side_blog_entry">
|
||||
<div class="side_blog_date">Aug 31</div>
|
||||
<div class="side_blog_title">Live Streams, Flexible Forwarding and More</div>
|
||||
</a><a href="/blog/video-1000" class="side_blog_entry">
|
||||
<div class="side_blog_date">Jul 30</div>
|
||||
<div class="side_blog_title">Video Calls with up to 1000 Viewers, Video Playback Speed and More</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<div class="dev_page_bread_crumbs"></div>
|
||||
<h1 id="dev_page_title">Crypto Contest Ends</h1>
|
||||
|
||||
<div id="dev_page_content"><div class="blog_side_image_wrap">
|
||||
<img src="/file/811140321/1/7mGGHI8WYkM/ddcd4f302d7514ee75" class="blog_side_image"/>
|
||||
</div>
|
||||
|
||||
<blockquote>
|
||||
<p>This contest is over, but Telegram's <strong>bug bounty program</strong> is always open.</p>
|
||||
<p><strong>Security researchers</strong> are welcome to submit any issues they find in the Telegram <strong>apps</strong> or <strong>protocol</strong> to us at <strong>security@telegram.org</strong>. All submissions which result in a change of code or configuration are eligible for bounties, ranging from <strong>$500</strong> to <a href="https://telegram.org/blog/crowdsourcing-a-more-secure-future"><strong>$100,000</strong></a> or more, depending on the severity of the issue.</p>
|
||||
</blockquote>
|
||||
<p>The current round of our <a href="/blog/cryptocontest">contest to crack Telegram’s encryption</a> ends with no winners. Despite the <strong>$300,000</strong> bounty and the fact that contestants could act as the Telegram server passing info between the users (i.e. use any kinds of active attacks, manipulate traffic etc.) no one could decipher their Secret Chats by the beginning of February. </p>
|
||||
<p>To demonstrate that the contest was fair, we‘ve added a decryption method to the contest bot’s list of commands – <strong>KEY</strong>. <strong>KEY</strong> returns the 256-byte encryption key used in the secret chat, so the task of the contest is now easily achieved. </p>
|
||||
<h4><a class="anchor" name="why-are-contests-important" href="#why-are-contests-important"><i class="anchor-icon"></i></a>Why are contests important?</h4>
|
||||
<p>One of the reasons we trust Telegram’s Secret Chats more than many of their alternatives, is that they're open to scrutiny from the world’s security experts. And while having <a href="/apps">open source apps</a> and a <a href="/api">well documented API</a> makes this kind of scrutiny possible, it is our contests that create incentive for it.</p>
|
||||
<p>That’s why we will definitely launch the next round of our contest later this year. It’ll take us some time to determine whether we can further simplify the task for the contestants. Once ready, we’ll announce the new round on <a href="https://twitter.com/telegram">Twitter</a>. </p>
|
||||
<p>Thank you for the vast amount of advice and comments you sent us during these last few months - your input allows us to improve Telegram with each new build.</p>
|
||||
<div><br></div>
|
||||
|
||||
<p><em>February 11, 2015<br>The Telegram Team</em></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tl_main_share clearfix">
|
||||
<a href="https://t.me/share/url?url=https%3A%2F%2Ftelegram.org%2Fblog%2Fcryptocontest-ends&text=Another%20round%20of%20the%20%23Telegram%20%24300K%20crypto%20contest%20ends%20with%20no%20winners." class="tl_telegram_share_btn" id="tl_telegram_share_btn" data-text="Another round of the #Telegram $300K crypto contest ends with no winners." data-url="https://telegram.org/blog/cryptocontest-ends"><i class="tl_telegram_share_icon"></i><span class="tl_telegram_share_label" target="_blank">Forward</span></a>
|
||||
<a href="https://twitter.com/share" class="tl_twitter_share_btn" id="tl_twitter_share_btn" data-text="Another round of the #Telegram $300K crypto contest ends with no winners." data-url="https://telegram.org/blog/cryptocontest-ends" data-via="Telegram">Tweet <span class="tl_twitter_share_cnt"></span></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tl_main_recent_news_wrap tlb_other_news_wrap tl_blog_list_page_wrap">
|
||||
<h3 class="tl_main_recent_news_header">
|
||||
<a href="/blog">Other News</a>
|
||||
</h3>
|
||||
<div class="tl_main_recent_news_cards clearfix">
|
||||
<a class="dev_blog_card_link_wrap" href="/blog/video-stickers-better-reactions"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001234/e805/Z0pNrCJET-E.104373/a38ce74977bc53b064" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Video Stickers, Better Reactions and More</h4>
|
||||
<div class="dev_blog_card_lead">This update brings easy-to-make video stickers, better reactions with more compact animations and extra emoji, a button to review unseen…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Jan 31, 2022</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/reactions-spoilers-translations"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001488/d35b/oNi_rR0In0o.124097/c74f7d759893b78bfb" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Reactions, Spoilers, Translation and QR Codes</h4>
|
||||
<div class="dev_blog_card_lead">Telegram's 12th update of the year introduces reactions, message translation, themed QR codes, hidden text (spoilers), and more.</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Dec 30, 2021</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/protected-content-delete-by-date-and-more"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001572/2/u_lvhH-CjJ0.99595/a7fca60f9c9e6e193c" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Protected Content, Delete by Date, Device Management and More</h4>
|
||||
<div class="dev_blog_card_lead">Today's update brings tools to prevent others from saving content from groups and channels, the ability to delete messages for specific…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Dec 7, 2021</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/shared-media-scrolling-calendar-join-requests-and-more"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001930/3/yPTwxfusWZg.174275/3f847742c263cdae99" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Hyper-Speed Scrolling and Calendar View for Shared Media, Join Requests, Global Chat Themes on iOS and More</h4>
|
||||
<div class="dev_blog_card_lead">Today's update brings new ways to find memories in shared media with accelerated scrolling…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Nov 3, 2021</div>
|
||||
</div></a>
|
||||
</div>
|
||||
</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="/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
<li><a href="/jobs">Jobs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="/dl/android">Android</a></li>
|
||||
<li><a href="/dl/wp">Windows Phone</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/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="/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>initScrollVideos(true);
|
||||
twitterCustomShareInit();
|
||||
blogSideImageInit();
|
||||
backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
224
data/telegram.org/blog/cryptocontest.html
Normal file
224
data/telegram.org/blog/cryptocontest.html
Normal file
|
@ -0,0 +1,224 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>$300,000 for Cracking Telegram Encryption</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title" content="$300,000 for Cracking Telegram Encryption">
|
||||
<meta property="og:image" content="https://telegram.org/file/811140704/1/2Er4fG4UQLI/7ee52af54b98564554">
|
||||
<meta property="og:site_name" content="Telegram">
|
||||
<meta property="og:description" content="$300,000 for cracking #Telegram encryption">
|
||||
<meta name="twitter:card" content="summary_large_image" /><meta name="twitter:image" content="https://telegram.org/file/811140704/1/2Er4fG4UQLI/7ee52af54b98564554" />
|
||||
<meta property="fb:app_id" content="254098051407226">
|
||||
<meta property="vk:app_id" content="3782569">
|
||||
<meta name="apple-itunes-app" content="app-id=686449807">
|
||||
<meta name="telegram:channel" content="@telegram">
|
||||
<link rel="canonical" href="https://telegram.org/blog/cryptocontest" />
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div id="fb-root"></div>
|
||||
<div class="tl_page_wrap">
|
||||
<div class="tl_page_head navbar navbar-static-top navbar navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right"><li class="dropdown top_lang_select"><a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#"><i class="dev_top_lang_icon"></i> <b class="minicaret"></b></a>
|
||||
<ul class="dropdown-menu"><li class=""><a href="?setln=en">English</a></li><li class="long "><a href="?setln=id">Bahasa Indonesia</a></li><li class="long "><a href="?setln=ms">Bahasa Melayu</a></li><li class=""><a href="?setln=de">Deutsch</a></li><li class=""><a href="?setln=es">Español</a></li><li class=""><a href="?setln=fr">Français</a></li><li class=""><a href="?setln=it">Italiano</a></li><li class=""><a href="?setln=nl">Nederlands</a></li><li class=""><a href="?setln=uz">O‘zbek</a></li><li class=""><a href="?setln=pl">Polski</a></li><li class="long "><a href="?setln=pt-br">Português (Brasil)</a></li><li class=""><a href="?setln=tr">Türkçe</a></li><li class=""><a href="?setln=be">Беларуская</a></li><li class=""><a href="?setln=ru">Русский</a></li><li class=""><a href="?setln=uk">Українська</a></li><li class=""><a href="?setln=ar">العربية</a></li><li class=""><a href="?setln=fa">فارسی</a></li><li class=""><a href="?setln=ko">한국어</a></li></ul></li><li class="navbar-twitter hidden-xs"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i> Twitter</a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class=""><a href="/">Home</a></li>
|
||||
<li class=""><a href="/faq">FAQ</a></li>
|
||||
<li class=""><a href="/apps">Apps</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/api">API</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/mtproto">Protocol</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix tl_page_container ">
|
||||
<div class="tl_page">
|
||||
<div class="tl_contest_page_wrap">
|
||||
<div class="tl_blog_side_blog"><div class="side_blog_wrap">
|
||||
<div class="side_blog">
|
||||
<a href="/blog" class="side_blog_header">Recent News</a>
|
||||
<div class="side_blog_entries">
|
||||
<a href="/blog/video-stickers-better-reactions" class="side_blog_entry">
|
||||
<div class="side_blog_date">Jan 31</div>
|
||||
<div class="side_blog_title">Video Stickers, Better Reactions and More</div>
|
||||
</a><a href="/blog/reactions-spoilers-translations" class="side_blog_entry">
|
||||
<div class="side_blog_date">Dec 30</div>
|
||||
<div class="side_blog_title">Reactions, Spoilers, Translation and QR Codes</div>
|
||||
</a><a href="/blog/protected-content-delete-by-date-and-more" class="side_blog_entry">
|
||||
<div class="side_blog_date">Dec 7</div>
|
||||
<div class="side_blog_title">Protected Content, Delete by Date, Device Management and More</div>
|
||||
</a><a href="/blog/shared-media-scrolling-calendar-join-requests-and-more" class="side_blog_entry">
|
||||
<div class="side_blog_date">Nov 3</div>
|
||||
<div class="side_blog_title">Hyper-Speed Scrolling and Calendar View for Shared Media, Join Requests and More</div>
|
||||
</a><a href="/blog/chat-themes-interactive-emoji-read-receipts" class="side_blog_entry">
|
||||
<div class="side_blog_date">Sep 19</div>
|
||||
<div class="side_blog_title">Chat Themes, Interactive Emoji, Read Receipts in Groups</div>
|
||||
</a><a href="/blog/live-streams-forwarding-next-channel" class="side_blog_entry">
|
||||
<div class="side_blog_date">Aug 31</div>
|
||||
<div class="side_blog_title">Live Streams, Flexible Forwarding and More</div>
|
||||
</a><a href="/blog/video-1000" class="side_blog_entry">
|
||||
<div class="side_blog_date">Jul 30</div>
|
||||
<div class="side_blog_title">Video Calls with up to 1000 Viewers, Video Playback Speed and More</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<div class="dev_page_bread_crumbs"></div>
|
||||
<h1 id="dev_page_title">$300,000 for Cracking Telegram Encryption</h1>
|
||||
|
||||
<div id="dev_page_content"><div class="blog_side_image_wrap">
|
||||
<img src="/file/811140704/1/2Er4fG4UQLI/7ee52af54b98564554" class="blog_side_image"/>
|
||||
</div>
|
||||
|
||||
<blockquote>
|
||||
<p>This contest is <a href="https://telegram.org/blog/cryptocontest-ends">over</a>, but Telegram's <strong>bug bounty program</strong> is always open.</p>
|
||||
<p><strong>Security researchers</strong> are welcome to submit any issues they find in the Telegram <strong>apps</strong> or <strong>protocol</strong> to us at <strong>security@telegram.org</strong>. All submissions which result in a change of code or configuration are eligible for bounties, ranging from <strong>$500</strong> to <a href="https://telegram.org/blog/crowdsourcing-a-more-secure-future"><strong>$100,000</strong></a> or more, depending on the severity of the issue.</p>
|
||||
</blockquote>
|
||||
<p>Earlier this year we had a <a href="/blog/winter-contest-ends">contest</a> to decipher intercepted Telegram messages, that did not produce a winner. Today we announce a new contest with an easier task and a larger prize — <strong>$300,000</strong> for cracking <a href="https://core.telegram.org/api/end-to-end">Telegram's encryption</a>, and this time contestants can not only monitor traffic, but also act as the Telegram server and use active attacks, which vastly increases their capabilities.</p>
|
||||
<p>In this contest you assume the role of a malicious entity in full control of both the communication lines and the Telegram servers themselves.</p>
|
||||
<blockquote>
|
||||
<p><strong>UPD</strong> The current round of the contest is over. <a href="https://telegram.org/blog/cryptocontest-ends"><strong>Go to results »</strong></a></p>
|
||||
</blockquote>
|
||||
<p>Your goal is to extract sensitive data (a secret email address) from a Secret Chat between two users — Nick and Paul. You control the entire process, from chat creation to the sending of each individual message and can perform various active attacks, including MITM, KPA, CPA, replay attacks, etc.</p>
|
||||
<h4><a class="anchor" name="contest-interface" href="#contest-interface"><i class="anchor-icon"></i></a>Contest Interface</h4>
|
||||
<p>In order to facilitate the task, we have created an interface, using which you can act as the server and determine which side gets what data. For more details, please check out the <strong><a href="https://core.telegram.org/contest300K">Cracking Contest Description</a></strong>.</p>
|
||||
<h4><a class="anchor" name="objectives" href="#objectives"><i class="anchor-icon"></i></a>Objectives</h4>
|
||||
<p>In order to confirm that Telegram crypto was indeed cracked and claim your <strong>$300,000</strong>, you‘ll need to send an email to the secret email address that you’ve extracted from one of the messages exchanged by Paul and Nick.</p>
|
||||
<p>Your email must contain:<br>- The entire text of the message that contained the secret email.<br>- Session logs for the successful attempt with your user_id.<br>- A detailed explanation of the attack on the protocol.<br>- Your bank account details to receive the $300,000 prize.</p>
|
||||
<p>There is also a bonus objective with an independent prize of <strong>$100,000</strong>.<br><a href="https://core.telegram.org/contest300K#bonus-objective">See full description for details »</a></p>
|
||||
<h4><a class="anchor" name="end-date" href="#end-date"><i class="anchor-icon"></i></a>End Date</h4>
|
||||
<p>To prove that the competition was fair, we will add a command that returns the keys used for encryption as soon as a winner is announced. In case there is no winner by February 4, 2015, decryption commands will be added at that date.</p>
|
||||
<div>
|
||||
<a href="/file/811140570/1/HuWOtUZqH3Y/ae540ee4fe9e565761" target="_blank"><img src="/file/811140509/1/w7ub14yjRmE/857f9fc6bf21c49411" title="Click for print quality image" class="dev_page_image" /></a><br>
|
||||
</div>
|
||||
|
||||
<p><em>November 4, 2014<br>The Telegram Team</em></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tl_main_share clearfix">
|
||||
<a href="https://t.me/share/url?url=https%3A%2F%2Ftelegram.org%2Fblog%2Fcryptocontest&text=%24300%2C000%20for%20cracking%20%23Telegram%20encryption" class="tl_telegram_share_btn" id="tl_telegram_share_btn" data-text="$300,000 for cracking #Telegram encryption" data-url="https://telegram.org/blog/cryptocontest"><i class="tl_telegram_share_icon"></i><span class="tl_telegram_share_label" target="_blank">Forward</span></a>
|
||||
<a href="https://twitter.com/share" class="tl_twitter_share_btn" id="tl_twitter_share_btn" data-text="$300,000 for cracking #Telegram encryption" data-url="https://telegram.org/blog/cryptocontest" data-via="Telegram">Tweet <span class="tl_twitter_share_cnt"></span></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tl_main_recent_news_wrap tlb_other_news_wrap tl_blog_list_page_wrap">
|
||||
<h3 class="tl_main_recent_news_header">
|
||||
<a href="/blog">Other News</a>
|
||||
</h3>
|
||||
<div class="tl_main_recent_news_cards clearfix">
|
||||
<a class="dev_blog_card_link_wrap" href="/blog/video-stickers-better-reactions"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001234/e805/Z0pNrCJET-E.104373/a38ce74977bc53b064" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Video Stickers, Better Reactions and More</h4>
|
||||
<div class="dev_blog_card_lead">This update brings easy-to-make video stickers, better reactions with more compact animations and extra emoji, a button to review unseen…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Jan 31, 2022</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/reactions-spoilers-translations"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001488/d35b/oNi_rR0In0o.124097/c74f7d759893b78bfb" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Reactions, Spoilers, Translation and QR Codes</h4>
|
||||
<div class="dev_blog_card_lead">Telegram's 12th update of the year introduces reactions, message translation, themed QR codes, hidden text (spoilers), and more.</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Dec 30, 2021</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/protected-content-delete-by-date-and-more"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001572/2/u_lvhH-CjJ0.99595/a7fca60f9c9e6e193c" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Protected Content, Delete by Date, Device Management and More</h4>
|
||||
<div class="dev_blog_card_lead">Today's update brings tools to prevent others from saving content from groups and channels, the ability to delete messages for specific…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Dec 7, 2021</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/shared-media-scrolling-calendar-join-requests-and-more"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001930/3/yPTwxfusWZg.174275/3f847742c263cdae99" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Hyper-Speed Scrolling and Calendar View for Shared Media, Join Requests, Global Chat Themes on iOS and More</h4>
|
||||
<div class="dev_blog_card_lead">Today's update brings new ways to find memories in shared media with accelerated scrolling…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Nov 3, 2021</div>
|
||||
</div></a>
|
||||
</div>
|
||||
</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="/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
<li><a href="/jobs">Jobs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="/dl/android">Android</a></li>
|
||||
<li><a href="/dl/wp">Windows Phone</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/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="/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>initScrollVideos(true);
|
||||
twitterCustomShareInit();
|
||||
blogSideImageInit();
|
||||
backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
224
data/telegram.org/blog/winter-contest-ends.html
Normal file
224
data/telegram.org/blog/winter-contest-ends.html
Normal file
|
@ -0,0 +1,224 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Winter Contest Ends</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title" content="Winter Contest Ends">
|
||||
<meta property="og:image" content="https://telegram.org/img/tl_card_brick.png">
|
||||
<meta property="og:site_name" content="Telegram">
|
||||
<meta property="og:description" content="Our $200,000 contest ends, but there'll be a bigger one">
|
||||
<meta name="twitter:card" content="summary_large_image" /><meta name="twitter:image" content="https://telegram.org/img/tl_card_brick.png" />
|
||||
<meta property="fb:app_id" content="254098051407226">
|
||||
<meta property="vk:app_id" content="3782569">
|
||||
<meta name="apple-itunes-app" content="app-id=686449807">
|
||||
<meta name="telegram:channel" content="@telegram">
|
||||
<link rel="canonical" href="https://telegram.org/blog/winter-contest-ends" />
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div id="fb-root"></div>
|
||||
<div class="tl_page_wrap">
|
||||
<div class="tl_page_head navbar navbar-static-top navbar navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right"><li class="dropdown top_lang_select"><a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#"><i class="dev_top_lang_icon"></i> <b class="minicaret"></b></a>
|
||||
<ul class="dropdown-menu"><li class=""><a href="?setln=en">English</a></li><li class="long "><a href="?setln=id">Bahasa Indonesia</a></li><li class="long "><a href="?setln=ms">Bahasa Melayu</a></li><li class=""><a href="?setln=de">Deutsch</a></li><li class=""><a href="?setln=es">Español</a></li><li class=""><a href="?setln=fr">Français</a></li><li class=""><a href="?setln=it">Italiano</a></li><li class=""><a href="?setln=nl">Nederlands</a></li><li class=""><a href="?setln=uz">O‘zbek</a></li><li class=""><a href="?setln=pl">Polski</a></li><li class="long "><a href="?setln=pt-br">Português (Brasil)</a></li><li class=""><a href="?setln=tr">Türkçe</a></li><li class=""><a href="?setln=be">Беларуская</a></li><li class=""><a href="?setln=ru">Русский</a></li><li class=""><a href="?setln=uk">Українська</a></li><li class=""><a href="?setln=ar">العربية</a></li><li class=""><a href="?setln=fa">فارسی</a></li><li class=""><a href="?setln=ko">한국어</a></li></ul></li><li class="navbar-twitter hidden-xs"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i> Twitter</a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class=""><a href="/">Home</a></li>
|
||||
<li class=""><a href="/faq">FAQ</a></li>
|
||||
<li class=""><a href="/apps">Apps</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/api">API</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/mtproto">Protocol</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix tl_page_container ">
|
||||
<div class="tl_page">
|
||||
<div class="tl_contest_page_wrap">
|
||||
<div class="tl_blog_side_blog"><div class="side_blog_wrap">
|
||||
<div class="side_blog">
|
||||
<a href="/blog" class="side_blog_header">Recent News</a>
|
||||
<div class="side_blog_entries">
|
||||
<a href="/blog/video-stickers-better-reactions" class="side_blog_entry">
|
||||
<div class="side_blog_date">Jan 31</div>
|
||||
<div class="side_blog_title">Video Stickers, Better Reactions and More</div>
|
||||
</a><a href="/blog/reactions-spoilers-translations" class="side_blog_entry">
|
||||
<div class="side_blog_date">Dec 30</div>
|
||||
<div class="side_blog_title">Reactions, Spoilers, Translation and QR Codes</div>
|
||||
</a><a href="/blog/protected-content-delete-by-date-and-more" class="side_blog_entry">
|
||||
<div class="side_blog_date">Dec 7</div>
|
||||
<div class="side_blog_title">Protected Content, Delete by Date, Device Management and More</div>
|
||||
</a><a href="/blog/shared-media-scrolling-calendar-join-requests-and-more" class="side_blog_entry">
|
||||
<div class="side_blog_date">Nov 3</div>
|
||||
<div class="side_blog_title">Hyper-Speed Scrolling and Calendar View for Shared Media, Join Requests and More</div>
|
||||
</a><a href="/blog/chat-themes-interactive-emoji-read-receipts" class="side_blog_entry">
|
||||
<div class="side_blog_date">Sep 19</div>
|
||||
<div class="side_blog_title">Chat Themes, Interactive Emoji, Read Receipts in Groups</div>
|
||||
</a><a href="/blog/live-streams-forwarding-next-channel" class="side_blog_entry">
|
||||
<div class="side_blog_date">Aug 31</div>
|
||||
<div class="side_blog_title">Live Streams, Flexible Forwarding and More</div>
|
||||
</a><a href="/blog/video-1000" class="side_blog_entry">
|
||||
<div class="side_blog_date">Jul 30</div>
|
||||
<div class="side_blog_title">Video Calls with up to 1000 Viewers, Video Playback Speed and More</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<div class="dev_page_bread_crumbs"></div>
|
||||
<h1 id="dev_page_title">Winter Contest Ends</h1>
|
||||
|
||||
<div id="dev_page_content"><div class="blog_side_image_wrap">
|
||||
<img src="/img/tl_card_brick.png" class="blog_side_image"/>
|
||||
</div>
|
||||
|
||||
<p>The <a href="/crypto_contest">contest</a> to decrypt intercepted traffic of Telegram produced no winners as of March, 1. As promised, today we are publishing the encryption keys necessary to decrypt the traffic.</p>
|
||||
<pre><code>SECRET CHAT:
|
||||
2e 20 9f 9d 99 c9 fc 8a 3d dc d5 6d 21 26 46 c9 d8 1a 26 f8 ec f7 f2 7e c9 28 65 95 52 dc 1c 21 bb 95 60 b1 d8 5f 94 5f 43 8d 7e 8e 96 fa e6 89 91 a9 90 39 8b df ef 50 22 06 f8 52 80 e6 50 20 62 71 c4 b2 f5 f8 88 4d 83 ae 66 ec fe cd ec 92 26 69 72 5e 85 f9 ea 58 b0 d6 9f 5b 1e b7 68 15 76 5b 12 88 3d 17 f6 62 49 8b 1f 9d 7a 11 94 67 8d d1 ee d6 55 50 d4 51 c0 5e a5 9a 1a eb 8a 8c 7c 44 1b db 96 5a fd cd 85 47 5b f0 8a 1e b8 d6 74 a4 c7 e7 af 19 3f a6 0a ff e5 3b 9f c4 fc ea 59 af f6 72 60 16 6f 40 af 58 95 98 06 0c 22 00 d7 3d be 96 19 56 54 06 74 d2 6b 38 8d c2 a0 97 62 6d e4 10 99 b9 cf d5 0f 56 9d d3 bb 49 86 d5 15 23 86 03 c3 52 67 82 77 5e 53 e9 ba e8 63 58 ed 55 b0 ef ec 69 65 a0 e5 1d e4 b6 6e 5a 3d 5f 9b 9a 20 67 f5 d5 c4 d7 60 14 c6 56 2d 12 1b 0a
|
||||
|
||||
DC 1:
|
||||
5e a6 0d a2 9c 90 8e f4 36 d5 48 fe 76 a3 11 f6 66 13 4e 94 bb 11 32 d6 cf fd b0 2f 7b 77 bb 01 d7 42 a4 22 d3 04 e7 d2 fc 5b 32 48 d6 71 eb 18 51 19 99 76 49 46 1a 43 d8 cf cd 8a e2 fe 42 2c 36 d7 05 8b 0c 5e 00 8a 5a bc 35 4f ec 75 b4 10 e1 84 bb cb af ec e3 d6 fd 59 fd 01 83 ef 8b dd 13 50 24 5b 80 09 75 7e c3 c3 08 ba 59 f4 ec c0 87 71 ba 9f 45 8c 15 df 2a cd a5 bc 81 a9 20 fe 42 e2 65 78 02 77 80 11 0e e4 67 f3 40 cf 72 be fc c2 8d 0b ad d9 9e 6e 1a c3 03 71 39 be b9 dd df 7c 63 a6 27 45 ee 8e 00 5e 12 51 51 6c 6a 10 a6 73 3a 10 5d d8 f3 b6 c5 70 fe 91 c2 64 4b d0 74 2d 47 e7 4e 00 cf d5 d3 65 15 2b 48 9c 75 eb a8 96 aa ce 09 49 9b 5e ea 76 06 19 f3 b3 e7 7b af df 5d 68 5e 80 10 48 ec 00 35 90 d3 e5 96 c6 59 a7 44 d8 20 a8 a2 b6 93 64 4f 98 44 23 8e fd
|
||||
|
||||
DC 2:
|
||||
63 ab 0d b7 98 e1 78 ef 5f 05 9c e4 84 3b 53 b3 4f 6e d1 d3 8a 6d 59 19 32 26 73 60 c2 e2 fe ee d3 2d 74 35 18 08 ba 04 87 cf 7f d9 87 4b 64 d5 80 06 05 f5 01 56 6d c2 66 7e 2d ef f6 a3 82 3d 31 0e ed 6b 46 4c 11 d5 ec 0f 7b be 64 79 26 87 a9 d3 34 27 d8 8b aa b5 36 8b 95 2f a7 c7 2a a6 bf a9 44 51 c5 c8 06 04 78 d2 64 87 e8 13 f3 f0 9b c9 8c bc 29 01 55 a2 80 e1 e8 4e 74 53 7e 05 22 1b 51 3d 1a c5 61 b3 04 98 c2 2f 71 e3 76 2e 31 bd d8 55 15 4b 3e 34 ed 84 b2 56 d0 bd c6 9a 1a 2a 4b 2f fc 68 8e c4 e3 81 23 6f 07 3f 3a 6b 56 f6 ee 31 e6 aa 0d 49 36 6a 51 79 25 bf b6 40 64 8c e2 14 c8 70 37 cb 70 ad a1 83 ed 1f b9 78 b9 93 0c 7c 0c ed 6d c6 aa c2 d0 da 51 ce ae cf 99 8f 65 eb 5a 42 e6 ff 4a 51 a9 97 da 6e ac e5 63 c1 05 a9 fe d0 da da 43 e3 50 14 fc b1 46 ea
|
||||
|
||||
DC 3:
|
||||
16 0c be 58 e1 74 74 f5 f9 8f f8 82 71 ed 57 84 20 49 bd da 17 0e 00 a8 a4 24 71 79 86 1f ef 3e 41 70 31 de c9 c2 19 23 37 fd ec 2f fa 9e 89 29 4f a2 af 69 cf 24 3a 6e 44 5d 89 d2 8b 50 45 26 3c ff e3 d4 4d 7d b4 88 54 8c 87 09 c5 ac 09 5c e6 62 43 73 b5 3e 96 ea f3 62 76 58 1b fd 8a 36 45 65 4a fc 7b ee 7b 13 06 e5 2f 9d 8f cb b9 a7 6f 76 00 f4 9a ab 50 fb 91 e0 2b ce 28 db 95 02 a0 62 33 bb e7 41 13 7b 2c 7e ba 7c d5 87 12 33 de 44 8d 4b 76 af 59 cc 80 42 02 69 56 90 8a 5d 95 0b 3e 8b ef 65 17 fc 79 62 b4 69 1b 21 aa 89 5b 22 f6 33 67 80 d0 22 f7 76 f2 6c 4b af 69 07 0f 2c 3a af 67 6b 74 c0 7f 8c 83 85 85 8e 47 b7 55 42 c1 3d 70 33 9d 87 60 7c f6 8b 99 96 1d af 82 b8 d2 37 c7 a3 fc ac 25 fe 77 f0 29 4d 82 a4 15 89 cb c2 27 ae 4f 16 d6 b8 4c cb de 2a 59 d7
|
||||
|
||||
DC 4:
|
||||
b4 aa dc bc 8e e5 6a f4 9f 7b 65 de cd 1c 28 3d f1 58 f6 03 e1 34 9d 63 54 b0 15 a7 b8 a6 45 4e de dd cd e4 1a 54 d7 9b fe 46 05 c7 62 19 d9 7a c0 00 6b e6 72 83 3d 15 00 99 d9 9b 97 c0 4a a8 85 e7 85 3c 3f a4 2f 6a 57 0b 3c b0 2a 97 65 6f bf 4e 0d 93 f7 55 3b 3a 39 a1 1a 0f db 9d 7a df 5b c6 9b 45 9a ea e4 27 92 8c c3 d2 75 53 66 e4 1c 29 f1 14 fc fd e8 c0 c8 12 47 ee 5a 92 f1 bf 1f 6f 8e 95 a5 90 81 37 d6 5d bd 5c 4c 41 61 29 6e 4f 7e 83 e1 b9 ef 00 00 de 25 33 f4 df 1a 94 f0 e7 1c fd 35 c0 75 65 88 ef c5 aa b5 c9 7d 0e e4 6d b7 9f 10 ca 4b f0 c9 c7 2d 30 20 e9 e1 b8 03 de a2 60 4e 3f 59 dc 36 a2 50 f8 52 5e 32 c8 c1 84 87 84 d6 54 42 dd ab b4 1b d6 fe e4 29 d3 70 4e 3e 48 ba 86 80 39 b7 94 3c 31 18 f8 bd 7b d8 89 6b 32 77 5c 89 4a a1 ca 18 ba 1e 6a 87 6a
|
||||
|
||||
DC 5:
|
||||
4c 76 1f 87 08 53 54 cb 12 fd 01 bd bd e6 42 d2 6b 47 4b d8 0b 6a eb 9f 24 8b ee 77 1f 8b a5 3f f5 f1 c7 80 05 80 2c 20 29 7c 3c 14 59 2b 5e 7f 69 58 3b 7e 07 37 25 67 3d 18 ac f2 28 43 63 8f a5 41 c1 ba 53 dd eb 3d 36 0d 7b d3 14 f7 f9 83 aa 0c 81 20 89 e0 c7 d7 e9 ef 11 aa 43 ca 54 2a 9f 69 0f 1d 99 ef f6 55 14 71 6d a3 1e c2 75 fb 1c 88 f7 c0 21 64 5d 34 db 3f a4 e7 a9 f0 af 9f 9d 14 a4 3a 49 7c 50 e6 45 24 3a cb a4 a6 2a 35 dd 6c 9c ce 87 24 d1 ff 13 19 15 43 89 a4 8c 39 66 a2 22 df 4e 94 76 e1 89 b5 03 7a 2b 34 e7 39 09 f9 22 5d cb 36 4e ce 37 e7 cf 7d ab b5 8b db 81 c6 c8 f4 c7 7c 3a 22 59 fc e6 32 19 aa 46 d2 95 96 61 61 e6 cc 57 f0 0e 87 5c 7d 5b 87 e7 64 28 c6 03 38 3c 0b a6 5e 4a 21 a3 67 af e5 b3 88 cc 9d 03 98 33 ac c6 87 b4 b6 82 42 c4 41 33 39</code></pre>
|
||||
<p><br/></p>
|
||||
|
||||
<p>We would like to use this opportunity to thank the users ABC, <a href="https://twitter.com/defusesec">@DefuseSec</a>, <a href="https://twitter.com/hackappcom">@hackappcom</a>, <a href="https://twitter.com/morj">@Morj</a> and <a href="https://telegram.org/blog/crowdsourcing-a-more-secure-future">x7mz</a> who helped us further improve security of the client apps and expand <a href="https://core.telegram.org/mtproto/security_guidelines">guidelines</a> for third-party developers.</p>
|
||||
<p>Since we have no winner in the current challenge, we are going to launch a new competition, with an easier task, but a larger prize. The new competition will allow participants not only to intercept traffic, but to manipulate it as well. We are now building the tools that will enable the contestants to perform all kinds of active attacks. Once the platform is ready later this month, we will announce the new contest on Twitter. Please follow us at <a href="https://twitter.com/telegram">@telegram</a>!</p>
|
||||
<p>March 2, 2014<br><em>The Telegram Team</em></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tl_main_share clearfix">
|
||||
<a href="https://t.me/share/url?url=https%3A%2F%2Ftelegram.org%2Fblog%2Fwinter-contest-ends&text=Our%20%24200%2C000%20contest%20ends%2C%20but%20there%27ll%20be%20a%20bigger%20one" class="tl_telegram_share_btn" id="tl_telegram_share_btn" data-text="Our $200,000 contest ends, but there'll be a bigger one" data-url="https://telegram.org/blog/winter-contest-ends"><i class="tl_telegram_share_icon"></i><span class="tl_telegram_share_label" target="_blank">Forward</span></a>
|
||||
<a href="https://twitter.com/share" class="tl_twitter_share_btn" id="tl_twitter_share_btn" data-text="Our $200,000 contest ends, but there'll be a bigger one" data-url="https://telegram.org/blog/winter-contest-ends" data-via="Telegram">Tweet <span class="tl_twitter_share_cnt"></span></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tl_main_recent_news_wrap tlb_other_news_wrap tl_blog_list_page_wrap">
|
||||
<h3 class="tl_main_recent_news_header">
|
||||
<a href="/blog">Other News</a>
|
||||
</h3>
|
||||
<div class="tl_main_recent_news_cards clearfix">
|
||||
<a class="dev_blog_card_link_wrap" href="/blog/video-stickers-better-reactions"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001234/e805/Z0pNrCJET-E.104373/a38ce74977bc53b064" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Video Stickers, Better Reactions and More</h4>
|
||||
<div class="dev_blog_card_lead">This update brings easy-to-make video stickers, better reactions with more compact animations and extra emoji, a button to review unseen…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Jan 31, 2022</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/reactions-spoilers-translations"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001488/d35b/oNi_rR0In0o.124097/c74f7d759893b78bfb" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Reactions, Spoilers, Translation and QR Codes</h4>
|
||||
<div class="dev_blog_card_lead">Telegram's 12th update of the year introduces reactions, message translation, themed QR codes, hidden text (spoilers), and more.</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Dec 30, 2021</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/protected-content-delete-by-date-and-more"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001572/2/u_lvhH-CjJ0.99595/a7fca60f9c9e6e193c" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Protected Content, Delete by Date, Device Management and More</h4>
|
||||
<div class="dev_blog_card_lead">Today's update brings tools to prevent others from saving content from groups and channels, the ability to delete messages for specific…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Dec 7, 2021</div>
|
||||
</div></a><a class="dev_blog_card_link_wrap" href="/blog/shared-media-scrolling-calendar-join-requests-and-more"><div class="dev_blog_card_wrap">
|
||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001930/3/yPTwxfusWZg.174275/3f847742c263cdae99" />
|
||||
<div class="dev_blog_card_alltext_wrap">
|
||||
<h4 class="dev_blog_card_title">Hyper-Speed Scrolling and Calendar View for Shared Media, Join Requests, Global Chat Themes on iOS and More</h4>
|
||||
<div class="dev_blog_card_lead">Today's update brings new ways to find memories in shared media with accelerated scrolling…</div>
|
||||
</div>
|
||||
<div class="dev_blog_card_date">Nov 3, 2021</div>
|
||||
</div></a>
|
||||
</div>
|
||||
</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="/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
<li><a href="/jobs">Jobs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="/dl/android">Android</a></li>
|
||||
<li><a href="/dl/wp">Windows Phone</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/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="/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>initScrollVideos(true);
|
||||
twitterCustomShareInit();
|
||||
blogSideImageInit();
|
||||
backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
705
data/telegram.org/faq.html
Normal file
705
data/telegram.org/faq.html
Normal file
|
@ -0,0 +1,705 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Telegram FAQ</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title" content="Telegram FAQ">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:site_name" content="Telegram">
|
||||
<meta property="og:description" content="This FAQ provides answers to basic questions about Telegram.
|
||||
Check out our Advanced FAQ for more technical information.…">
|
||||
|
||||
<meta property="fb:app_id" content="254098051407226">
|
||||
<meta property="vk:app_id" content="3782569">
|
||||
<meta name="apple-itunes-app" content="app-id=686449807">
|
||||
<meta name="telegram:channel" content="@telegram">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div id="fb-root"></div>
|
||||
<div class="tl_page_wrap">
|
||||
<div class="tl_page_head navbar navbar-static-top navbar navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right"><li class="dropdown top_lang_select"><a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#"><i class="dev_top_lang_icon"></i> <b class="minicaret"></b></a>
|
||||
<ul class="dropdown-menu"><li class=""><a href="?setln=en">English</a></li><li class="long "><a href="?setln=id">Bahasa Indonesia</a></li><li class="long "><a href="?setln=ms">Bahasa Melayu</a></li><li class=""><a href="?setln=de">Deutsch</a></li><li class=""><a href="?setln=es">Español</a></li><li class=""><a href="?setln=fr">Français</a></li><li class=""><a href="?setln=it">Italiano</a></li><li class=""><a href="?setln=nl">Nederlands</a></li><li class=""><a href="?setln=uz">O‘zbek</a></li><li class=""><a href="?setln=pl">Polski</a></li><li class="long "><a href="?setln=pt-br">Português (Brasil)</a></li><li class=""><a href="?setln=tr">Türkçe</a></li><li class=""><a href="?setln=be">Беларуская</a></li><li class=""><a href="?setln=ru">Русский</a></li><li class=""><a href="?setln=uk">Українська</a></li><li class=""><a href="?setln=ar">العربية</a></li><li class=""><a href="?setln=fa">فارسی</a></li><li class=""><a href="?setln=ko">한국어</a></li></ul></li><li class="navbar-twitter hidden-xs"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i> Twitter</a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class=""><a href="/">Home</a></li>
|
||||
<li class="active"><a href="/faq">FAQ</a></li>
|
||||
<li class=""><a href="/apps">Apps</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/api">API</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/mtproto">Protocol</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix tl_page_container ">
|
||||
<div class="tl_page">
|
||||
<div id="dev_page_content_wrap" class=" dev_faq_page">
|
||||
<div class="dev_page_bread_crumbs"></div>
|
||||
<h1 id="dev_page_title">Telegram FAQ</h1>
|
||||
|
||||
<div id="dev_page_content"><blockquote>
|
||||
<p>This FAQ provides answers to basic questions about Telegram.<br>Check out our <a href="https://core.telegram.org/techfaq">Advanced FAQ</a> for more technical information.</p>
|
||||
</blockquote>
|
||||
<p><div class="dev_page_nav_wrap"></p>
|
||||
<p><a href="#general-questions"><strong>General</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-what-is-telegram-what-do-i-do-here">What is Telegram?</a></li>
|
||||
<li><a href="#q-who-is-telegram-for">Who is it for?</a></li>
|
||||
<li><a href="#q-how-is-telegram-different-from-whatsapp">How is it different from WhatsApp?</a></li>
|
||||
<li><a href="#q-how-old-is-telegram">How old is Telegram?</a></li>
|
||||
<li><a href="#q-which-devices-can-i-use">Is it available on my device?</a></li>
|
||||
<li><a href="#q-who-are-the-people-behind-telegram">Who are the people behind Telegram?</a></li>
|
||||
<li><a href="#q-where-is-telegram-based">Where is Telegram based?</a></li>
|
||||
<li><a href="#q-how-are-you-going-to-make-money-out-of-this">How do you make money?</a></li>
|
||||
<li><a href="#q-what-are-your-thoughts-on-internet-privacy">What are your thoughts on internet privacy?</a></li>
|
||||
<li><a href="#q-what-about-gdpr">What about GDPR?</a></li>
|
||||
<li><a href="#q-there-39s-illegal-content-on-telegram-how-do-i-take-it-down">Do you process takedown requests?</a></li>
|
||||
<li><a href="#q-do-you-process-data-requests">Do you process data requests?</a></li>
|
||||
</ul>
|
||||
<p><a href="#telegram-basics"><strong>Telegram Basics</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-who-can-i-write-to">Who can I message?</a></li>
|
||||
<li><a href="#q-who-can-contact-me">Who can message me?</a></li>
|
||||
<li><a href="#q-how-do-i-know-who-in-my-contacts-has-telegram">Who has Telegram?</a></li>
|
||||
<li><a href="#q-how-do-i-invite-my-friends">Inviting friends</a></li>
|
||||
<li><a href="#q-what-do-the-check-marks-mean">What do the check marks mean in Telegram?</a></li>
|
||||
<li><a href="#q-can-i-hide-my-last-seen-time">Can I hide my 'last seen'?</a></li>
|
||||
<li><a href="#q-who-can-see-me-39online-39">Who can see me 'online'?</a></li>
|
||||
<li><a href="#q-what-is-people-nearby">What is 'People Nearby'?</a></li>
|
||||
<li><a href="#q-can-i-delete-my-messages">Can I delete my messages?</a></li>
|
||||
<li><a href="#q-can-i-make-calls-via-telegram">Voice, Video and Group calls</a></li>
|
||||
<li><a href="#q-how-can-i-use-emoticons">Using emoticons</a></li>
|
||||
</ul>
|
||||
<p><a href="#groups-and-channels"><strong>Groups and Channels</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-what-makes-telegram-groups-cool">What makes Telegram groups cool?</a></li>
|
||||
<li><a href="#q-what-39s-the-difference-between-groups-and-channels">How are channels and groups different?</a></li>
|
||||
<li><a href="#q-how-do-i-create-a-group">Creating a group</a></li>
|
||||
<li><a href="#q-how-do-i-add-more-members-what-39s-an-invite-link">Adding members and using Invite Links</a></li>
|
||||
</ul>
|
||||
<p><a href="#usernames-and-t-me"><strong>Usernames and t.me</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-what-are-usernames-how-do-i-get-one">What are usernames? How do I get one?</a></li>
|
||||
<li><a href="#q-how-does-t-me-work">How does t.me work?</a></li>
|
||||
<li><a href="#q-what-can-i-use-as-my-username">What can I use as my username?</a></li>
|
||||
<li><a href="#q-do-i-need-a-username">Do I need a username?</a></li>
|
||||
<li><a href="#q-if-someone-finds-me-by-username-messages-and-i-reply-will-they">Will people know my number?</a></li>
|
||||
<li><a href="#q-how-do-i-delete-my-username">How do I delete my username?</a></li>
|
||||
<li><a href="#q-what-do-i-do-if-my-username-is-taken">What do I do if my username is taken?</a></li>
|
||||
<li><a href="#q-what-if-someone-is-pretending-to-be-me">What if someone is pretending to be me?</a></li>
|
||||
</ul>
|
||||
<p><a href="#security"><strong>Security</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-how-secure-is-telegram">How secure is Telegram?</a></li>
|
||||
<li><a href="#q-so-how-do-you-encrypt-data">How do you encrypt data?</a></li>
|
||||
<li><a href="#q-why-should-i-trust-you">Why should I trust you?</a></li>
|
||||
<li><a href="#q-do-i-need-to-trust-telegram-for-this-to-be-secure">Do I need to trust Telegram for it to be secure?</a></li>
|
||||
<li><a href="#q-what-if-my-hacker-friend-says-they-could-decipher-telegram-mes">What if my hacker friend doubts you?</a></li>
|
||||
<li><a href="#q-can-telegram-protect-me-against-everything">Can Telegram protect me against everything?</a></li>
|
||||
<li><a href="#q-how-does-2-step-verification-work">How does 2-Step Verification work?</a></li>
|
||||
</ul>
|
||||
<p><a href="#secret-chats"><strong>Secret Chats</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-how-are-secret-chats-different">What is a <em>secret chat?</em></a></li>
|
||||
<li><a href="#q-how-do-i-start-a-secret-chat">Starting a secret chat</a></li>
|
||||
<li><a href="#q-how-do-self-destructing-messages-work">Using the self-destruct timer</a></li>
|
||||
<li><a href="#q-can-i-be-certain-that-my-conversation-partner-doesn-39t-take-a">Screenshot alerts</a></li>
|
||||
<li><a href="#q-what-is-this-39encryption-key-39-thing">Encryption key picture</a></li>
|
||||
<li><a href="#q-why-not-just-make-all-chats-39secret-39">Why not make all chats 'secret'?</a></li>
|
||||
</ul>
|
||||
<p><a href="#your-account"><strong>Your Account</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-who-can-see-my-phone-number">Who can see my phone number?</a></li>
|
||||
<li><a href="#q-i-have-a-new-phone-number-what-do-i-do">I have a new phone number, what do I do?</a></li>
|
||||
<li><a href="#q-how-do-i-log-out">Log out of Telegram</a></li>
|
||||
<li><a href="#q-how-do-i-change-my-phone-number">Change your phone number</a></li>
|
||||
<li><a href="#q-how-do-i-delete-my-account">Delete your Telegram account</a></li>
|
||||
<li><a href="#q-how-does-account-self-destruction-work">How does account self-destruction work?</a></li>
|
||||
<li><a href="#q-my-phone-was-stolen-what-do-i-do">My phone was stolen. What do I do?</a></li>
|
||||
</ul>
|
||||
<p><a href="#bots"><strong>Bots</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-how-do-i-create-a-bot">How do I create a bot?</a></li>
|
||||
<li><a href="#q-a-bot-is-sending-me-messages-how-do-i-make-it-stop">How do I get rid of a bot?</a></li>
|
||||
<li><a href="#q-are-bots-safe">Are bots safe?</a></li>
|
||||
<li><a href="#q-where-can-i-find-more-bots">Where can I get more bots?</a></li>
|
||||
</ul>
|
||||
<p><a href="#deeper-questions"><strong>Deeper Questions</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#q-can-i-get-telegram-39s-server-side-code">Can I get Telegram's server-side code?</a></li>
|
||||
<li><a href="#q-can-i-run-telegram-using-my-own-server">Can I use my own server?</a></li>
|
||||
<li><a href="#q-can-i-use-the-telegram-api">Can I use the Telegram API?</a></li>
|
||||
<li><a href="#q-do-you-have-a-privacy-policy">Do you have a Privacy Policy?</a></li>
|
||||
<li><a href="#q-what-does-the-ios-privacy-sheet-mean">What does the iOS privacy sheet mean?</a></li>
|
||||
<li><a href="#q-why-do-you-have-two-apps-in-the-mac-app-store">Why do you have two apps in the Mac App Store?</a></li>
|
||||
<li><a href="#q-can-i-translate-telegram">Can I translate Telegram?</a></li>
|
||||
<li><a href="#q-can-i-help">Can I help?</a></li>
|
||||
</ul>
|
||||
<p><a href="#troubleshooting"><strong>Troubleshooting</strong></a></p>
|
||||
<ul>
|
||||
<li><a href="#login-and-sms">SMS, login, register</a></li>
|
||||
<li><a href="#getting-a-code-via-a-phone-call">Getting a login code via a phone call</a></li>
|
||||
<li><a href="#getting-a-code-via-telegram">Getting codes via Telegram</a></li>
|
||||
<li><a href="#notification-problems">Notification problems</a></li>
|
||||
<li><a href="#problems-with-contacts">Problems with contacts</a></li>
|
||||
<li><a href="#deleting-contacts-on-android">Deleting contacts on Android</a></li>
|
||||
<li><a href="#where-did-my-secret-chat-messages-go">Secret Chats</a></li>
|
||||
<li><a href="#can-39t-send-messages-to-non-contacts">Can't send messages to non contacts</a></li>
|
||||
<li><a href="#telegram-uses-the-camera-or-microphone-in-the-background">Telegram uses the camera or microphone in the background</a></li>
|
||||
</ul>
|
||||
<p><a href="#telegram-support"><strong>Contact Telegram Support</strong></a><br><a href="#twitter"><strong>Follow Us on Twitter</strong></a><br><a href="#facebook-or-other-platforms"><strong>Facebook</strong></a><br><a href="https://core.telegram.org/techfaq"><strong>Advanced FAQ</strong></a></p>
|
||||
<p></div></p>
|
||||
<hr>
|
||||
<h3><a class="anchor" name="general-questions" href="#general-questions"><i class="anchor-icon"></i></a>General Questions</h3>
|
||||
<h4><a class="anchor" name="q-what-is-telegram-what-do-i-do-here" href="#q-what-is-telegram-what-do-i-do-here"><i class="anchor-icon"></i></a>Q: What is Telegram? What do I do here?</h4>
|
||||
<p>Telegram is a messaging app with a focus on speed and security, it’s super-fast, simple and free. You can use Telegram on all your devices <strong>at the same time</strong> — your messages sync seamlessly across any number of your phones, tablets or computers. Telegram has over <strong>500 million</strong> monthly active users and is one of the <strong>10 most downloaded apps</strong> in the world.</p>
|
||||
<p>With Telegram, you can send messages, photos, videos and <a href="/blog/shared-files"><strong>files</strong></a> of any type (doc, zip, mp3, etc), as well as create groups for up to <strong>200,000</strong> people or <a href="/blog/channels">channels</a> for broadcasting to <strong>unlimited</strong> audiences. You can write to your phone contacts and find people by their <a href="#usernames-and-t-me"><strong>usernames</strong></a>. As a result, Telegram is like SMS and email combined — and can take care of all your personal or business messaging needs. In addition to this, we support end-to-end encrypted <a href="https://telegram.org/blog/calls"><strong>voice</strong></a> and <a href="https://telegram.org/blog/video-calls"><strong>video calls</strong></a>, as well as <a href="https://telegram.org/blog/voice-chats"><strong>voice chats in groups</strong></a> for thousands of participants.</p>
|
||||
<blockquote>
|
||||
<p>Follow our <a href="https://t.me/TelegramTips"><strong>Tips Channel</strong></a> to learn more about Telegram features.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-who-is-telegram-for" href="#q-who-is-telegram-for"><i class="anchor-icon"></i></a>Q: Who is Telegram for?</h4>
|
||||
<p>Telegram is for everyone who wants fast and reliable messaging and <a href="https://telegram.org/blog/calls">calls</a>. Business users and small teams may like the large groups, <a href="https://telegram.org/faq#usernames-and-t-me">usernames</a>, <a href="https://desktop.telegram.org">desktop apps</a> and powerful <a href="https://telegram.org/blog/shared-files">file sharing</a> options.</p>
|
||||
<p>Since Telegram groups can have up to <a href="https://telegram.org/blog/replies-mentions-stickers">200,000 members</a>, we support <a href="https://telegram.org/blog/replies-mentions-hashtags">replies, mentions and hashtags</a> that help maintain order and keep communication in large communities <a href="https://telegram.org/blog/replies-mentions-stickers">efficient</a>. You can appoint <a href="https://telegram.org/blog/admin-revolution">admins with advanced tools</a> to help these communities prosper in peace. <a href="https://telegram.org/blog/supergroups5k">Public groups</a> can be joined by anyone and are powerful platforms for discussions and collecting feedback.</p>
|
||||
<p>In case you're more into pictures, Telegram has animated <a href="/blog/gif-revolution">gif search</a>, a state of the art <a href="https://telegram.org/blog/photo-editor-and-passcodes">photo editor</a>, and an <a href="/blog/stickers-revolution">open sticker platform</a> (find some cool stickers <a href="https://t.me/durov/40">here</a> or <a href="https://t.me/sticker">here</a>). What's more, there is no need to worry about disk space on your device. With Telegram's cloud support and <a href="https://telegram.org/blog/cache-and-stickers">cache management options</a>, Telegram can take up nearly <strong>zero</strong> space on your phone.</p>
|
||||
<p>Those looking for extra privacy should check out our <a href="/blog/privacy-revolution">advanced settings</a> and rather revolutionary <a href="/privacy">policy</a>. And if you want secrecy, try our device-specific <a href="#secret-chats">Secret Chats</a> with self-destructing messages, photos, and videos — and lock your app with an additional <a href="https://telegram.org/blog/photo-editor-and-passcodes">passcode</a>.</p>
|
||||
<blockquote>
|
||||
<p>We keep evolving — check out our <a href="https://telegram.org/evolution">Brief History of Telegram</a> and follow us on <a href="https://twitter.com/telegram">twitter</a> and <a href="https://t.me/telegram">Telegram</a> to stay in touch.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-how-is-telegram-different-from-whatsapp" href="#q-how-is-telegram-different-from-whatsapp"><i class="anchor-icon"></i></a>Q: How is Telegram different from WhatsApp?</h4>
|
||||
<p>Unlike WhatsApp, Telegram is a cloud-based messenger with <strong>seamless sync</strong>. As a result, you can access your messages from several devices at once, including tablets and computers, and share an unlimited number of photos, videos and files (doc, zip, mp3, etc.) of up to <strong>2 GB</strong> <em>each</em>. </p>
|
||||
<p>Telegram needs less than <strong>100 MB</strong> on your device – you can keep <strong>all your media</strong> in the cloud without deleting things – simply <a href="https://t.me/TelegramTips/206">clear your cache to free up space</a>.</p>
|
||||
<p>Thanks to Telegram's multi-data center infrastructure and encryption, it is faster and way more <a href="#security">secure</a>. On top of that, private messaging on Telegram is free and will stay free — no ads, no subscription fees, forever.</p>
|
||||
<p>Telegram's API and code is open, and developers are welcome to create their own Telegram apps. We also have a <a href="https://core.telegram.org/bots">Bot API</a>, a platform for developers that allows anyone to easily build specialized tools for Telegram, <a href="https://telegram.org/blog/inline-bots">integrate any services</a>, and even <a href="https://telegram.org/blog/payments">accept payments</a> from users around the world. </p>
|
||||
<p>And that's just the tip of the iceberg.</p>
|
||||
<blockquote>
|
||||
<p>Follow our <a href="https://t.me/TelegramTips"><strong>Tips Channel</strong></a> to learn more about Telegram features.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-how-old-is-telegram" href="#q-how-old-is-telegram"><i class="anchor-icon"></i></a>Q: How old is Telegram?</h4>
|
||||
<p>Telegram for iOS was launched on <strong>August 14, 2013</strong>. The alpha version of Telegram for Android officially launched on October 20, 2013. More and more <a href="/apps">Telegram clients</a> appear, built by independent developers using Telegram's <a href="//core.telegram.org/api">open platform</a>.</p>
|
||||
<h4><a class="anchor" name="q-which-devices-can-i-use" href="#q-which-devices-can-i-use"><i class="anchor-icon"></i></a>Q: Which devices can I use?</h4>
|
||||
<p>You can use Telegram on smartphones, tablets, and even computers. We have apps for <a href="https://telegram.org/dl/ios">iOS</a> (9.0 and above), <a href="https://telegram.org/dl/android">Android</a> (4.1 and up), a native <a href="https://macos.telegram.org">macOS app</a> and a universal <a href="https://desktop.telegram.org">desktop app</a> for Windows, macOS, and Linux. <a href="https://web.telegram.org">Telegram Web</a> can also help to quickly do something on the go.</p>
|
||||
<blockquote>
|
||||
<p>You can log in to Telegram from as many of your devices as you like — all <strong>at the same time</strong>. Just use your main mobile phone number to log in everywhere, your cloud chats will sync instantly.</p>
|
||||
</blockquote>
|
||||
<p>The <a href="//core.telegram.org/api">Telegram API</a> is open for developers, should you want to build your own applications for other platforms. </p>
|
||||
<h4><a class="anchor" name="q-who-are-the-people-behind-telegram" href="#q-who-are-the-people-behind-telegram"><i class="anchor-icon"></i></a>Q: Who are the people behind Telegram?</h4>
|
||||
<p>Telegram is supported by <a href="https://en.wikipedia.org/wiki/Pavel_Durov">Pavel Durov</a> and his brother Nikolai. Pavel supports Telegram financially and ideologically while Nikolai's input is technological. To make Telegram possible, Nikolai developed a unique custom data protocol, which is open, secure and optimized for work with multiple data-centers. As a result, Telegram combines security, reliability and speed on any network.</p>
|
||||
<blockquote>
|
||||
<p>See also: <a href="/press">articles about Telegram</a></p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-where-is-telegram-based" href="#q-where-is-telegram-based"><i class="anchor-icon"></i></a>Q: Where is Telegram based?</h4>
|
||||
<p>The Telegram development team is based in Dubai.</p>
|
||||
<p>Most of the developers behind Telegram originally come from St. Petersburg, the city famous for its unprecedented number of <a href="https://en.wikipedia.org/wiki/ACM_International_Collegiate_Programming_Contest#Winners">highly skilled engineers</a>. The Telegram team had to leave Russia due to local IT regulations and has tried a number of locations as its base, including Berlin, London and Singapore. We’re currently happy with Dubai, although are ready to relocate again if local regulations change.</p>
|
||||
<h4><a class="anchor" name="q-will-you-have-ads-in-my-private-chats-and-groups-or-sell-my-da" href="#q-will-you-have-ads-in-my-private-chats-and-groups-or-sell-my-da"><i class="anchor-icon"></i></a>Q: Will you have ads in my private chats and groups? Or sell my data? Or steal my beloved and enslave my children?</h4>
|
||||
<p>No. See <a href="https://t.me/durov/142">this post</a> for details.</p>
|
||||
<h4><a class="anchor" name="q-how-are-you-going-to-make-money-out-of-this" href="#q-how-are-you-going-to-make-money-out-of-this"><i class="anchor-icon"></i></a>Q: How are you going to make money out of this?</h4>
|
||||
<p>We believe in fast and secure messaging that is also 100% free.</p>
|
||||
<p>Our founder and CEO <a href="/press">Pavel Durov</a>, who financed Telegram throughout most of its history, has outlined a <strong>strategy to make Telegram sustainable</strong> in <a href="https://t.me/durov/142">this post</a>.</p>
|
||||
<p>While Telegram will introduce monetization in 2021 to pay for the infrastructure and developer salaries, making profits will never be an end-goal for us.</p>
|
||||
<h4><a class="anchor" name="q-what-are-your-thoughts-on-internet-privacy" href="#q-what-are-your-thoughts-on-internet-privacy"><i class="anchor-icon"></i></a>Q: What are your thoughts on internet privacy?</h4>
|
||||
<p>We think that the two most important components of Internet privacy should be:</p>
|
||||
<ol>
|
||||
<li>Protecting your private conversations from snooping third parties, such as officials, employers, etc.</li>
|
||||
<li>Protecting your personal data from third parties, such as marketers, advertisers, etc.</li>
|
||||
</ol>
|
||||
<p>Telegram's aim is to create a truly free messenger, with a revolutionary <a href="/privacy">privacy policy</a>.</p>
|
||||
<h4><a class="anchor" name="q-what-about-gdpr" href="#q-what-about-gdpr"><i class="anchor-icon"></i></a>Q: What about GDPR?</h4>
|
||||
<p>The General Data Protection Regulation (GDPR) came into force in Europe on May 25, 2018. Since taking back our right to privacy was the reason we made Telegram, there wasn't much we had to change. We don’t use your data for ad targeting, we don’t sell it to others, and we're not part of any <del>mafia family</del> “family of companies.”</p>
|
||||
<p>Telegram only keeps the information it needs to function as a feature-rich cloud service. For example, your cloud chats – so that you can access them from any devices without using third-party backups, or your contacts – so that you can rely on your existing social graph when messaging people on Telegram. Please see our <a href="https://telegram.org/privacy">Privacy Policy</a> for more information.</p>
|
||||
<p>You can use <a href="https://t.me/gdprbot"><strong>@GDPRbot</strong></a> to:</p>
|
||||
<ul>
|
||||
<li>Request a copy of all your data that Telegram stores.</li>
|
||||
<li>Contact us about Data Privacy.</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" name="q-there-39s-illegal-content-on-telegram-how-do-i-take-it-down" href="#q-there-39s-illegal-content-on-telegram-how-do-i-take-it-down"><i class="anchor-icon"></i></a>Q: There's illegal content on Telegram. How do I take it down?</h4>
|
||||
<p>All Telegram chats and group chats are private amongst their participants. We do not process any requests related to them.</p>
|
||||
<p>But <strong>sticker sets</strong>, <strong>channels</strong>, and <strong>bots</strong> on Telegram are <em>publicly available</em>. If you find sticker sets or bots on Telegram that you think are illegal, please ping us at <a href="mailto:abuse@telegram.org">abuse@telegram.org</a>.</p>
|
||||
<p>You can also use the 'report' buttons right inside our apps, see <a href="https://t.me/isiswatch/2">this post</a> on our official <a href="https://t.me/isiswatch">@ISISwatch channel</a> for details.</p>
|
||||
<blockquote>
|
||||
<p>Note: If a scammer is pretending to be you, contact <a href="https://t.me/notoscam">@NoToScam</a></p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-a-bot-or-channel-is-infringing-on-my-copyright-what-do-i-do" href="#q-a-bot-or-channel-is-infringing-on-my-copyright-what-do-i-do"><i class="anchor-icon"></i></a>Q: A bot or channel is infringing on my copyright. What do I do?</h4>
|
||||
<p>All Telegram chats and group chats are private amongst their participants. We do not process any requests related to them. But <strong>sticker sets</strong>, <strong>channels</strong>, and <strong>bots</strong> on Telegram are <em>publicly available</em>.</p>
|
||||
<p>If you see a bot, channel, or sticker set that is infringing on your copyright, kindly submit a complaint to <a href="mailto:dmca@telegram.org">dmca@telegram.org</a>. Please note that such requests should only be submitted by the copyright owner or an agent authorized to act on the owner’s behalf.</p>
|
||||
<h4><a class="anchor" name="q-wait-0-o-do-you-process-take-down-requests-from-third-parties" href="#q-wait-0-o-do-you-process-take-down-requests-from-third-parties"><i class="anchor-icon"></i></a>Q: Wait! 0_o Do you process take-down requests from third parties?</h4>
|
||||
<p>Our mission is to provide a secure means of communication that works everywhere on the planet. To do this in the places where it is most needed (and to continue distributing Telegram through the App Store and Google Play), we have to process legitimate requests to take down illegal <strong>public</strong> content (e.g., sticker sets, bots, and channels) within the app. For example, we can take down sticker sets that violate intellectual property rights or porn bots.</p>
|
||||
<p>User-uploaded stickers sets, channels, and bots by third-party developers are not part of the core Telegram UI. Whenever we receive a complaint at <a href="mailto:abuse@telegram.org">abuse@telegram.org</a> or <a href="mailto:dmca@telegram.org">dmca@telegram.org</a> regarding the legality of public content, we perform the necessary legal checks and take it down when deemed appropriate.</p>
|
||||
<p>Please note that this does <strong>not</strong> apply to local restrictions on freedom of speech. For example, if criticizing the government is illegal in some country, Telegram won't be a part of such politically motivated censorship. This goes against our founders' <a href="https://mashable.com/2015/05/18/russias-mark-zuckerberg-pavel-durov/">principles</a>. While we do block terrorist (e.g. ISIS-related) bots and channels, we will not block anybody who peacefully expresses alternative opinions.</p>
|
||||
<h4><a class="anchor" name="q-my-bot-or-sticker-set-was-banned-unfairly-what-do-i-do" href="#q-my-bot-or-sticker-set-was-banned-unfairly-what-do-i-do"><i class="anchor-icon"></i></a>Q: My bot or sticker set was banned unfairly, what do I do?</h4>
|
||||
<p>If you think we banned your bot, channel, or sticker set for no apparent reasons, drop us a line at <a href="mailto:abuse@telegram.org">abuse@telegram.org</a>.</p>
|
||||
<h4><a class="anchor" name="q-do-you-process-data-requests" href="#q-do-you-process-data-requests"><i class="anchor-icon"></i></a>Q: Do you process data requests?</h4>
|
||||
<p><a href="#secret-chats">Secret chats</a> use end-to-end encryption, thanks to which we don't have any data to disclose.</p>
|
||||
<p>To protect the data that is not covered by end-to-end encryption, Telegram uses a distributed infrastructure. Cloud chat data is stored in multiple data centers around the globe that are controlled by different legal entities spread across different jurisdictions. The relevant decryption keys are split into parts and are never kept in the same place as the data they protect. As a result, several court orders from different jurisdictions are required to force us to give up any data.</p>
|
||||
<p>Thanks to this structure, we can ensure that no single government or block of like-minded countries can intrude on people's privacy and freedom of expression. Telegram can be forced to give up data only if an issue is grave and universal enough to pass the scrutiny of several different legal systems around the world.</p>
|
||||
<p>To this day, we have disclosed 0 bytes of user data to third parties, including governments.</p>
|
||||
<h3><a class="anchor" name="telegram-basics" href="#telegram-basics"><i class="anchor-icon"></i></a>Telegram Basics</h3>
|
||||
<blockquote>
|
||||
<p>Follow our <a href="https://t.me/TelegramTips"><strong>Tips Channel</strong></a> to learn more about Telegram features.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-who-can-i-write-to" href="#q-who-can-i-write-to"><i class="anchor-icon"></i></a>Q: Who can I write to?</h4>
|
||||
<p>You can write to people who are in your phone contacts and have Telegram. Another way of contacting people is to type their Telegram <a href="#usernames-and-t-me">username</a> into the search field – you don't need to know their phone number to do this.</p>
|
||||
<h4><a class="anchor" name="q-who-can-contact-me" href="#q-who-can-contact-me"><i class="anchor-icon"></i></a>Q: Who can contact me?</h4>
|
||||
<p>People can contact you on Telegram if they <strong>know your phone number</strong> or if you <strong>message them first</strong>.</p>
|
||||
<p>If they don't know your phone number, they can find you in these cases:</p>
|
||||
<ul>
|
||||
<li>When you both are members of the <strong>same group</strong>.</li>
|
||||
<li>If you set a <a href="#usernames-and-t-me"><strong>public username</strong></a>. Others can use <strong>Global Search</strong> and find you by your username.</li>
|
||||
<li>If you <strong>opt-in</strong> to appear in the <a href="#q-what-is-people-nearby">People Nearby</a> section (this is <strong>turned off</strong> by default).</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" name="q-how-do-i-know-who-in-my-contacts-has-telegram" href="#q-how-do-i-know-who-in-my-contacts-has-telegram"><i class="anchor-icon"></i></a>Q: How do I know who in my contacts has Telegram?</h4>
|
||||
<p>Your contacts, who have Telegram, are shown at the top of your Contacts. They also have pictures.</p>
|
||||
<h4><a class="anchor" name="q-how-do-i-invite-my-friends" href="#q-how-do-i-invite-my-friends"><i class="anchor-icon"></i></a>Q: How do I invite my friends?</h4>
|
||||
<p><em>iOS:</em> The basic invitations are simple SMS messages. They will be charged as standard outgoing SMS by your carrier (unless sent via iMessage). Naturally, you have other options to bring your friends here. Try sending them a download link via any other messaging service: email, Facebook, WhatsApp, an actual telegram — you name it. The link: <a href="https://telegram.org/dl/"><strong><a href="https://telegram.org/dl/">https://telegram.org/dl/</a></strong></a></p>
|
||||
<p><em>Android:</em> Open the app menu (swipe right in chat list) > Invite Friends. Then choose an application via which you would like to send out invitations.</p>
|
||||
<blockquote>
|
||||
<p>You can give your friends a <a href="#q-how-does-t-me-work">t.me link</a> with your username so that they can easily find you on Telegram even if they don't have your phone number.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-what-do-the-check-marks-mean" href="#q-what-do-the-check-marks-mean"><i class="anchor-icon"></i></a>Q: What do the check marks mean?</h4>
|
||||
<p><em>One check</em> — message delivered to the Telegram cloud and your friend has been notified if he allows notifications.<br><em>Two checks</em> — message read (your friend opened Telegram and opened the conversation with the message).</p>
|
||||
<p>We don't have a 'delivered to device' status for messages because Telegram can run on as many devices as you want. So which particular one would that check mean?</p>
|
||||
<h4><a class="anchor" name="q-can-i-hide-my-last-seen-time" href="#q-can-i-hide-my-last-seen-time"><i class="anchor-icon"></i></a>Q: Can I hide my ‘last seen’ time?</h4>
|
||||
<p>You can choose who sees this info in <a href="https://telegram.org/blog/privacy-revolution">Privacy and Security</a> settings.</p>
|
||||
<p>Remember that you won't see Last Seen timestamps for people with whom you don't share your own. You will, however, see an approximate last seen value. This keeps stalkers away but makes it possible to understand whether a person is reachable over Telegram. There are four possible approximate values:</p>
|
||||
<ul>
|
||||
<li><strong>Last seen recently</strong> — covers anything between 1 second and 2-3 days</li>
|
||||
<li><strong>Last seen within a week</strong> — between 2-3 and seven days</li>
|
||||
<li><strong>Last seen within a month</strong> — between 6-7 days and a month</li>
|
||||
<li><strong>Last seen a long time ago</strong> — more than a month (this is also always shown to blocked users)</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" name="q-who-can-see-me-39online-39" href="#q-who-can-see-me-39online-39"><i class="anchor-icon"></i></a>Q: Who can see me 'online'?</h4>
|
||||
<p>The <a href="#q-can-i-hide-my-last-seen-time">last seen</a> rules apply to your online status as well. People can only see you online if you're sharing your last seen status with them.</p>
|
||||
<p>There are some exceptions because sometimes it is obvious that you are online. Regardless of the last seen settings, people will see you online for a brief period (~30 seconds) if you do the following:</p>
|
||||
<ul>
|
||||
<li>Send them a message in a one-on-one chat or in a group where you both are members.</li>
|
||||
<li>Read a message they sent you in a one-on-one chat.</li>
|
||||
<li>Broadcast a “typing…” status to their chat with you or to a group where you both are members.</li>
|
||||
</ul>
|
||||
<p>If you're not sharing your last seen timestamp with someone and don't do anything of the above, they'll never see you online. Another way of achieving this is to block that person. </p>
|
||||
<h4><a class="anchor" name="q-what-is-people-nearby" href="#q-what-is-people-nearby"><i class="anchor-icon"></i></a>Q: What is People Nearby?</h4>
|
||||
<p>People Nearby is an <em>optional</em> feature that allows Telegram users to <strong>explore local groups</strong>, <strong>find friends</strong> to chat with in their area, or quickly <strong>exchange contacts</strong> with people who are close.</p>
|
||||
<p>You can find it in <em>Contacts > Find People Nearby</em>, as well as directly in the side menu on Android.</p>
|
||||
<p>While you have the People Nearby section <strong>open on your screen</strong>, people who are <em>very close</em> will be able to see you there. If you don't open the section, others will <strong>never</strong> see you in 'People Nearby'.</p>
|
||||
<p>You can also choose to permanently add your profile to the list of nearby people by tapping <strong>Make Myself Visible</strong>. After becoming visible, you can remove your profile from the list at any time by tapping <strong>Stop Showing Me</strong>.</p>
|
||||
<blockquote>
|
||||
<p><strong>Note:</strong> People Nearby is <strong>never turned on by default</strong> – users must manually enable it. If you are receiving messages from someone you don't know, see <a href="#q-who-can-contact-me"><em>Q: Who can contact me?</em></a></p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-can-i-delete-my-messages" href="#q-can-i-delete-my-messages"><i class="anchor-icon"></i></a>Q: Can I delete my messages?</h4>
|
||||
<p>Yes. You can always delete any messages you <strong>sent</strong> or <strong>received</strong> for <em>both sides</em> in <em>any</em> one-on-one conversation (in groups, it's still your own messages only). You can also clear the entire chat history on both ends. On Telegram, deleted messages do not leave a mark in the chat.</p>
|
||||
<div class="blog_video_player_wrap" style="max-width: 480px; margin: 20px auto 20px;">
|
||||
<video class="blog_video_player tl_blog_vid_autoplay" onclick="videoTogglePlay(this)" autoplay loop controls muted poster="/file/811140695/1947/Mc6JXlUuMPQ.58001/3107f1f4ed0eb44baf" style="max-width: 480px;" title="Unsend any message" alt="Unsend any message">
|
||||
<source src="/file/811140386/137b/JsWWEUuVuKE.867807.mp4/09a0afd95f3285e521" type="video/mp4">
|
||||
</video>
|
||||
</div>
|
||||
|
||||
<p>Together with privacy settings for <a href="/blog/unsend-privacy-emoji#anonymous-forwarding">forwarded messages</a>, this makes exchanging Telegram messages similar to talking face to face (without a tape recorder). As a result, users no longer need to worry about the data accumulating in their chats over the years. Both parties in a conversation have full control over what does and what doesn't belong to their online identity.</p>
|
||||
<h4><a class="anchor" name="q-can-i-make-calls-via-telegram" href="#q-can-i-make-calls-via-telegram"><i class="anchor-icon"></i></a>Q: Can I make calls via Telegram?</h4>
|
||||
<p>Yes! You can make end-to-end encrypted <a href="https://telegram.org/blog/calls">Voice Calls</a> and <a href="https://telegram.org/blog/video-calls">Video Calls</a>.</p>
|
||||
<p>If you want more participants, try starting a <a href="https://telegram.org/blog/voice-chats">Voice Chat</a> in one of the <strong>groups</strong> you created. Voice Chats add a live layer of ephemeral talk to the group. They can be used as virtual office spaces for teams or informal lounges for any community. While Voice Chats are not group calls, they can achieve similar goals.</p>
|
||||
<h4><a class="anchor" name="q-how-can-i-use-emoticons" href="#q-how-can-i-use-emoticons"><i class="anchor-icon"></i></a>Q: How can I use emoticons?</h4>
|
||||
<p>Type <strong>one word</strong> in your input field to get relevant <a href="https://t.me/TelegramTips/221">emoji suggestions</a>. You can also type “:” followed by any keyword to open <strong>emoji search</strong> – like <em>:heart</em>.</p>
|
||||
<p>You can suggest missing keywords for emoji in your language using <a href="https://translations.telegram.org/en/emoji">this interface</a> (this will open suggestions for <em>English</em>, don't forget to change to your <em>language</em> in the left menu).</p>
|
||||
<h3><a class="anchor" name="groups-and-channels" href="#groups-and-channels"><i class="anchor-icon"></i></a>Groups and Channels</h3>
|
||||
<h4><a class="anchor" name="q-what-makes-telegram-groups-cool" href="#q-what-makes-telegram-groups-cool"><i class="anchor-icon"></i></a>Q: What makes Telegram groups cool?</h4>
|
||||
<p>Telegram groups can have up to <strong>200,000 members</strong> each and are extremely powerful communication tools. Here are a few key features that make them stand out in the messaging world: </p>
|
||||
<p><strong>Unified history</strong><br>Edit your messages after posting, delete them so that they disappear for everyone.</p>
|
||||
<p><strong>Cross-platform availability</strong><br>Access your messages anytime, from any number of your mobile or desktop devices.</p>
|
||||
<p><strong>Instant search</strong><br>Find the message you're looking for, even among millions. Filter by sender to make searching easier.</p>
|
||||
<p><strong>Replies, mentions, hashtags</strong><br>Easily trace a conversation and keep communication efficient, no matter the group size.</p>
|
||||
<p><strong>Smart notifications</strong><br>Mute the group to get notifications only when people mention you or reply to your messages.</p>
|
||||
<p><strong>Pinned messages</strong><br>You can pin any message to be displayed at the top of the chat screen. All members will get a notification — even if they muted ordinary messages from your group.</p>
|
||||
<p><strong>Moderation tools</strong><br>Appoint administrators that can mass-delete messages, control membership, and pin important messages. Define their admin privileges with granular precision.</p>
|
||||
<p><strong>Group permissions</strong><br>Set default permissions to restrict all members from posting specific kinds of content. Or even restrict members from sending messages altogether – and let the admins chat amongst themselves while everybody else is watching.</p>
|
||||
<p><strong>File sharing</strong><br>Send and receive files of any type, up to 2 GB in size each, access them instantly on your other devices.</p>
|
||||
<p><strong>Public groups</strong><br>Get a <a href="#usernames-and-t-me">short link</a> for your group and make it public, like <a href="https://t.me/publictestgroup">t.me/publictestgroup</a>. This way, anybody can view the group's entire chat history and join to post messages.</p>
|
||||
<p><strong>Customization via bots</strong><br>Create custom tools for any specific needs using our <a href="https://core.telegram.org/bots">Bot API</a> and <a href="https://core.telegram.org/bots/inline">Inline Bots</a>.</p>
|
||||
<h4><a class="anchor" name="q-what-39s-the-difference-between-groups-and-channels" href="#q-what-39s-the-difference-between-groups-and-channels"><i class="anchor-icon"></i></a>Q: What's the difference between groups and channels?</h4>
|
||||
<p>Telegram <strong>groups</strong> are ideal for sharing stuff with friends and family or collaboration in small teams. But groups can also grow very large and support communities of up to 200,000 members. You can make any group <strong>public</strong>, toggle <strong>persistent history</strong> to control whether or not new members have access to earlier messages and appoint <strong>administrators</strong> with granular privileges. You can also pin important messages to the top of the screen so that all members can see them, including those who have just joined.</p>
|
||||
<p><strong>Channels</strong> are a tool for broadcasting messages to large audiences. In fact, a channel can have an unlimited number of subscribers. When you post in a channel, the message is signed with the channel's name and photo and not your own. Each message in a channel has a <strong>view counter</strong> that gets updated when the message is viewed, including its forwarded copies.</p>
|
||||
<blockquote>
|
||||
<p><a href="/faq_channels">Read more about channels in the Channels FAQ »</a></p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-how-do-i-create-a-group" href="#q-how-do-i-create-a-group"><i class="anchor-icon"></i></a>Q: How do I create a group?</h4>
|
||||
<p><em>iOS:</em> Start a new message (tap the icon in the top right corner in Chats) > 'New Group'.<br><em>Android:</em> Tap the circular pencil icon in the chat list > 'New Group'.<br><em>Telegram Desktop:</em> Click the menu button in the top left corner > 'New Group'.</p>
|
||||
<h4><a class="anchor" name="q-can-i-assign-administrators" href="#q-can-i-assign-administrators"><i class="anchor-icon"></i></a>Q: Can I assign administrators?</h4>
|
||||
<p>You can add administrators to help you manage your group and define their privileges with granular precision.</p>
|
||||
<p><em>iOS:</em> Go to Group Info (tap the photo in the top right corner on the group‘s chat screen) > Edit > Administrators.<br><em>Android:</em> Go to Group Info (tap the name in the header) > the pencil icon (in the top right corner) > Administrators.<br><em>Telegram Desktop:</em> When in the group, click '…' in the top right corner > Manage group > Administrators.</p>
|
||||
<h4><a class="anchor" name="q-how-do-i-add-more-members-what-39s-an-invite-link" href="#q-how-do-i-add-more-members-what-39s-an-invite-link"><i class="anchor-icon"></i></a>Q: How do I add more members? What's an invite link?</h4>
|
||||
<p>You can add your contacts, or using search by <a href="#q-what-are-usernames-how-do-i-get-one">username</a>.</p>
|
||||
<p>It is easy to migrate existing groups to Telegram by sending people an <strong>invite link</strong>. To create an invite link, go to Group Info > Add Member > Invite to Group via Link.</p>
|
||||
<p>Anyone who has Telegram installed will be able to join your group by following this link. If you choose to revoke the link, it will stop working immediately.</p>
|
||||
<blockquote>
|
||||
<p><a href="/blog/invite-links">Read more about invite links in our blog »</a></p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" name="usernames-and-t-me" href="#usernames-and-t-me"><i class="anchor-icon"></i></a>Usernames and t.me</h3>
|
||||
<h4><a class="anchor" name="q-what-are-usernames-how-do-i-get-one" href="#q-what-are-usernames-how-do-i-get-one"><i class="anchor-icon"></i></a>Q: What are usernames? How do I get one?</h4>
|
||||
<p>You can set up a <strong>public</strong> username on Telegram. It then becomes possible for other users to find you by that username — you will appear in contacts search under 'global results'. Please note that people who find you will be able to send you messages, even if they don't know your number. If you are not comfortable with this, we advise against setting up a username in Telegram.</p>
|
||||
<p>You can set up a username in Settings and use the universal search box in the chat list to search for chats, messages, and usernames.</p>
|
||||
<h4><a class="anchor" name="q-how-does-t-me-work" href="#q-how-does-t-me-work"><i class="anchor-icon"></i></a>Q: How does t.me work?</h4>
|
||||
<p>Once you've set up a username, you can give people a <a href="https://t.me/username">t.me/username</a> link. Opening that link on their phone will automatically fire up their Telegram app and open a chat with you. You can share username links with friends, write them on business cards or put them up on your website.</p>
|
||||
<p>This way people can contact you on Telegram without knowing your phone number.</p>
|
||||
<h4><a class="anchor" name="q-what-can-i-use-as-my-username" href="#q-what-can-i-use-as-my-username"><i class="anchor-icon"></i></a>Q: What can I use as my username?</h4>
|
||||
<p>You can use a-z, 0-9 and underscores. Usernames are case-insensitive, but Telegram will store your capitalization preferences (e.g. Telegram and TeleGram is the same user). The username must be at least five characters long.</p>
|
||||
<h4><a class="anchor" name="q-do-i-need-a-username" href="#q-do-i-need-a-username"><i class="anchor-icon"></i></a>Q: Do I need a username?</h4>
|
||||
<p>You don't have to get one. Remember that Telegram usernames are public and choosing a username on Telegram makes it possible for people to find you in global search and send you messages even if they don't have your number. If you are not comfortable with this, we advise against setting up a username.</p>
|
||||
<h4><a class="anchor" name="q-if-someone-finds-me-by-username-messages-and-i-reply-will-they" href="#q-if-someone-finds-me-by-username-messages-and-i-reply-will-they"><i class="anchor-icon"></i></a>Q: If someone finds me by username, messages and I reply — will they know my number?</h4>
|
||||
<p>No. Neither party will see another's phone number (unless this is permitted by your <a href="#q-who-can-see-my-phone-number">privacy settings</a>). This is similar to the case when you message a person who you've met in a Telegram group.</p>
|
||||
<h4><a class="anchor" name="q-how-do-i-delete-my-username" href="#q-how-do-i-delete-my-username"><i class="anchor-icon"></i></a>Q: How do I delete my username?</h4>
|
||||
<p>Go to Settings and save an empty username. This will remove your username; people will no longer be able to find you via search. This will not affect existing conversations.</p>
|
||||
<h4><a class="anchor" name="q-what-do-i-do-if-my-username-is-taken" href="#q-what-do-i-do-if-my-username-is-taken"><i class="anchor-icon"></i></a>Q: What do I do if my username is taken?</h4>
|
||||
<p>Telegram usernames are distributed on a first come — first serve basis.</p>
|
||||
<p>We understand that certain usernames are part of an online identity for some of us. If your desired username is already taken, we will be happy to help you acquire it for your account or channel, provided that you have that same username on at least <strong>two</strong> of these services: Facebook, Twitter, Instagram.</p>
|
||||
<p>Due to the fact that one account can register multiple bot and channel usernames, we reserve the right to recall usernames assigned to unused bots and channels, as well as openly squatted usernames.</p>
|
||||
<p>To request a username, contact <a href="https://t.me/username_bot">@Username_bot</a>.</p>
|
||||
<h4><a class="anchor" name="q-what-if-someone-is-pretending-to-be-me" href="#q-what-if-someone-is-pretending-to-be-me"><i class="anchor-icon"></i></a>Q: What if someone is pretending to be me?</h4>
|
||||
<p>If a scammer is pretending to be you, please contact <a href="https://t.me/notoscam">@NoToScam</a>.</p>
|
||||
<h3><a class="anchor" name="security" href="#security"><i class="anchor-icon"></i></a>Security</h3>
|
||||
<blockquote>
|
||||
<p>If you are an advanced user, you may find our <a href="https://core.telegram.org/techfaq">FAQ for the Technically Inclined</a> useful as well.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-how-secure-is-telegram" href="#q-how-secure-is-telegram"><i class="anchor-icon"></i></a>Q: How secure is Telegram?</h4>
|
||||
<p>Telegram is more secure than mass market messengers like WhatsApp and Line. We are based on the MTProto protocol (see <a href="https://core.telegram.org/mtproto">description</a> and <a href="https://core.telegram.org/techfaq">advanced FAQ</a>), built upon time-tested algorithms to make security compatible with high-speed delivery and reliability on weak connections. We are continuously working with the community to improve the security of our protocol and clients.</p>
|
||||
<h4><a class="anchor" name="q-what-if-im-more-paranoid-than-your-regular-user" href="#q-what-if-im-more-paranoid-than-your-regular-user"><i class="anchor-icon"></i></a>Q: What if I’m more paranoid than your regular user?</h4>
|
||||
<p>We've got you covered. Telegram’s special <a href="#secret-chats">secret chats</a> use end-to-end encryption, leave no trace on our servers, support self-destructing messages and don’t allow forwarding. On top of this, secret chats are not part of the Telegram cloud and can only be accessed on their devices of origin.</p>
|
||||
<h4><a class="anchor" name="q-so-how-do-you-encrypt-data" href="#q-so-how-do-you-encrypt-data"><i class="anchor-icon"></i></a>Q: So how do you encrypt data?</h4>
|
||||
<p>We support two layers of secure encryption. <a href="https://core.telegram.org/mtproto">Server-client encryption</a> is used in Cloud Chats (private and group chats), Secret Chats use an additional layer of <a href="https://core.telegram.org/api/end-to-end">client-client encryption</a>. All data, regardless of type, is encrypted in the same way — be it text, media or files.</p>
|
||||
<p>Our encryption is based on 256-bit symmetric AES encryption, 2048-bit RSA encryption, and Diffie–Hellman secure key exchange. You can find more info in the <a href="https://core.telegram.org/techfaq">Advanced FAQ</a>.</p>
|
||||
<blockquote>
|
||||
<p>See also: <a href="https://telegram.org/faq#q-do-you-process-data-requests">Do you process data requests?</a></p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-why-should-i-trust-you" href="#q-why-should-i-trust-you"><i class="anchor-icon"></i></a>Q: Why should I trust you?</h4>
|
||||
<p>Telegram is open, anyone can check our <a href="/apps#source-code">source code</a>, <a href="//core.telegram.org/mtproto">protocol</a> and <a href="//core.telegram.org/api">API</a>, see how everything works and make an informed decision. Telegram supports <a href="https://telegram.org/blog/verifiable-apps-and-more">verifiable builds</a>, which allow experts to independently verify that our code published on GitHub is the <strong>exact same code</strong> that is used to build the apps you download from App Store or Google Play.</p>
|
||||
<p>We welcome security experts to audit our system and appreciate any feedback at <a href="mailto:security@telegram.org">security@telegram.org</a>.</p>
|
||||
<p>On top of that, Telegram's primary focus is not to <a href="#q-how-are-you-going-to-make-money-out-of-this">bring a profit</a>, so commercial interests will never interfere with our mission.</p>
|
||||
<blockquote>
|
||||
<p>See also: <a href="/press">articles about Telegram</a></p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-do-i-need-to-trust-telegram-for-this-to-be-secure" href="#q-do-i-need-to-trust-telegram-for-this-to-be-secure"><i class="anchor-icon"></i></a>Q: Do I need to trust Telegram for this to be secure?</h4>
|
||||
<p>When it comes to <a href="#secret-chats">secret chats</a>, you don't — just make sure that the visualized key of your secret chat matches the one in your friend's secret chat settings. <a href="faq#q-what-is-this-39encryption-key-39-thing">More about this below</a>.</p>
|
||||
<h4><a class="anchor" name="q-what-if-my-hacker-friend-says-they-could-decipher-telegram-mes" href="#q-what-if-my-hacker-friend-says-they-could-decipher-telegram-mes"><i class="anchor-icon"></i></a>Q: What if my hacker friend says they could decipher Telegram messages?</h4>
|
||||
<p>Anyone who claims that Telegram messages can be deciphered is welcome to prove that claim in our competition and <a href="https://telegram.org/blog/cryptocontest">win $300,000</a>. You can check out the <a href="https://core.telegram.org/contest300K">Cracking Contest Description</a> to learn more.</p>
|
||||
<p>Any comments on Telegram's security are welcome at <a href="mailto:security@telegram.org">security@telegram.org</a>. All submissions which result in a change of code or configuration are eligible for bounties, ranging from <strong>$100</strong> to <a href="https://telegram.org/blog/crowdsourcing-a-more-secure-future"><strong>$100,000</strong></a> or more, depending on the severity of the issue. Please note that we can not offer bounties for issues that are disclosed to the public before they are fixed.</p>
|
||||
<h4><a class="anchor" name="q-can-telegram-protect-me-against-everything" href="#q-can-telegram-protect-me-against-everything"><i class="anchor-icon"></i></a>Q: Can Telegram protect me against everything?</h4>
|
||||
<p>Telegram can help when it comes to data transfer and secure communication. This means that all data (including media and files) that you send and receive via Telegram cannot be deciphered when intercepted by your internet service provider, owners of Wi-Fi routers you connect to, or other third parties.</p>
|
||||
<p>But please remember that we cannot protect you from your own mother if she takes your unlocked phone without a passcode. Or from your IT-department if they access your computer at work. Or from any other people that get physical or <a href="https://en.wikipedia.org/wiki/Superuser">root</a> access to your phones or computers running Telegram.</p>
|
||||
<p>If you have reasons to worry about your personal security, we strongly recommend using only <a href="#secret-chats">Secret Chats</a> in official or at least verifiable open-source apps for sensitive information, preferably with a <a href="#q-how-do-self-destructing-messages-work">self-destruct timer</a>. We also recommend enabling 2-Step Verification and setting up a strong passcode to lock your app, you will find both options in Settings > Privacy and Security.</p>
|
||||
<h4><a class="anchor" name="q-how-does-2-step-verification-work" href="#q-how-does-2-step-verification-work"><i class="anchor-icon"></i></a>Q: How does 2-Step Verification work?</h4>
|
||||
<p>Logging in with an SMS code is an industry standard in messaging, but if you're looking for more security or have reasons to doubt your mobile carrier or government, we recommend protecting your cloud chats with an additional password.</p>
|
||||
<p>You can do this in <strong>Settings > Privacy and Security > 2-Step Verification</strong>. Once enabled, you will need both an SMS code and a password to log in. You can also set up a recovery email address that will help regain access, should you forget your password. If you do so, please remember that it's important that the recovery email account is also protected with a strong password and 2-Step Verification when possible.</p>
|
||||
<p><a href="https://xkcd.com/936/">Check this out</a> for tips on creating a strong password that is easy to remember.</p>
|
||||
<h4><a class="anchor" name="q-why-can-jailbroken-and-rooted-devices-be-dangerous" href="#q-why-can-jailbroken-and-rooted-devices-be-dangerous"><i class="anchor-icon"></i></a>Q: Why can jailbroken and rooted devices be dangerous?</h4>
|
||||
<p>Using a rooted or jailbroken device makes it easier for a potential attacker to gain full administrative control over your device — <a href="https://en.wikipedia.org/wiki/Superuser">root access</a>.</p>
|
||||
<p>A user with root access can easily bypass security features built into the operating system, read process memory or access restricted areas, such as the <a href="https://developer.android.com/training/data-storage#filesInternal">internal storage</a>. Once an attacker has root access, any efforts to mitigate threats become futile. No application can be called safe under these circumstances, no matter how strong the encryption.</p>
|
||||
<h3><a class="anchor" name="secret-chats" href="#secret-chats"><i class="anchor-icon"></i></a>Secret Chats</h3>
|
||||
<h4><a class="anchor" name="q-how-are-secret-chats-different" href="#q-how-are-secret-chats-different"><i class="anchor-icon"></i></a>Q: How are secret chats different?</h4>
|
||||
<p>Secret chats are meant for people who want more secrecy than the average fella. All messages in secret chats use end-to-end encryption. This means only you and the recipient can read those messages — nobody else can decipher them, including us here at Telegram (<a href="#q-can-telegram-protect-me-against-everything">more on this here</a>). On top of this, Messages cannot be forwarded from secret chats. And when you delete messages on your side of the conversation, the app on the other side of the secret chat will be ordered to delete them as well.</p>
|
||||
<p>You can order your messages, photos, videos and files to <a href="#q-how-do-self-destructing-messages-work">self-destruct</a> in a set amount of time after they have been read or opened by the recipient. The message will then disappear from both your and your friend's devices.</p>
|
||||
<p>All secret chats in Telegram are device-specific and are not part of the Telegram cloud. This means you can only access messages in a secret chat from their device of origin. They are safe for as long as your device is safe in your pocket.</p>
|
||||
<h4><a class="anchor" name="q-how-do-i-start-a-secret-chat" href="#q-how-do-i-start-a-secret-chat"><i class="anchor-icon"></i></a>Q: How do I start a secret chat?</h4>
|
||||
<p>Open the profile of the user you want to contact. Tap on ‘…’, then ‘Start Secret Chat’.</p>
|
||||
<p>Remember that Telegram secret chats are device-specific. If you start a secret chat with a friend on one of your devices, this chat will only be available on that device. If you log out, you will lose all your secret chats. You can create as many different secret chats with the same contact as you like.</p>
|
||||
<h4><a class="anchor" name="q-how-do-self-destructing-messages-work" href="#q-how-do-self-destructing-messages-work"><i class="anchor-icon"></i></a>Q: How do self-destructing messages work?</h4>
|
||||
<p>The Self-Destruct Timer is available for <strong>all messages</strong> in Secret Chats and for <strong>media</strong> in private cloud chats.</p>
|
||||
<p>To set the timer, simply tap the clock icon (in the input field on iOS, top bar on Android), and then choose the desired time limit. The clock starts ticking the moment the message is displayed on the recipient's screen (gets two check marks). As soon as the time runs out, the message disappears from <strong>both</strong> devices. We will try to send a notification if a screenshot is taken.</p>
|
||||
<p>Please note that the timer in Secret Chats only applies to messages that were sent <strong>after</strong> the timer was set. It has no effect on earlier messages.</p>
|
||||
<h4><a class="anchor" name="q-can-i-be-certain-that-my-conversation-partner-doesn-39t-take-a" href="#q-can-i-be-certain-that-my-conversation-partner-doesn-39t-take-a"><i class="anchor-icon"></i></a>Q: Can I be certain that my conversation partner doesn't take a screenshot?</h4>
|
||||
<p>Unfortunately, there is no bulletproof way of detecting screenshots on certain systems (most notably, some Android and Windows Phone devices). We will make every effort to alert you about screenshots taken in your Secret Chats, but it may still be possible to bypass such notifications and take screenshots silently. We advise to share sensitive information only with people you trust. After all, nobody can stop a person from taking a picture of their screen with a different device or an old school camera.</p>
|
||||
<h4><a class="anchor" name="q-what-is-this-39encryption-key-39-thing" href="#q-what-is-this-39encryption-key-39-thing"><i class="anchor-icon"></i></a>Q: What is this 'Encryption Key' thing?</h4>
|
||||
<p>When a secret chat is created, the participating devices exchange encryption keys using the so-called <a href="https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange">Diffie-Hellman key exchange</a>. After the secure end-to-end connection has been established, we generate a picture that visualizes the encryption key for your chat. You can then compare this image with the one your friend has — if the two images are the same, you can be sure that the secret chat is secure, and no <a href="https://en.wikipedia.org/wiki/Man-in-the-middle_attack">man-in-the-middle attack</a> can succeed.</p>
|
||||
<p>Newer versions of Telegram apps will show a larger picture along with a textual representation of the key (this is not the key itself, of course!) when both participants are using an updated app.</p>
|
||||
<p>Always compare visualizations using a channel that is known to be secure — it's safest if you do this in person, in an offline meeting with the conversation partner.</p>
|
||||
<h4><a class="anchor" name="q-why-not-just-make-all-chats-39secret-39" href="#q-why-not-just-make-all-chats-39secret-39"><i class="anchor-icon"></i></a>Q: Why not just make all chats 'secret'?</h4>
|
||||
<p>All Telegram messages are always securely encrypted. Messages in Secret Chats use <strong>client-client</strong> encryption, while Cloud Chats use <strong>client-server/server-client</strong> encryption and are stored encrypted in the Telegram Cloud (more <a href="https://telegram.org/privacy#4-1-storing-data">here</a>). This enables your cloud messages to be both <a href="#q-do-you-process-data-requests">secure</a> and immediately accessible from any of your devices – even if you lose your device altogether.</p>
|
||||
<p>The problem of restoring access to your chat history on a newly connected device (e.g. when you lose your phone) does not have an elegant solution in the end-to-end encryption paradigm. At the same time, reliable backups are an essential feature for any mass-market messenger. To solve this problem, some applications (like Whatsapp and Viber) allow <a href="https://www.eff.org/deeplinks/2016/10/where-whatsapp-went-wrong-effs-four-biggest-security-concerns">decryptable backups</a> that put their users' privacy at risk – even if they do not enable backups themselves. Other apps ignore the need for backups altogether and leave their users vulnerable to data loss.</p>
|
||||
<p>We opted for a third approach by offering two distinct types of chats. Telegram disables default system backups and provides all users with an integrated security-focused backup solution in the form of Cloud Chats. Meanwhile, the separate entity of Secret Chats gives you full control over the data you do not want to be stored.</p>
|
||||
<p>This allows Telegram to be widely adopted in broad circles, not just by activists and dissidents, so that the simple fact of using Telegram does not mark users as targets for heightened surveillance in certain countries. We are convinced that the separation of conversations into Cloud and Secret chats represents the most secure solution currently possible for a massively popular messaging application.</p>
|
||||
<blockquote>
|
||||
<p>See also: <a href="https://telegra.ph/Why-Isnt-Telegram-End-to-End-Encrypted-by-Default-08-14">Why Telegram isn't End-to-End Encrypted “by Default”</a></p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" name="your-account" href="#your-account"><i class="anchor-icon"></i></a>Your Account</h3>
|
||||
<h4><a class="anchor" name="q-who-can-see-my-phone-number" href="#q-who-can-see-my-phone-number"><i class="anchor-icon"></i></a>Q: Who can see my phone number?</h4>
|
||||
<p>On Telegram, you can send messages in private chats and groups without making your phone number visible. By default, your number is only visible to people who you've added to your address book as contacts. You can further modify this in <em>Settings > Privacy and Security > Phone Number</em>.</p>
|
||||
<blockquote>
|
||||
<p>Note that people will always see your number if they know it already and <strong>saved</strong> it in their address book.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-i-have-a-new-phone-number-what-do-i-do" href="#q-i-have-a-new-phone-number-what-do-i-do"><i class="anchor-icon"></i></a>Q: I have a new phone number, what do I do?</h4>
|
||||
<p>Each phone number is a <strong>separate</strong> account on Telegram. You have several options if you are using multiple phone numbers:</p>
|
||||
<ul>
|
||||
<li>If you will <strong>no longer use the old number</strong> (e.g., you moved to a new country or changed your number for good), simply go to Settings and <a href="#q-how-do-i-change-my-phone-number">change the number</a> connected to your Telegram account to the new number. <strong>Important:</strong> make sure you have access to your connected phone number – otherwise you risk losing access to your account.</li>
|
||||
<li>If you will use the new number for a <strong>limited time</strong> (e.g., you're on a trip or vacation), there's no need to do anything.</li>
|
||||
<li>If you want to keep using <strong>both numbers</strong> (e.g., you have a work phone and personal phone), choose one as your Telegram number. You <em>may</em> create another Telegram account on the second number as well, for example, if you want to keep work and personal chats separated. It is possible to log in to one Telegram app with up to <strong>3</strong> different <a href="https://telegram.org/blog/autoplay#multiple-account-support">accounts</a> at once.</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" name="q-how-do-i-log-out" href="#q-how-do-i-log-out"><i class="anchor-icon"></i></a>Q: How do I log out?</h4>
|
||||
<p>Most users don't need to log out of Telegram:</p>
|
||||
<ul>
|
||||
<li>You can use Telegram on many devices <strong>at the same time</strong>. Just use the same phone number to log in on all devices.</li>
|
||||
<li>You can go to <em>Settings > Data and Storage > Storage Usage> Clear cache</em> to <strong>free up space</strong> on your device without logging out.</li>
|
||||
<li>If you use Telegram with <strong>multiple phone numbers</strong>, you can <a href="https://telegram.org/blog/themes-accounts#multiple-accounts">switch between accounts</a> without logging out.</li>
|
||||
<li>If you use Telegram on a <strong>shared device</strong>, you can set up a passcode in <em>Settings > Privacy and Security</em> to make sure only you have access to your account.</li>
|
||||
</ul>
|
||||
<p>If you do want to log out for some reason, here's how you do that:</p>
|
||||
<p><em>iOS</em>: Go to Settings > Edit > Log out.<br><em>Android</em>, <em>Telegram Desktop</em>: Go to Settings > … (in the top right corner) > Log out.</p>
|
||||
<p>If you log out, you will keep all your cloud messages. However, you <strong>will lose</strong> all your <strong>Secret Chats</strong> and <strong>all messages</strong> inside those secret chats when you log out.</p>
|
||||
<blockquote>
|
||||
<p>Note that logging out does <strong>not</strong> trigger remote deletion of your secret chat messages on your partner's device — to do that, choose 'Clear History' first.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-how-do-i-change-my-phone-number" href="#q-how-do-i-change-my-phone-number"><i class="anchor-icon"></i></a>Q: How do I change my phone number?</h4>
|
||||
<p>You can change your number in Telegram and keep <strong>everything</strong>, including all your contacts, messages, and media from the Telegram cloud, as well as all your Secret Chats on all devices.</p>
|
||||
<p>To change your number, go to Settings, then tap on your phone number (just above the username), then 'Change Number'. If you already have a different Telegram account on the target number, you'll need to <a href="#q-how-do-i-delete-my-account">delete</a> that account first.</p>
|
||||
<h4><a class="anchor" name="q-how-do-i-delete-my-account" href="#q-how-do-i-delete-my-account"><i class="anchor-icon"></i></a>Q: How do I delete my account?</h4>
|
||||
<p>If you would like to delete your account, you can do this on the <a href="https://telegram.org/deactivate">deactivation page</a>. Deleting your account permanently removes all your <strong>messages</strong> and <strong>contacts</strong>. All groups and channels that you've created are orphaned and left without a creator but admins retain their rights.</p>
|
||||
<p>This action must be confirmed via your Telegram account and cannot be undone.</p>
|
||||
<blockquote>
|
||||
<p>We recommend using a non-mobile browser for this process.<br>Note that you'll receive the <strong>code</strong> via <strong>Telegram</strong>, not SMS.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-what-happens-if-i-delete-my-account" href="#q-what-happens-if-i-delete-my-account"><i class="anchor-icon"></i></a>Q: What happens if I delete my account?</h4>
|
||||
<p>As was just mentioned above, all your data will be flushed from our system: all messages, groups, and contacts associated with your account will be deleted. That said, your contacts will still be able to chat in the groups that you have created, and they will still have <em>their</em> copy of the messages you sent them. So if you want to send messages that can vanish without a trace, try using our <a href="#q-how-do-self-destructing-messages-work">self-destruct timer</a> instead.</p>
|
||||
<p>Termination of a Telegram account is irreversible. If you sign up again, you will appear as a new user and will not get your history, contacts or groups back. People, who have your phone number in their contacts, will be notified. The new user will be displayed as a separate conversation in their messages list and their conversation history with this new user will be empty.</p>
|
||||
<h4><a class="anchor" name="q-how-does-account-self-destruction-work" href="#q-how-does-account-self-destruction-work"><i class="anchor-icon"></i></a>Q: How does account self-destruction work?</h4>
|
||||
<p>Telegram is not a commercial organization, and we value our disk space greatly. If you stop using Telegram and don't come online for at least six months, your account will be deleted along with all messages, media, contacts and every other piece of data you store in the Telegram cloud. You can change the exact period after which your inactive account will self-destruct in Settings.</p>
|
||||
<h4><a class="anchor" name="q-my-phone-was-stolen-what-do-i-do" href="#q-my-phone-was-stolen-what-do-i-do"><i class="anchor-icon"></i></a>Q: My phone was stolen, what do I do?</h4>
|
||||
<p>First of all, sorry about your phone. Unfortunately, the phone number is the only way for us to identify a Telegram user at the moment. We don't collect additional information about you, so whoever has the number, has the account. This means we can't help you unless you have access either to the phone number or to Telegram itself on any of your devices.</p>
|
||||
<h6><a class="anchor" name="i-have-access-to-telegram-on-another-device" href="#i-have-access-to-telegram-on-another-device"><i class="anchor-icon"></i></a>I have access to Telegram on another device</h6>
|
||||
<ol>
|
||||
<li>Go to Telegram Settings > Privacy and Security and turn on Two-Step Verification. This way the phone number alone will not be enough to log in to your account.</li>
|
||||
<li>Go to Settings > Devices (or Privacy & Security > Active Sessions) and terminate your Telegram session on the old device. Whoever has your phone will not be able to log in again, since they don't know your password.</li>
|
||||
<li>Contact your phone provider, so that they block your old SIM and issue a new one with your number.</li>
|
||||
<li>If you decide to switch to a new phone number, don't forget to go to Settings, tap on your phone number and change your Telegram number to the new one.</li>
|
||||
</ol>
|
||||
<h6><a class="anchor" name="i-don-39t-have-access-to-telegram-on-any-other-devices" href="#i-don-39t-have-access-to-telegram-on-any-other-devices"><i class="anchor-icon"></i></a>I don't have access to Telegram on any other devices</h6>
|
||||
<ol>
|
||||
<li>First and foremost, you need to contact your phone provider, so that they block your old SIM and issue a new one with your number.</li>
|
||||
<li>Wait till you receive your new SIM with the old number, log in to Telegram, then go to Settings > Devices (or Privacy & Security > Active Sessions) and terminate your Telegram session on the old device.</li>
|
||||
</ol>
|
||||
<h6><a class="anchor" name="removing-sensitive-data" href="#removing-sensitive-data"><i class="anchor-icon"></i></a>Removing sensitive data</h6>
|
||||
<p>Common thieves usually throw out the SIM card immediately (the phone is harder to locate this way), then wipe the devices and sell them, so there isn't much risk for the data in case of regular petty theft. But if you have reasons to worry about the data on the device and are unable to <a href="#i-have-access-to-telegram-on-another-device">log out the other device</a>, it is best that you wipe it remotely. You can read more about it here: <a href="https://support.apple.com/kb/PH2701">Apple iOS</a>, <a href="https://www.google.com/android/devicemanager">Android</a>. Unfortunately, this requires you to have prepared in advance for this scenario.</p>
|
||||
<p>You can <a href="#q-how-do-i-delete-my-account">delete your Telegram account</a> if you are logged in on at least one of your other devices (mobile or desktop). Note that inactive Telegram accounts self-destruct automatically after a period of time — 6 months being the default setting.</p>
|
||||
<h3><a class="anchor" name="bots" href="#bots"><i class="anchor-icon"></i></a>Bots</h3>
|
||||
<blockquote>
|
||||
<p>If you're a developer, you may find our <a href="https://core.telegram.org/bots/faq">Bots FAQ</a> more useful.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-what-are-bots" href="#q-what-are-bots"><i class="anchor-icon"></i></a>Q: What are bots?</h4>
|
||||
<p>Bots are like small programs that run right inside Telegram. They are made by third-party developers using the <a href="https://core.telegram.org/bots">Telegram Bot API</a>.</p>
|
||||
<h4><a class="anchor" name="q-how-do-i-create-a-bot" href="#q-how-do-i-create-a-bot"><i class="anchor-icon"></i></a>Q: How do I create a bot?</h4>
|
||||
<p>Creating Telegram bots is super-easy, but you will need at least some skills in computer programming. If you're sure you're up to it, our <a href="https://core.telegram.org/bots"><strong>Introduction for Developers</strong></a> is a good place to start.</p>
|
||||
<p>Unfortunately, there are no out-of-the-box ways to create a working bot if you are not a developer. But we're sure you'll soon find plenty of bots created by other people to play with.</p>
|
||||
<h4><a class="anchor" name="q-a-bot-is-sending-me-messages-how-do-i-make-it-stop" href="#q-a-bot-is-sending-me-messages-how-do-i-make-it-stop"><i class="anchor-icon"></i></a>Q: A bot is sending me messages, how do I make it stop?</h4>
|
||||
<p>If you don't want a bot to send you messages, feel free to block it – same as you would block a human user. Some Telegram clients have a 'Stop Bot' button right in the bot's profile.</p>
|
||||
<p>That said, most bot developers offer commands that silence the bot, check its <em>/help</em> for clues.</p>
|
||||
<h4><a class="anchor" name="q-are-bots-safe" href="#q-are-bots-safe"><i class="anchor-icon"></i></a>Q: Are bots safe?</h4>
|
||||
<p>Yes. Bots are no different from human users that you meet in groups for example. They can see your public name, username, and profile pictures, and they can see messages you send to them, that's it. They can't access your last seen status and <strong>don't</strong> see your phone number (unless you decide to give it to them yourself).</p>
|
||||
<p>Naturally, any bot should be treated as a stranger — don't give them your passwords, Telegram codes or bank account numbers, even if they ask nicely. Also, be careful when opening files sent by bots, same as you would deal with ordinary humans. Example: If a bot sent us a file called <em>OpenMe.exe</em>, we probably wouldn't open it.</p>
|
||||
<h4><a class="anchor" name="q-if-i-add-a-bot-to-my-group-can-it-read-my-messages" href="#q-if-i-add-a-bot-to-my-group-can-it-read-my-messages"><i class="anchor-icon"></i></a>Q: If I add a bot to my group, can it read my messages?</h4>
|
||||
<p>Bots can work in two modes when you add them to groups. By default, bots only see messages that are meant for them. In this case, you'll see 'has no access to messages' in the group members list next to the bot.</p>
|
||||
<p>Some bots need more information to work, so developers may disable the privacy mode. In this case, the bot will see all messages sent to the group, and you will see 'has access to messages' in the members list next to the bot.</p>
|
||||
<p><a href="https://core.telegram.org/bots#privacy-mode">Learn more about privacy mode for bots »</a></p>
|
||||
<p>If your group contains very sensitive information, maybe it's better to avoid adding bots you don't trust 100%.</p>
|
||||
<h4><a class="anchor" name="q-are-bots-made-by-telegram" href="#q-are-bots-made-by-telegram"><i class="anchor-icon"></i></a>Q: Are bots made by Telegram?</h4>
|
||||
<p>No. While we have some official bots for specific purposes (like <a href="https://t.me/gif">@gif</a> or <a href="https://t.me/gdprbot">@GDPRbot</a>), we don't usually make bots. Bots are made by third-party developers using the <a href="https://core.telegram.org/bots">Telegram Bot API and platform</a>.</p>
|
||||
<h4><a class="anchor" name="q-where-can-i-find-more-bots" href="#q-where-can-i-find-more-bots"><i class="anchor-icon"></i></a>Q: Where can I find more bots?</h4>
|
||||
<p>There is no official store at the moment, so you'll have to ask your friends or search the web for now. We're pretty sure you'll find some bots to play with.</p>
|
||||
<h3><a class="anchor" name="deeper-questions" href="#deeper-questions"><i class="anchor-icon"></i></a>Deeper questions</h3>
|
||||
<h4><a class="anchor" name="q-can-i-get-telegram-39s-server-side-code" href="#q-can-i-get-telegram-39s-server-side-code"><i class="anchor-icon"></i></a>Q: Can I get Telegram's server-side code?</h4>
|
||||
<p>All Telegram client apps are fully open source. We offer <a href="https://core.telegram.org/reproducible-builds">verifiable builds both for iOS and Android</a> – this technology allows to independently verify that the application you download from the app stores was built using the <strong>exact same code</strong> that we publish.</p>
|
||||
<p>By contrast, publishing the server code doesn’t provide security guarantees neither for Secret Chats nor for Cloud Chats. This is because – unlike with the client-side code – there’s no way to verify that the <strong>same code</strong> is run on the servers.</p>
|
||||
<p>As for Secret Chats, you don’t need the server-side code to check their integrity – the point of end-to-end encryption is that it must be solid regardless of how the servers function.</p>
|
||||
<blockquote>
|
||||
<p>In a <a href="https://t.me/durov/146">post on his channel</a>, Pavel Durov explained why Telegram hasn't published the server code, even as a publicity stunt.</p>
|
||||
</blockquote>
|
||||
<p>The <a href="https://core.telegram.org/mtproto">encryption</a> and <a href="https://core.telegram.org">API</a> used on Telegram's servers are fully documented and open for review by security experts. We welcome any comments at <em>security@telegram.org</em></p>
|
||||
<h4><a class="anchor" name="q-can-i-run-telegram-using-my-own-server" href="#q-can-i-run-telegram-using-my-own-server"><i class="anchor-icon"></i></a>Q: Can I run Telegram using my own server?</h4>
|
||||
<p>Our architecture does not support federation yet. Telegram is a unified cloud service, so creating forks where two users might end up on two different Telegram clouds is unacceptable. To enable you to run your own Telegram server while retaining both speed and security is a task in itself. At the moment, we are undecided on whether or not Telegram should go in this direction.</p>
|
||||
<h4><a class="anchor" name="q-can-i-use-the-telegram-api" href="#q-can-i-use-the-telegram-api"><i class="anchor-icon"></i></a>Q: Can I use the Telegram API?</h4>
|
||||
<p>Yes. Developers for all platforms are welcome to use our <a href="//core.telegram.org/mtproto">protocol</a>, <a href="//core.telegram.org/api">API</a> and even <a href="https://telegram.org/apps#source-code">source code</a>. Check out the <a href="//core.telegram.org/api#getting-started">Getting started</a> section of the docs.</p>
|
||||
<blockquote>
|
||||
<p>Don't forget about our <a href="https://core.telegram.org/bots">Bot API</a> that lets you build cool stuff on our platform.</p>
|
||||
</blockquote>
|
||||
<h4><a class="anchor" name="q-do-you-have-a-privacy-policy" href="#q-do-you-have-a-privacy-policy"><i class="anchor-icon"></i></a>Q: Do you have a Privacy Policy?</h4>
|
||||
<p>Sure. Check <a href="/privacy">this</a> out.</p>
|
||||
<h4><a class="anchor" name="q-what-does-the-ios-privacy-sheet-mean" href="#q-what-does-the-ios-privacy-sheet-mean"><i class="anchor-icon"></i></a>Q: What does the iOS privacy sheet mean?</h4>
|
||||
<p>Apple created privacy sheets to inform users about what data apps may collect, but information there is vague and can be misleading. You can see a detailed explanation of Telegram's sheet <a href="https://telegram.org/apple_privacy">here</a>.</p>
|
||||
<h4><a class="anchor" name="q-why-do-you-have-two-apps-in-the-mac-app-store" href="#q-why-do-you-have-two-apps-in-the-mac-app-store"><i class="anchor-icon"></i></a>Q: Why do you have two apps in the Mac App Store?</h4>
|
||||
<p>One is our <a href="https://macos.telegram.org">app for macOS</a>, the other is Telegram Lite, the macOS version of our <a href="https://desktop.telegram.org">multi-platform client</a>. Both apps are official. Both started out as unofficial applications by two different developers and vary in design and functionality.</p>
|
||||
<p><a href="https://macos.telegram.org">Telegram for macOS</a> supports many platform-specific features, such as the MacBook Pro Touch Bar, gesture navigation, integration with the Mac's Share menu and more. It has every feature from the iOS version of the app including Secret Chats.</p>
|
||||
<p><a href="https://desktop.telegram.org">Telegram Lite</a> is a lightning-fast app, optimized for work-related tasks and handling large communities. It offers a three-column interface, perfect for multitasking and quick access to media, files and links shared in your chats. This app can also be used to <a href="https://telegram.org/blog/export-and-more">export your Telegram data and chats</a>.</p>
|
||||
<h4><a class="anchor" name="q-can-i-translate-telegram" href="#q-can-i-translate-telegram"><i class="anchor-icon"></i></a>Q: Can I translate Telegram?</h4>
|
||||
<p>Telegram is officially available in English, Spanish, German, Dutch, Italian, French, Arabic, Portuguese, Korean, Malay, Russian and Ukrainian on most platforms, and we are gradually expanding the list of languages built into the apps.</p>
|
||||
<p>If you don’t like how a specific element in Telegram's interface is translated in your language, or would like to help us maintain the translation, check out our <a href="https://translations.telegram.org">localization platform</a>. Everyone can suggest translations and vote for the best ones, making Telegram localization a community-driven effort.</p>
|
||||
<p>If you're looking to go beyond suggestions for individual phrases and would like to help us maintain the official translation to your language on a continuous basis, you can contact <a href="https://t.me/telegramauditions">@TelegramAuditions</a>. Please include a hashtag with the English name of your language (e.g. #Albanian) and a few links to phrases on this platform with your <strong>translation suggestions</strong> or <strong>comments</strong>. Be sure to read the <a href="https://translations.telegram.org/#style-guide"><strong>Style Guide</strong></a> carefully before you apply.</p>
|
||||
<h4><a class="anchor" name="q-can-i-help" href="#q-can-i-help"><i class="anchor-icon"></i></a>Q: Can I help?</h4>
|
||||
<p>Yes, we are always looking for volunteers to help us with user support. If you would be interested in answering questions about Telegram to users from your country, contact our auditions account.</p>
|
||||
<p>Before you apply, please check out the <a href="https://core.telegram.org/tsi">Telegram Support Initiative</a>.</p>
|
||||
<h3><a class="anchor" name="passport" href="#passport"><i class="anchor-icon"></i></a>Passport</h3>
|
||||
<p><strong>Telegram Passport</strong> is a unified authorization method for services that require personal identification. With Telegram Passport, you can upload your documents once, then instantly share your data with services that require real-world ID (finance, ICOs, etc.).</p>
|
||||
<p>Your identity documents and personal data will be stored in the Telegram cloud using <strong>End-to-End Encryption</strong>. To Telegram, this data is just random gibberish, and we have no access to the information you store in your Telegram Passport. When you share data, it goes directly to the recipient.</p>
|
||||
<blockquote>
|
||||
<p>You can find more information about Telegram Passport on our <a href="https://telegram.org/blog/passport">blog</a>.</p>
|
||||
</blockquote>
|
||||
<p>If you're a developer or owner of a service that requires real-life ID, kindly take a look at <a href="https://core.telegram.org/passport"><strong>this manual</strong></a>. You can also try requesting Telegram Passport data using <a href="https://core.telegram.org/passport/example">this page</a>.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" name="troubleshooting" href="#troubleshooting"><i class="anchor-icon"></i></a>Troubleshooting</h3>
|
||||
<h4><a class="anchor" name="login-and-sms" href="#login-and-sms"><i class="anchor-icon"></i></a>Login and SMS</h4>
|
||||
<p>Please make sure you are entering your mobile phone number in the international format.<br>I.e.: <code>+(country code)(city or carrier code)(your number)</code></p>
|
||||
<p>If you are having registration or login problems, please contact us using <a href="https://telegram.org/support">this form</a>.</p>
|
||||
<h4><a class="anchor" name="getting-a-code-via-a-phone-call" href="#getting-a-code-via-a-phone-call"><i class="anchor-icon"></i></a>Getting a code via a phone call</h4>
|
||||
<p>For security reasons, login codes dictated via a phone call are only available for accounts that have <strong>two-step verification</strong> enabled (Settings > Privacy & Security > Two-Step Verification). </p>
|
||||
<p>Please also note that Telegram accounts can only be connected to a mobile number. We currently don't support landline numbers.</p>
|
||||
<h4><a class="anchor" name="getting-a-code-via-telegram" href="#getting-a-code-via-telegram"><i class="anchor-icon"></i></a>Getting a code via Telegram</h4>
|
||||
<p>If you have recently used one of our apps on <strong>another device</strong> (it could also be a different app on the same device), we may send the login code <strong>via Telegram</strong> instead of SMS.</p>
|
||||
<p>To receive such a code, just check Telegram from any of your connected devices. You will find it in the chat with Telegram, a verified profile with a blue check:</p>
|
||||
<div class="blog_image_wrap">
|
||||
<a href="/file/811140682/1a34/C6cNb93Sl4w.36331/8d856ce132fda22ee0" target="_blank"><img src="/file/811140682/1a34/C6cNb93Sl4w.36331/8d856ce132fda22ee0" title="Login via Telegram" /></a>
|
||||
<p>Login code sent via Telegram</p>
|
||||
</div>
|
||||
|
||||
<p><strong>WARNING!</strong> Please note that getting codes via Telegram should not be considered an alternative to using an <strong>up-to-date phone number</strong>. In case of a change in numbers, always make sure <a href="#q-how-do-i-change-my-phone-number">Telegram is connected</a> to a phone number <strong>you control</strong>, otherwise you risk losing access to your account forever.</p>
|
||||
<h4><a class="anchor" name="notification-problems" href="#notification-problems"><i class="anchor-icon"></i></a>Notification problems</h4>
|
||||
<blockquote>
|
||||
<p>If the tips below don't help, check out this detailed guide on <a href="https://telegra.ph/Notifications-FIX"><strong>Troubleshooting Notification Issues</strong></a>.</p>
|
||||
</blockquote>
|
||||
<p><strong>ANDROID</strong></p>
|
||||
<ol>
|
||||
<li>Go to Telegram Settings — Notifications and Sounds, make sure that notifications are <strong>ON</strong> and Importance is set to <strong>“High”</strong> or greater.</li>
|
||||
<li>Check whether contact or group is <em>muted</em>.</li>
|
||||
<li>Make sure <a href="https://play.google.com/store/apps/details?id=com.google.android.gms">Google Play Services</a> are installed on your phone.</li>
|
||||
<li>Check <strong>notification priority</strong> for Telegram in <strong>Android settings</strong>, it can be called <em>Importance</em> or <em>Behaviour</em> depending on your device.</li>
|
||||
<li>If your phone uses some <strong>battery saving software</strong>, make sure that Telegram is whitelisted in that application.</li>
|
||||
</ol>
|
||||
<blockquote>
|
||||
<p>NOTE: <strong>Huawei</strong> and <strong>Xiaomi</strong> devices have evil task killer services that interfere with the Telegram notification service. For our notifications to work, you need to add Telegram to allowed apps in those devices' security settings. Huawei: Phone Manager App > Protected Apps > Add Telegram to the list. Xiaomi: Services > Security > Permissions > Autostart, find Telegram and enable autostart.</p>
|
||||
</blockquote>
|
||||
<p><strong>iOS</strong></p>
|
||||
<ol>
|
||||
<li>Go to Telegram Settings — Notifications and Sounds, make sure that notifications are ON in Telegram.</li>
|
||||
<li>Check that notifications are <strong>ON</strong> in phone Settings.</li>
|
||||
<li>Check, whether contact or group is <em>muted</em>.</li>
|
||||
<li>Shut down Telegram (go to home screen, double tap home button, swipe upwards on Telegram), then go to phone settings, set the alert style for Telegram to NONE. Relaunch Telegram, go to phone settings, set alert style back to banners.</li>
|
||||
</ol>
|
||||
<h4><a class="anchor" name="problems-with-contacts" href="#problems-with-contacts"><i class="anchor-icon"></i></a>Problems with contacts</h4>
|
||||
<p>If you know your friends have Telegram, but you can't see them — or they appear as numbers instead of names.</p>
|
||||
<p><em>Android:</em></p>
|
||||
<ol>
|
||||
<li>Make sure you are using the latest version of the app.</li>
|
||||
<li>Relaunch the app (by terminating it from processes list and launching again).</li>
|
||||
<li>Temporarily change the name of the contact in phone contacts (add a few symbols, then change back again).</li>
|
||||
<li>If that didn't help, re-login. Remember that logging out kills your Secret Chats.</li>
|
||||
</ol>
|
||||
<p><em>iOS:</em></p>
|
||||
<ol>
|
||||
<li>Force quit the app (double tap home button, then swipe up on Telegram), then relaunch and check if it helped.</li>
|
||||
<li>If that doesn't help, temporarily change the name of the contact in phone contacts (add a few symbols, then change back again).</li>
|
||||
<li>If that doesn’t work, re-login: Settings > Edit > Log Out. Remember that logging out kills all your Secret Chats. Then log in again.</li>
|
||||
</ol>
|
||||
<h4><a class="anchor" name="deleting-contacts-on-android" href="#deleting-contacts-on-android"><i class="anchor-icon"></i></a>Deleting contacts on Android</h4>
|
||||
<p>To delete a contact, open a chat with the person, tap the title in the top area of the chat screen to open their profile, then tap on (⋮) in the top right corner > 'Delete contact'.</p>
|
||||
<p>If you want to delete the contact completely, make sure you also delete them from your phone contacts. Telegram stays in sync and will add the contact back if you don't.</p>
|
||||
<h4><a class="anchor" name="where-did-my-secret-chat-messages-go" href="#where-did-my-secret-chat-messages-go"><i class="anchor-icon"></i></a>Where did my Secret Chat messages go?</h4>
|
||||
<p>Secret Chats are established between the two devices they were created on. This means that all those messages are not available in the cloud and cannot be accessed on other devices.</p>
|
||||
<p>Moreover, Secret Chats are also tied to your current login session on the device. If you log out and in again, you will lose all your Secret Chats.</p>
|
||||
<h4><a class="anchor" name="can-39t-send-messages-to-non-contacts" href="#can-39t-send-messages-to-non-contacts"><i class="anchor-icon"></i></a>Can't send messages to non-contacts</h4>
|
||||
<p>When users report unwanted messages from a Telegram account, we apply a limit: Reported accounts can only send messages to people who have their number saved as a contact.</p>
|
||||
<p>This means that if you randomly contact people you don't know and send them annoying messages, you may lose the ability to do so in the future.</p>
|
||||
<p>If you think that this limit was applied to your account wrongly, please visit <a href="/faq_spam">this page</a>.</p>
|
||||
<h4><a class="anchor" name="telegram-uses-the-camera-or-microphone-in-the-background" href="#telegram-uses-the-camera-or-microphone-in-the-background"><i class="anchor-icon"></i></a>Telegram uses the camera or microphone in the background!</h4>
|
||||
<p>Telegram can use the <strong>microphone</strong> in the background if you minimize the app when making a call, recording a video, or recording a voice/video message.</p>
|
||||
<p>Permission monitors on Samsung and Xiaomi can inadvertently flag and notify you that Telegram requested access to <strong>camera</strong> in the background. This happens when the app requests info about the camera — it isn’t using the camera. Unfortunately it may look the same to the Samsung and Xiaomi permission monitors.</p>
|
||||
<p>Camera info is requested by the app when you tap on the attachment button, or start recording a video or a video message. If you do this and quickly close the app, the already initiated request may try to run asynchronously when the app is already in the background, or be sent when the system wakes up the app to show a notification about a new message. In any case, these requests are only for the camera info, the app <em>never</em> uses the camera itself in the background.</p>
|
||||
<p>Anyone can check Telegram’s <a href="https://telegram.org/apps#source-code">open source code</a> and confirm that the app is not doing anything behind their back. We also offer <a href="https://telegram.org/blog/verifiable-apps-and-more">reproducible builds</a> that can help you prove that the version you downloaded from App Store or Google Play is built from the exact same source code we publish.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" name="telegram-support" href="#telegram-support"><i class="anchor-icon"></i></a>Telegram Support</h3>
|
||||
<p>If you have any other questions, please contact Telegram Support (in Telegram go to Settings — Ask a question). Note that we rely on volunteers for support.</p>
|
||||
<p>If you can't log in to your account, please use <a href="https://telegram.org/support">this form</a>.</p>
|
||||
<blockquote>
|
||||
<p>For <strong>media requests</strong>, please contact <a href="https://t.me/pressbot">@PressBot</a> on Telegram.</p>
|
||||
</blockquote>
|
||||
<h3><a class="anchor" name="twitter" href="#twitter"><i class="anchor-icon"></i></a>Twitter?</h3>
|
||||
<p>Yep. Follow us! <a href="https://twitter.com/telegram"><strong>@telegram</strong></a><br>Our twitter account in Spanish: <a href="https://twitter.com/telegram_es">@telegram_es</a><br>In Italian: <a href="https://twitter.com/telegram_it">@telegram_it</a><br>In Korean: <a href="https://twitter.com/telegram_kr">@Telegram_kr</a><br>In German: <a href="https://twitter.com/de_telegram">@de_telegram</a><br>For users from Brazil: <a href="https://twitter.com/telegram_br">@Telegram_br</a><br>Our Arabic-speaking users may find <a href="https://twitter.com/telegram_arabic">@telegram_arabic</a> more interesting.</p>
|
||||
<h3><a class="anchor" name="smstelegram-login-help-on-twitter" href="#smstelegram-login-help-on-twitter"><i class="anchor-icon"></i></a>@SmsTelegram, login help on Twitter</h3>
|
||||
<p>We have a special account that can help you with login problems, <a href="https://twitter.com/smstelegram"><strong>@smstelegram</strong></a>. This account is official. Don't be afraid to DM it the number you use for Telegram, we need this info to investigate issues.</p>
|
||||
<p>Be careful, we don't have any other support accounts on any social media platforms.</p>
|
||||
<h3><a class="anchor" name="facebook-or-other-platforms" href="#facebook-or-other-platforms"><i class="anchor-icon"></i></a>Facebook or other platforms?</h3>
|
||||
<p>If anyone on Facebook or any other platform is telling you they're us, they are <strong>not</strong>.</p>
|
||||
<p></p>
|
||||
</div>
|
||||
|
||||
</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="/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
<li><a href="/jobs">Jobs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="/dl/android">Android</a></li>
|
||||
<li><a href="/dl/wp">Windows Phone</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/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="/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
165
data/telegram.org/faq_channels.html
Normal file
165
data/telegram.org/faq_channels.html
Normal file
|
@ -0,0 +1,165 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Channels FAQ</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title" content="Channels FAQ">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:site_name" content="Telegram">
|
||||
<meta property="og:description" content="This FAQ is about Telegram channels.
|
||||
Back to the main FAQ »
|
||||
What is a channel?
|
||||
How are private and public channels different?…">
|
||||
|
||||
<meta property="fb:app_id" content="254098051407226">
|
||||
<meta property="vk:app_id" content="3782569">
|
||||
<meta name="apple-itunes-app" content="app-id=686449807">
|
||||
<meta name="telegram:channel" content="@telegram">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?215" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div id="fb-root"></div>
|
||||
<div class="tl_page_wrap">
|
||||
<div class="tl_page_head navbar navbar-static-top navbar navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right"><li class="dropdown top_lang_select"><a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#"><i class="dev_top_lang_icon"></i> <b class="minicaret"></b></a>
|
||||
<ul class="dropdown-menu"><li class=""><a href="?setln=en">English</a></li><li class="long "><a href="?setln=id">Bahasa Indonesia</a></li><li class="long "><a href="?setln=ms">Bahasa Melayu</a></li><li class=""><a href="?setln=de">Deutsch</a></li><li class=""><a href="?setln=es">Español</a></li><li class=""><a href="?setln=fr">Français</a></li><li class=""><a href="?setln=it">Italiano</a></li><li class=""><a href="?setln=nl">Nederlands</a></li><li class=""><a href="?setln=uz">O‘zbek</a></li><li class=""><a href="?setln=pl">Polski</a></li><li class="long "><a href="?setln=pt-br">Português (Brasil)</a></li><li class=""><a href="?setln=tr">Türkçe</a></li><li class=""><a href="?setln=be">Беларуская</a></li><li class=""><a href="?setln=ru">Русский</a></li><li class=""><a href="?setln=uk">Українська</a></li><li class=""><a href="?setln=ar">العربية</a></li><li class=""><a href="?setln=fa">فارسی</a></li><li class=""><a href="?setln=ko">한국어</a></li></ul></li><li class="navbar-twitter hidden-xs"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i> Twitter</a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class=""><a href="/">Home</a></li>
|
||||
<li class=""><a href="/faq">FAQ</a></li>
|
||||
<li class=""><a href="/apps">Apps</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/api">API</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/mtproto">Protocol</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix tl_page_container ">
|
||||
<div class="tl_page">
|
||||
<div id="dev_page_content_wrap" class=" dev_faq_page">
|
||||
<div class="dev_page_bread_crumbs"></div>
|
||||
<h1 id="dev_page_title">Channels FAQ</h1>
|
||||
|
||||
<div id="dev_page_content"><blockquote>
|
||||
<p>This FAQ is about Telegram channels.<br><a href="/faq">Back to the main FAQ »</a></p>
|
||||
</blockquote>
|
||||
<p><div class="dev_page_nav_wrap"></p>
|
||||
<ul>
|
||||
<li><a href="#q-what-39s-a-channel">What is a channel?</a></li>
|
||||
<li><a href="#q-how-are-public-and-private-channels-different">How are private and public channels different?</a></li>
|
||||
<li><a href="#q-what-can-administrators-do">What can administrators do?</a></li>
|
||||
<li><a href="#q-what-happens-if-i-delete-a-message">What happens if I delete a message?</a></li>
|
||||
<li><a href="#q-how-do-i-add-people-to-my-channel">How do I add people to my channel?</a></li>
|
||||
<li><a href="#q-what-does-the-eye-icon-mean">What does the eye icon mean?</a></li>
|
||||
<li><a href="#q-how-do-i-know-who-posted-a-message">How do I know who posted a message?</a></li>
|
||||
<li><a href="#q-are-there-any-feedback-options">Are there any feedback options?</a></li>
|
||||
</ul>
|
||||
<p></div></p>
|
||||
<hr>
|
||||
<h4><a class="anchor" name="q-what-39s-a-channel" href="#q-what-39s-a-channel"><i class="anchor-icon"></i></a>Q: What's a channel?</h4>
|
||||
<p>Channels are a tool for broadcasting <strong>public</strong> messages to large audiences. In fact, channels can have an unlimited number of subscribers. When you post in a channel, the message is signed with the channel's name and not yours. You can appoint additional administrators to help you manage the channel. New subscribers can see the entire message history in a channel once they join.</p>
|
||||
<p>If you'd like an example, join our official <a href="https://telegram.me/telegram">Telegram</a> channel to get notified about our updates.</p>
|
||||
<p>To create a channel:<br><em>iPhone:</em> Start a new message (tap the icon in the top-right corner in Chats). Then ‘New Channel’.<br><em>Android:</em> Tap the circular pencil icon in the chat list. Then ‘New Channel’.<br><em>Windows Phone:</em> Tap the ‘+’ button on the bottom bar. Then ‘New Channel’.</p>
|
||||
<h4><a class="anchor" name="q-how-are-public-and-private-channels-different" href="#q-how-are-public-and-private-channels-different"><i class="anchor-icon"></i></a>Q: How are public and private channels different?</h4>
|
||||
<p>Public channels have a username. Anyone can find them in Telegram search and join. Private channels are closed societies – you need to be added by the owner or get an invite link to join.</p>
|
||||
<p>Please note that private channels with publicly available invite links will be treated in the same way as public channels, should it come to <a href="https://telegram.org/faq#q-there-39s-illegal-content-on-telegram-how-do-i-take-it-down">content disputes</a>.</p>
|
||||
<h4><a class="anchor" name="q-what-can-administrators-do" href="#q-what-can-administrators-do"><i class="anchor-icon"></i></a>Q: What can administrators do?</h4>
|
||||
<p>The <strong>owner</strong> of a channel can broadcast messages, delete any messages, add subscribers (<a href="#q-how-do-i-add-people-to-my-channel">the first 200 only</a>), remove subscribers, change the channel's name, profile image and link, as well as delete the channel completely. The owner can also add and remove administators to help manage the channel.</p>
|
||||
<p>You can set up <a href="https://telegram.org/blog/admin-revolution#admin-rights"><strong>administrator rights</strong></a> for each individual administrator when you appoint them.</p>
|
||||
<h4><a class="anchor" name="q-what-happens-if-i-delete-a-message" href="#q-what-happens-if-i-delete-a-message"><i class="anchor-icon"></i></a>Q: What happens if I delete a message?</h4>
|
||||
<p>If a message is deleted in a channel, it will disappear for all subscribers.</p>
|
||||
<h4><a class="anchor" name="q-how-do-i-add-people-to-my-channel" href="#q-how-do-i-add-people-to-my-channel"><i class="anchor-icon"></i></a>Q: How do I add people to my channel?</h4>
|
||||
<p>As the channel's owner, you may invite the first 200 subscribers to your channel. Once the subscriber count reaches 200, the channel is on its own. If it's a public channel, it will have a username and a telegram.me/ link (e.g. <a href="https://t.me/telegram">t.me/telegram</a>) – you can post this link on social networks, advertise it in magazines, or tattoo it on your back. If you have a private channel, you can send an invite link to your friends. </p>
|
||||
<p>Please do not send channel links (or other unsolicited messages) to strangers. If they report spam from your account, you may be banned from contacting other people, however good your intentions.</p>
|
||||
<h4><a class="anchor" name="q-what-does-the-eye-icon-mean" href="#q-what-does-the-eye-icon-mean"><i class="anchor-icon"></i></a>Q: What does the eye icon mean?</h4>
|
||||
<p>Each post in a channel has a view counter. Views from forwarded copies of your messages are also included in the total count. This way you can see how far it has spread.</p>
|
||||
<p>Please note that these numbers are approximate — we don't want to keep a record for everything you've ever viewed. After a short while (around 4 days), Telegram will forget that you've seen a post and will count you again if you navigate to it. For this reason you may see several views for posts in a private channel where you are alone.</p>
|
||||
<h4><a class="anchor" name="q-how-do-i-know-who-posted-a-message" href="#q-how-do-i-know-who-posted-a-message"><i class="anchor-icon"></i></a>Q: How do I know who posted a message?</h4>
|
||||
<p>As the owner of the channel, you can enable admin signatures that users will see next to the view counters. These signature only mention the name of the administrator and no link to their profile.</p>
|
||||
<p>If the signatures are disabled, there is no way for users to know whether a message was posted by the owner or one of the administrators.</p>
|
||||
<h4><a class="anchor" name="q-are-there-any-feedback-options" href="#q-are-there-any-feedback-options"><i class="anchor-icon"></i></a>Q: Are there any feedback options?</h4>
|
||||
<p>You can add a <a href="https://telegram.org/blog/privacy-discussions-web-bots#broadcasts-meet-group-chats">discussion group chat</a> to the channel, and your subscribers will see a <a href="https://telegram.org/blog/filters-anonymous-admins-comments">comment button</a> for each post in the channel. Comments show up in a thread of their own and also land in the discussion group to keep everyone in the loop and make it easier for admins to keep the conversation civil.</p>
|
||||
<p>You can also use bots (e.g. the <a href="https://t.me/like">@like</a> bot) to add buttons to your posts.</p>
|
||||
</div>
|
||||
|
||||
</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="/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
<li><a href="/jobs">Jobs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="/dl/android">Android</a></li>
|
||||
<li><a href="/dl/wp">Windows Phone</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/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="/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
141
data/telegram.org/support.html
Normal file
141
data/telegram.org/support.html
Normal file
|
@ -0,0 +1,141 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Telegram support</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title" content="Telegram support">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:site_name" content="Telegram">
|
||||
<meta property="og:description" content="">
|
||||
|
||||
<meta property="fb:app_id" content="254098051407226">
|
||||
<meta property="vk:app_id" content="3782569">
|
||||
<meta name="apple-itunes-app" content="app-id=686449807">
|
||||
<meta name="telegram:channel" content="@telegram">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div id="fb-root"></div>
|
||||
<div class="tl_page_wrap">
|
||||
<div class="tl_page_head navbar navbar-static-top navbar navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right"><li class="dropdown top_lang_select"><a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#"><i class="dev_top_lang_icon"></i> <b class="minicaret"></b></a>
|
||||
<ul class="dropdown-menu"><li class=""><a href="?setln=en">English</a></li><li class="long "><a href="?setln=id">Bahasa Indonesia</a></li><li class="long "><a href="?setln=ms">Bahasa Melayu</a></li><li class=""><a href="?setln=de">Deutsch</a></li><li class=""><a href="?setln=es">Español</a></li><li class=""><a href="?setln=fr">Français</a></li><li class=""><a href="?setln=it">Italiano</a></li><li class=""><a href="?setln=nl">Nederlands</a></li><li class=""><a href="?setln=uz">O‘zbek</a></li><li class=""><a href="?setln=pl">Polski</a></li><li class="long "><a href="?setln=pt-br">Português (Brasil)</a></li><li class=""><a href="?setln=tr">Türkçe</a></li><li class=""><a href="?setln=be">Беларуская</a></li><li class=""><a href="?setln=ru">Русский</a></li><li class=""><a href="?setln=uk">Українська</a></li><li class=""><a href="?setln=ar">العربية</a></li><li class=""><a href="?setln=fa">فارسی</a></li><li class=""><a href="?setln=ko">한국어</a></li></ul></li><li class="navbar-twitter hidden-xs"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i> Twitter</a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class=""><a href="/">Home</a></li>
|
||||
<li class=""><a href="/faq">FAQ</a></li>
|
||||
<li class=""><a href="/apps">Apps</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/api">API</a></li>
|
||||
<li class="hidden-xs "><a href="//core.telegram.org/mtproto">Protocol</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix tl_page_container ">
|
||||
<div class="tl_page">
|
||||
<div class="container">
|
||||
<div class="support_wrap">
|
||||
<h1>Support</h1>
|
||||
|
||||
<form class="" action="/support" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="support_problem">Please describe your problem:</label>
|
||||
<textarea class="form-control" rows="3" id="support_problem" name="message"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="support_phone">Your email:</label>
|
||||
<input type="text" class="form-control" id="support_email" placeholder="user@gmail.com" name="email" value="">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="support_phone">Your phone number:</label>
|
||||
<input type="text" class="form-control" id="support_phone" placeholder="+12223334455" name="phone" value="">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="hidden" class="form-control" id="support_lang" name="setln" value="">
|
||||
</div>
|
||||
<div class="support_submit">
|
||||
<button type="submit" class="btn btn-primary btn-lg">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</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="/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
<li><a href="/jobs">Jobs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="/dl/android">Android</a></li>
|
||||
<li><a href="/dl/wp">Windows Phone</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/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="/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/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="/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)">Twitter</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?43"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
297
data/translations.telegram.org.html
Normal file
297
data/translations.telegram.org.html
Normal file
|
@ -0,0 +1,297 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Translations</title>
|
||||
<meta property="og:title" content="Telegram Localization Platform">
|
||||
<meta property="og:image" content="https://translations.telegram.org/file/811140670/16c2/VpvsRxIfc0k.140711/138731768d2c2ae7ba">
|
||||
<meta property="og:description" content="This is the Telegram translation interface. To get started, find a phrase in your language that you can improve and suggest a new translation – or vote for an existing suggestion.">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css">
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet">
|
||||
<link href="/css/translations.css?109" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/health.css?132" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
<link href="/css/billboard.css?17" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="emoji_image no-transition">
|
||||
|
||||
<div id="aj_progress" class="progress-bar"></div>
|
||||
|
||||
<div id="aj_content"><div class="tr-container">
|
||||
<header>
|
||||
<div class="container">
|
||||
|
||||
<div class="header-wrap">
|
||||
<div id="header-panel" class="header-panel">
|
||||
<div class="header-auth">
|
||||
<div class="header-auth-item"><a class="header-search-btn"></a></div><div class="header-auth-item"><a class="header-auth-link login-link" href="/auth">Login</a></div>
|
||||
</div>
|
||||
<div class="header-breadcrumb header-breadcrumb-simple">
|
||||
<ol id="breadcrumb" class="header-nav breadcrumb"><li><a href="/">Translations</a></li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="container">
|
||||
<nav class="tr-menu"><div class="tr-menu-section" data-menu-section-id="0">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Languages</div>
|
||||
|
||||
</div>
|
||||
<ul class="tr-menu-items" id="tr-menu-language-items"><li>
|
||||
<a class="tr-menu-item" href="/en/">
|
||||
<span class="nav-label">English</span>
|
||||
</a>
|
||||
</li><li class="languages-link">
|
||||
<a class="tr-menu-item">
|
||||
<span class="nav-label">Other languages...</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section" data-menu-section-id="1">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Apps</div>
|
||||
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li>
|
||||
<a class="tr-menu-item" href="/en/android/">
|
||||
<span class="nav-label">Android</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/">
|
||||
<span class="nav-label">iOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/">
|
||||
<span class="nav-label">TDesktop</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/">
|
||||
<span class="nav-label">macOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/">
|
||||
<span class="nav-label">Android X</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/emoji">
|
||||
<span class="nav-label">Emoji</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div></nav>
|
||||
<section class="content clearfix">
|
||||
<section class="tr-content"><div id="dev_page_content_wrap" class=" ">
|
||||
<div class="dev_page_bread_crumbs"></div>
|
||||
<h1 id="dev_page_title">Translating Telegram</h1>
|
||||
|
||||
<div id="dev_page_content"><div>
|
||||
<a href="/file/811140670/16c2/VpvsRxIfc0k.140711/138731768d2c2ae7ba" target="_blank"><img src="/file/811140670/16c2/VpvsRxIfc0k.140711/138731768d2c2ae7ba" title="translations.jpg, 137.41Kb" class="dev_side_image" style="max-width:400px" /></a>
|
||||
</div>
|
||||
|
||||
<p>We've worked hard to make Telegram's <strong>English version</strong> as smooth as possible in terms of language. Now we're looking for equally smooth <strong>translations</strong> into the rest of the world's languages. If you're a linguist, pro translator or language geek and would like to help us get closer to perfection, you've come to the right place.</p>
|
||||
<p><a data-href="/?start=1" class="languages-link arrow-link">Start Translating</a></p>
|
||||
|
||||
<h3><a class="anchor-link" href="#the-interface"><i class="anchor-icon"></i></a><a class="anchor" name="the-interface"></a>The Interface</h3>
|
||||
<p>To get started, simply log in, find a phrase in your language that you can improve and <strong>suggest a new translation</strong> – or vote for an existing suggestion. As soon as your suggestions are reviewed and accepted, the new phrases become <strong>immediately available</strong> in Telegram apps, no updates required.</p>
|
||||
<h3><a class="anchor-link" href="#official-translations"><i class="anchor-icon"></i></a><a class="anchor" name="official-translations"></a>Official Translations</h3>
|
||||
<p>We're gradually expanding the list of languages available to all users from the “Language” menu in their apps. If you would like to help us maintain the official translation to your language on a continuous basis, see <a href="https://telegram.org/faq#q-can-i-translate-telegram">this page</a>.</p>
|
||||
<hr>
|
||||
<h2><a class="anchor-link" href="#style-guide"><i class="anchor-icon"></i></a><a class="anchor" name="style-guide"></a>Style Guide</h2>
|
||||
<p>We think a <strong>good translation</strong> should be:</p>
|
||||
<h5><a class="anchor-link" href="#1-consistent"><i class="anchor-icon"></i></a><a class="anchor" name="1-consistent"></a>1. Consistent</h5>
|
||||
<p>The same things need to have the same names everywhere. Not just within one app, but also on all platforms. Telegram features should have the same names on Android, iOS, Windows and macOS – unless they have to do with platform defaults. For system features, we should always use platform defaults (unless they are truly ugly or don't fit).</p>
|
||||
<h5><a class="anchor-link" href="#2-natural"><i class="anchor-icon"></i></a><a class="anchor" name="2-natural"></a>2. Natural</h5>
|
||||
<p>You don't have to always stick to the English original. Sometimes it makes more sense to simply describe what the app does in your own language.</p>
|
||||
<p>But please don't get carried away:</p>
|
||||
<h5><a class="anchor-link" href="#3-default"><i class="anchor-icon"></i></a><a class="anchor" name="3-default"></a>3. Default</h5>
|
||||
<p>It's no longer 2001 and our users have seen many other apps. It will be much easier for them to use Telegram if familiar concepts have familiar names here. Whenever you're looking for a word, focus on those that people are used to seeing in relevant context. What does Apple use in this case? What does Google use? What do Telegram's main competitors in your region use?</p>
|
||||
<h5><a class="anchor-link" href="#4-beautiful"><i class="anchor-icon"></i></a><a class="anchor" name="4-beautiful"></a>4. Beautiful</h5>
|
||||
<p>Use good language that would make the app look as if it was built in your region. Respect your language's grammar and style where possible. Avoid abbreviations. Try to find ways around gender problems instead of going for things like <em>o(a)</em>, unless the workaround looks even more awkward. In most cases it's possible to find a way of saying anything without hurting the language. </p>
|
||||
<h5><a class="anchor-link" href="#5-and-it-must-fit"><i class="anchor-icon"></i></a><a class="anchor" name="5-and-it-must-fit"></a>5. And it MUST FIT</h5>
|
||||
<p>This last one is never easy. Sometimes you need to look to the surrounding phrases and change them for the problematic phrase to fit and work.</p>
|
||||
<blockquote>
|
||||
<p><strong>An example</strong>: the German team couldn't make the secret chats description fit into the lines on an empty chat page. The English text says: 'A user has invited you to a secret chat. Secret chats:' then comes a list that has this item: 'use end-to-end encryption'. The maximum length for the list items is 25 characters. The problem with German is that the term for end-to-end encryption is 'Ende-zu-Ende Verschlüsselung' and is 28 characters long even without the 'use'. An anglicized version would have been 'End-to-end Verschlüsselung' — but it's still too long at 26 characters.</p>
|
||||
<p>The German team found a workaround. They went and changed the first phrase, so that it now says 'A user has invited you to an end-to-end encrypted secret chat. Secret chats:' and then they came up with a new list item to replace the E2E encryption one, which was moved to the top - where there was enough room.</p>
|
||||
</blockquote>
|
||||
<hr>
|
||||
<h3><a class="anchor-link" href="#typography"><i class="anchor-icon"></i></a><a class="anchor" name="typography"></a>Typography</h3>
|
||||
<p>What we're looking for is not just linguistic, but also typographic and aesthetic correctness. The text is inseparable from design. Text <strong>is</strong> design and we need to make sure it <strong>works</strong>. So approach the text as a magazine editor would: </p>
|
||||
<ol>
|
||||
<li><strong>Everything must fit into its allotted space</strong>. So always check in-app after editing. Words and phrases that are too long will be automatically cut (Like thi…) or contracted (Li…is) — we can't allow this to happen. In other cases the text may flow over into the next line.</li>
|
||||
<li>The text should ideally be kept from spreading over two lines where the original only has one line.</li>
|
||||
<li>Same with double lines, try to avoid letting them spread into triple lines. Although this is a less strict requirement — it isn't too bad if you let the double-line descriptions in Settings become triple lined.</li>
|
||||
<li>We need to avoid hanging words when there's just one or two words left on a new line.</li>
|
||||
<li>We need to avoid gaps in the text, for example when the top right space is empty before the line break. A good way of avoiding this is to use shorter words, so that they wrap more easily. When short words are not an option, put your long ones at the beginning of the line, then add short words as padding. </li>
|
||||
<li>There will be times when making things fit will seem impossible. Our experience shows that it never is. Several determined people focusing on a word and the phrases around it will always find a solution after a few weeks, or even earlier. After all, it's just words.</li>
|
||||
</ol>
|
||||
<p>This takes some effort, but it really makes you feel proud when you're done.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor-link" href="#applied-typography"><i class="anchor-icon"></i></a><a class="anchor" name="applied-typography"></a>Applied Typography</h3>
|
||||
<p>On the whole, we've worked hard to make the English version as typographically sound as possible. So as a rule of thumb, if your phrase is the same length as the English one, it will fit well. If it is shorter — not too much of a problem, but beware of hanging words and gaps.</p>
|
||||
<p><strong>Note for iPhone Plus users:</strong> When checking strings in-app, try iOS Settings > Display & Brightness > View > 'Zoomed'. Using this mode you can make sure that strings will fit the screens of the narrower models.</p>
|
||||
<hr>
|
||||
<p>And that‘s about it. Let’s bring perfection to the localized versions of Telegram, together.</p>
|
||||
</div>
|
||||
|
||||
</div></section>
|
||||
</section>
|
||||
</main>
|
||||
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body">
|
||||
<section>
|
||||
<h2>Log In</h2>
|
||||
<p>Log in here to translate Telegram apps. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||||
|
||||
<form id="send-form" class="login-form">
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control tr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="login-form" class="hide">
|
||||
<div class="form-group">
|
||||
<span class="form-control tr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="popup-container languages-popup-container hide" id="languages-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body popup-has-footer">
|
||||
<h4>Languages</h4>
|
||||
|
||||
<form class="tr-popup-search-form tr-languages-search-form">
|
||||
<input class="form-control tr-popup-search-field tr-languages-search-field" placeholder="Search languages" autocomplete="off" value="">
|
||||
</form>
|
||||
<div class="tr-popup-search-results-wrap tr-languages-results-wrap">
|
||||
<div class="tr-popup-search-results tr-languages-results"></div>
|
||||
</div>
|
||||
<div class="tr-languages-add"><a href="/lang/new" data-layer class="need-auth">Add a new language</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?57"></script>
|
||||
<script src="/js/translations.js?97"></script>
|
||||
<script src="/js/jquery-ui.min.js?1"></script>
|
||||
<script src="/js/tesseract.js?1"></script>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/tchart.min.js?18"></script>
|
||||
<script src="/js/billboard.min.js?1"></script>
|
||||
<script src="/js/stats.js?17"></script>
|
||||
|
||||
<script>ajInit({"version":725,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"langList":["en","af","sq","am","ar","az","eu","be","bn","bg","ca","zh-hans","zh-hant","hr","cs","da","nl","eo","et","fi","fr","gl","de","el","gu","he","hi","hu","id","ga","it","ja","kn","kk","km","ko","lv","lt","ms","ml","mt","mr","nb","or","fa","pl","pt-br","pt-pt","ro","ru","sr","sk","sl","es","sw","sv","ta","te","th","tr","tk","uk","ur","uz","vi"],"langpackList":[],"curLang":"en"}});</script>
|
||||
<script id="aj_script">l.add({"WEB_ACTIVATE_LANGPACK_CONFIRM_TEXT":"Do you want to begin translating <b>{lang_pack}<\/b> to <b>{lang}<\/b>?","WEB_ACTIVATE_LANGPACK_CONFIRM_BUTTON":"Start Translating","WEB_LOADING":"Loading","WEB_NO_LANGUAGES_FOUND":"No languages found"});
|
||||
Header.init();
|
||||
Nav.init();
|
||||
Aj.onLoad(function(state) {
|
||||
function requestConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
var phone = $('#phone-number').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/request',
|
||||
data: {
|
||||
phone: phone
|
||||
},
|
||||
success: function(result) {
|
||||
$('#phone-number-field').text(phone);
|
||||
$('#send-form').addClass('hide');
|
||||
$('#login-form').removeClass('hide');
|
||||
checkAuth(result.temp_session);
|
||||
},
|
||||
error: function(xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function cancelConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
$('#phone-number-field').text('');
|
||||
$('#send-form').removeClass('hide');
|
||||
$('#login-form').addClass('hide');
|
||||
$('#phone-number').focus();
|
||||
clearTimeout(window.authTimeout);
|
||||
return false;
|
||||
}
|
||||
function checkAuth(temp_session) {
|
||||
clearTimeout(window.authTimeout);
|
||||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/login',
|
||||
data: {
|
||||
temp_session: temp_session
|
||||
},
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
location.reload();
|
||||
} else {
|
||||
checkAuth(temp_session);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}, 700);
|
||||
}
|
||||
$('#login-popup-container').on('popup:open', function() {
|
||||
$('#phone-number').focus();
|
||||
});
|
||||
$('#login-popup-container').on('popup:close', function() {
|
||||
cancelConfirmation();
|
||||
if (location.pathname == '/auth') {
|
||||
window.history && history.replaceState(null, null, '/');
|
||||
}
|
||||
});
|
||||
$('#login-popup-container #send-form').on('submit', requestConfirmation);
|
||||
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
closePopup('#login-popup-container');
|
||||
});
|
||||
$('#login-popup-container .login-back').on('click', cancelConfirmation);
|
||||
$('.login-link').on('click', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
openPopup('#login-popup-container');
|
||||
});
|
||||
});
|
||||
Aj.onUnload(function(state) {
|
||||
$('#login-popup-container').off('popup:open');
|
||||
$('#login-popup-container').off('popup:close');
|
||||
$('#login-popup-container #send-form').off('submit');
|
||||
$('#login-popup-container .login-cancel-btn').off('click');
|
||||
$('#login-popup-container .login-back').off('click');
|
||||
$('.login-link').off('click');
|
||||
});
|
||||
</script>
|
||||
<script>Aj.pageLoaded();</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
333
data/translations.telegram.org/en.html
Normal file
333
data/translations.telegram.org/en.html
Normal file
|
@ -0,0 +1,333 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Translations</title>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css">
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet">
|
||||
<link href="/css/translations.css?109" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/health.css?132" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
<link href="/css/billboard.css?17" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="emoji_image no-transition">
|
||||
|
||||
<div id="aj_progress" class="progress-bar"></div>
|
||||
|
||||
<div id="aj_content"><div class="tr-container">
|
||||
<header class=" has-search">
|
||||
<div class="container">
|
||||
<section class="tr-search">
|
||||
<div class="tr-search-field-wrap">
|
||||
<div class="tr-search-filters">
|
||||
<span class="tr-search-filters-label">Search in:</span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-lang"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">English</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="en">English</a></li><li><a class="tr-search-filter-item" data-value="af">Afrikaans</a></li><li><a class="tr-search-filter-item" data-value="sq">Albanian</a></li><li><a class="tr-search-filter-item" data-value="am">Amharic</a></li><li><a class="tr-search-filter-item" data-value="ar">Arabic</a></li><li><a class="tr-search-filter-item" data-value="az">Azerbaijani</a></li><li><a class="tr-search-filter-item" data-value="eu">Basque</a></li><li><a class="tr-search-filter-item" data-value="be">Belarusian</a></li><li><a class="tr-search-filter-item" data-value="bn">Bengali</a></li><li><a class="tr-search-filter-item" data-value="bg">Bulgarian</a></li><li><a class="tr-search-filter-item" data-value="ca">Catalan</a></li><li><a class="tr-search-filter-item" data-value="zh-hans">Chinese (Simplified)</a></li><li><a class="tr-search-filter-item" data-value="zh-hant">Chinese (Traditional)</a></li><li><a class="tr-search-filter-item" data-value="hr">Croatian</a></li><li><a class="tr-search-filter-item" data-value="cs">Czech</a></li><li><a class="tr-search-filter-item" data-value="da">Danish</a></li><li><a class="tr-search-filter-item" data-value="nl">Dutch</a></li><li><a class="tr-search-filter-item" data-value="eo">Esperanto</a></li><li><a class="tr-search-filter-item" data-value="et">Estonian</a></li><li><a class="tr-search-filter-item" data-value="fi">Finnish</a></li><li><a class="tr-search-filter-item" data-value="fr">French</a></li><li><a class="tr-search-filter-item" data-value="gl">Galician</a></li><li><a class="tr-search-filter-item" data-value="de">German</a></li><li><a class="tr-search-filter-item" data-value="el">Greek</a></li><li><a class="tr-search-filter-item" data-value="gu">Gujarati</a></li><li><a class="tr-search-filter-item" data-value="he">Hebrew</a></li><li><a class="tr-search-filter-item" data-value="hi">Hindi</a></li><li><a class="tr-search-filter-item" data-value="hu">Hungarian</a></li><li><a class="tr-search-filter-item" data-value="id">Indonesian</a></li><li><a class="tr-search-filter-item" data-value="ga">Irish</a></li><li><a class="tr-search-filter-item" data-value="it">Italian</a></li><li><a class="tr-search-filter-item" data-value="ja">Japanese</a></li><li><a class="tr-search-filter-item" data-value="kn">Kannada</a></li><li><a class="tr-search-filter-item" data-value="kk">Kazakh</a></li><li><a class="tr-search-filter-item" data-value="km">Khmer</a></li><li><a class="tr-search-filter-item" data-value="ko">Korean</a></li><li><a class="tr-search-filter-item" data-value="lv">Latvian</a></li><li><a class="tr-search-filter-item" data-value="lt">Lithuanian</a></li><li><a class="tr-search-filter-item" data-value="ms">Malay</a></li><li><a class="tr-search-filter-item" data-value="ml">Malayalam</a></li><li><a class="tr-search-filter-item" data-value="mt">Maltese</a></li><li><a class="tr-search-filter-item" data-value="mr">Marathi</a></li><li><a class="tr-search-filter-item" data-value="nb">Norwegian (Bokmål)</a></li><li><a class="tr-search-filter-item" data-value="or">Odia</a></li><li><a class="tr-search-filter-item" data-value="fa">Persian</a></li><li><a class="tr-search-filter-item" data-value="pl">Polish</a></li><li><a class="tr-search-filter-item" data-value="pt-br">Portuguese (Brazil)</a></li><li><a class="tr-search-filter-item" data-value="pt-pt">Portuguese (Portugal)</a></li><li><a class="tr-search-filter-item" data-value="ro">Romanian</a></li><li><a class="tr-search-filter-item" data-value="ru">Russian</a></li><li><a class="tr-search-filter-item" data-value="sr">Serbian</a></li><li><a class="tr-search-filter-item" data-value="sk">Slovak</a></li><li><a class="tr-search-filter-item" data-value="sl">Slovene</a></li><li><a class="tr-search-filter-item" data-value="es">Spanish</a></li><li><a class="tr-search-filter-item" data-value="sw">Swahili</a></li><li><a class="tr-search-filter-item" data-value="sv">Swedish</a></li><li><a class="tr-search-filter-item" data-value="ta">Tamil</a></li><li><a class="tr-search-filter-item" data-value="te">Telugu</a></li><li><a class="tr-search-filter-item" data-value="th">Thai</a></li><li><a class="tr-search-filter-item" data-value="tr">Turkish</a></li><li><a class="tr-search-filter-item" data-value="tk">Turkmen</a></li><li><a class="tr-search-filter-item" data-value="uk">Ukrainian</a></li><li><a class="tr-search-filter-item" data-value="ur">Urdu</a></li><li><a class="tr-search-filter-item" data-value="uz">Uzbek</a></li><li><a class="tr-search-filter-item" data-value="vi">Vietnamese</a></li></ul></span></span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-langpack"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">All Apps</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="">All Apps</a></li><li><a class="tr-search-filter-item" data-value="android">Android</a></li><li><a class="tr-search-filter-item" data-value="ios">iOS</a></li><li><a class="tr-search-filter-item" data-value="tdesktop">TDesktop</a></li><li><a class="tr-search-filter-item" data-value="macos">macOS</a></li><li><a class="tr-search-filter-item" data-value="android_x">Android X</a></li></ul></span></span>
|
||||
</div>
|
||||
<div class="tr-search-binding binding"></div>
|
||||
<div class="tr-search-enter arrow-right"></div>
|
||||
<div class="tr-search-reset close"></div>
|
||||
<form class="tr-search-form">
|
||||
<input class="form-control tr-search-field" placeholder="Search translations and keys" autocomplete="off" value="" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="tr-search-results collapsed"></div>
|
||||
</section>
|
||||
<div class="header-wrap">
|
||||
<div id="header-panel" class="header-panel">
|
||||
<div class="header-auth">
|
||||
<div class="header-auth-item"><a class="header-search-btn"></a></div><div class="header-auth-item"><a class="header-auth-link login-link" href="/auth">Login</a></div>
|
||||
</div>
|
||||
<div class="header-breadcrumb header-breadcrumb-simple">
|
||||
<ol id="breadcrumb" class="header-nav breadcrumb"><li><a href="/">Translations</a></li><li class="active">English</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="container">
|
||||
<nav class="tr-menu"><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="0">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Languages</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item tr-menu-item-default">
|
||||
<span class="nav-label">English</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items" id="tr-menu-language-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/">
|
||||
<span class="nav-label">English</span>
|
||||
</a>
|
||||
</li><li class="languages-link">
|
||||
<a class="tr-menu-item">
|
||||
<span class="nav-label">Other languages...</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section" data-menu-section-id="1">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Apps</div>
|
||||
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li>
|
||||
<a class="tr-menu-item" href="/en/android/">
|
||||
<span class="nav-label">Android</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/">
|
||||
<span class="nav-label">iOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/">
|
||||
<span class="nav-label">TDesktop</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/">
|
||||
<span class="nav-label">macOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/">
|
||||
<span class="nav-label">Android X</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/emoji">
|
||||
<span class="nav-label">Emoji</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div></nav>
|
||||
<section class="content clearfix">
|
||||
<section class="tr-content"><div class="mobile-view-skip">
|
||||
<h3 class="tr-header">
|
||||
<a href="/" class="tr-back"></a><span class="tr-label-max-width">English</span> <span class="tr-lang-native-name">(<span dir="auto" class="tr-label-max-width">English</span>)</span>
|
||||
<div class="tr-header-tabs"><span class="tr-header-tab"><a href="/en/recent/translations">Translations</a></span><span class="tr-header-tab"><a href="/en/recent/suggestions">Suggestions</a></span><span class="tr-header-tab"><a href="/en/recent/comments">Comments</a></span></div>
|
||||
</h3>
|
||||
<section class="tr-section-rows clearfix">
|
||||
<div class="tr-section-row">
|
||||
<div class="tr-section-wrap"><a href="/en/android/" class="tr-section">
|
||||
<div class="tr-section-circle circle_android"></div>
|
||||
<div class="tr-section-caption">Android</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-row">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/" class="tr-section">
|
||||
<div class="tr-section-circle circle_ios"></div>
|
||||
<div class="tr-section-caption">iOS</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-row">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/" class="tr-section">
|
||||
<div class="tr-section-circle circle_tdesktop"></div>
|
||||
<div class="tr-section-caption">TDesktop</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-row">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/" class="tr-section">
|
||||
<div class="tr-section-circle circle_macos"></div>
|
||||
<div class="tr-section-caption">macOS</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-row">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/" class="tr-section">
|
||||
<div class="tr-section-circle circle_android_x"></div>
|
||||
<div class="tr-section-caption">Android X</div>
|
||||
</a></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tr-section-block">
|
||||
<h4 class="tr-subheader">Discussions<span class="tr-badge">NEW</span></h4>
|
||||
<p>
|
||||
<b>Feel free</b> to join the discussion of this language pack.
|
||||
<a href="https://t.me/translation_en" target="_blank" class="arrow-link">View Discussion</a>
|
||||
</p>
|
||||
</section>
|
||||
<section class="tr-section-block">
|
||||
<h4 class="tr-subheader">Sharing Link<span class="tr-badge">NEW</span></h4>
|
||||
<p>
|
||||
Anyone can switch their Telegram interface to <b>English</b> by following this link:
|
||||
</p>
|
||||
<div class="tr-share-link-wrap">
|
||||
<a class="tr-share-link-copy">Copy Link</a>
|
||||
<span class="tr-share-link-copied ohide">Copied!</span>
|
||||
<input type="text" class="form-control tr-form-control tr-share-link" value="https://t.me/setlanguage/en" readonly>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tr-section-block">
|
||||
<h4 class="tr-subheader">Actions</h4>
|
||||
<div class="tr-actions">
|
||||
<div class="tr-action"><a class="tr-action-item action-share" href="https://t.me/setlanguage/en" target="_blank"><span class="tr-action-label">Use Telegram in English</span></a></div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tr-lang-intro mobile-view-only">
|
||||
<img class="tr-lang-intro-banner" src="/img/translations/lang_banner.png?1" />
|
||||
<div class="tr-lang-intro-name">English</div>
|
||||
<div class="tr-lang-intro-native-name">English</div>
|
||||
<div class="tr-lang-intro-text">Please open this link on a desktop to help translate Telegram into <b>English</b>:</div>
|
||||
<div class="tr-lang-intro-link"><a href="/en/?start=1">https://translations.telegram.org/en</a></div>
|
||||
<div class="tr-lang-intro-button-wrap">
|
||||
<a href="https://t.me/translation_en" target="_blank" class="btn btn-primary tr-lang-intro-button">View Discussion</a>
|
||||
</div>
|
||||
<div class="tr-lang-intro-under-button-text"><b>Feel free</b> to join the discussion of this language pack.</div>
|
||||
</div></section>
|
||||
</section>
|
||||
</main>
|
||||
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body">
|
||||
<section>
|
||||
<h2>Log In</h2>
|
||||
<p>Log in here to translate Telegram apps. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||||
|
||||
<form id="send-form" class="login-form">
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control tr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="login-form" class="hide">
|
||||
<div class="form-group">
|
||||
<span class="form-control tr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="popup-container languages-popup-container hide" id="languages-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body popup-has-footer">
|
||||
<h4>Languages</h4>
|
||||
|
||||
<form class="tr-popup-search-form tr-languages-search-form">
|
||||
<input class="form-control tr-popup-search-field tr-languages-search-field" placeholder="Search languages" autocomplete="off" value="">
|
||||
</form>
|
||||
<div class="tr-popup-search-results-wrap tr-languages-results-wrap">
|
||||
<div class="tr-popup-search-results tr-languages-results"></div>
|
||||
</div>
|
||||
<div class="tr-languages-add"><a href="/lang/new" data-layer class="need-auth">Add a new language</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?57"></script>
|
||||
<script src="/js/translations.js?97"></script>
|
||||
<script src="/js/jquery-ui.min.js?1"></script>
|
||||
<script src="/js/tesseract.js?1"></script>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/tchart.min.js?18"></script>
|
||||
<script src="/js/billboard.min.js?1"></script>
|
||||
<script src="/js/stats.js?17"></script>
|
||||
|
||||
<script>ajInit({"version":725,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"searchLang":"en","searchLangpack":"","langNames":{"en":"English","af":"Afrikaans","sq":"Albanian","am":"Amharic","ar":"Arabic","az":"Azerbaijani","eu":"Basque","be":"Belarusian","bn":"Bengali","bg":"Bulgarian","ca":"Catalan","zh-hans":"Chinese (Simplified)","zh-hant":"Chinese (Traditional)","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch","eo":"Esperanto","et":"Estonian","fi":"Finnish","fr":"French","gl":"Galician","de":"German","el":"Greek","gu":"Gujarati","he":"Hebrew","hi":"Hindi","hu":"Hungarian","id":"Indonesian","ga":"Irish","it":"Italian","ja":"Japanese","kn":"Kannada","kk":"Kazakh","km":"Khmer","ko":"Korean","lv":"Latvian","lt":"Lithuanian","ms":"Malay","ml":"Malayalam","mt":"Maltese","mr":"Marathi","nb":"Norwegian (Bokmål)","or":"Odia","fa":"Persian","pl":"Polish","pt-br":"Portuguese (Brazil)","pt-pt":"Portuguese (Portugal)","ro":"Romanian","ru":"Russian","sr":"Serbian","sk":"Slovak","sl":"Slovene","es":"Spanish","sw":"Swahili","sv":"Swedish","ta":"Tamil","te":"Telugu","th":"Thai","tr":"Turkish","tk":"Turkmen","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese"},"langpackList":[],"langpackNames":{"":"All Apps","android":"Android","ios":"iOS","tdesktop":"TDesktop","macos":"macOS","android_x":"Android X"},"langList":["en","af","sq","am","ar","az","eu","be","bn","bg","ca","zh-hans","zh-hant","hr","cs","da","nl","eo","et","fi","fr","gl","de","el","gu","he","hi","hu","id","ga","it","ja","kn","kk","km","ko","lv","lt","ms","ml","mt","mr","nb","or","fa","pl","pt-br","pt-pt","ro","ru","sr","sk","sl","es","sw","sv","ta","te","th","tr","tk","uk","ur","uz","vi"],"curLang":"en"}});</script>
|
||||
<script id="aj_script">l.add({"WEB_PLURALIZED_LABEL_0":"Zero","WEB_PLURALIZED_LABEL_1":"One","WEB_PLURALIZED_LABEL_2":"Two","WEB_PLURALIZED_LABEL_3":"Few","WEB_PLURALIZED_LABEL_4":"Many","WEB_PLURALIZED_LABEL_5":"Other","WEB_NO_TRANSLATIONS_FOUND":"No translations found","WEB_TRANSLATIONS_LOADING":"Loading","WEB_ACTIVATE_LANGPACK_CONFIRM_TEXT":"Do you want to begin translating <b>{lang_pack}<\/b> to <b>{lang}<\/b>?","WEB_ACTIVATE_LANGPACK_CONFIRM_BUTTON":"Start Translating","WEB_LOADING":"Loading","WEB_NO_LANGUAGES_FOUND":"No languages found"});
|
||||
Share.init();
|
||||
Share.initStartLink();
|
||||
Search.init();
|
||||
Header.init();
|
||||
Nav.init();
|
||||
Aj.onLoad(function(state) {
|
||||
function requestConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
var phone = $('#phone-number').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/request',
|
||||
data: {
|
||||
phone: phone
|
||||
},
|
||||
success: function(result) {
|
||||
$('#phone-number-field').text(phone);
|
||||
$('#send-form').addClass('hide');
|
||||
$('#login-form').removeClass('hide');
|
||||
checkAuth(result.temp_session);
|
||||
},
|
||||
error: function(xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function cancelConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
$('#phone-number-field').text('');
|
||||
$('#send-form').removeClass('hide');
|
||||
$('#login-form').addClass('hide');
|
||||
$('#phone-number').focus();
|
||||
clearTimeout(window.authTimeout);
|
||||
return false;
|
||||
}
|
||||
function checkAuth(temp_session) {
|
||||
clearTimeout(window.authTimeout);
|
||||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/login',
|
||||
data: {
|
||||
temp_session: temp_session
|
||||
},
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
location.reload();
|
||||
} else {
|
||||
checkAuth(temp_session);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}, 700);
|
||||
}
|
||||
$('#login-popup-container').on('popup:open', function() {
|
||||
$('#phone-number').focus();
|
||||
});
|
||||
$('#login-popup-container').on('popup:close', function() {
|
||||
cancelConfirmation();
|
||||
if (location.pathname == '/auth') {
|
||||
window.history && history.replaceState(null, null, '/');
|
||||
}
|
||||
});
|
||||
$('#login-popup-container #send-form').on('submit', requestConfirmation);
|
||||
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
closePopup('#login-popup-container');
|
||||
});
|
||||
$('#login-popup-container .login-back').on('click', cancelConfirmation);
|
||||
$('.login-link').on('click', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
openPopup('#login-popup-container');
|
||||
});
|
||||
});
|
||||
Aj.onUnload(function(state) {
|
||||
$('#login-popup-container').off('popup:open');
|
||||
$('#login-popup-container').off('popup:close');
|
||||
$('#login-popup-container #send-form').off('submit');
|
||||
$('#login-popup-container .login-cancel-btn').off('click');
|
||||
$('#login-popup-container .login-back').off('click');
|
||||
$('.login-link').off('click');
|
||||
});
|
||||
</script>
|
||||
<script>Aj.pageLoaded();</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
388
data/translations.telegram.org/en/android.html
Normal file
388
data/translations.telegram.org/en/android.html
Normal file
|
@ -0,0 +1,388 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Translations</title>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css">
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet">
|
||||
<link href="/css/translations.css?109" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/health.css?132" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
<link href="/css/billboard.css?17" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="emoji_image no-transition">
|
||||
|
||||
<div id="aj_progress" class="progress-bar"></div>
|
||||
|
||||
<div id="aj_content"><div class="tr-container">
|
||||
<header class=" has-search">
|
||||
<div class="container">
|
||||
<section class="tr-search">
|
||||
<div class="tr-search-field-wrap">
|
||||
<div class="tr-search-filters">
|
||||
<span class="tr-search-filters-label">Search in:</span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-lang"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">English</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="en">English</a></li><li><a class="tr-search-filter-item" data-value="af">Afrikaans</a></li><li><a class="tr-search-filter-item" data-value="sq">Albanian</a></li><li><a class="tr-search-filter-item" data-value="am">Amharic</a></li><li><a class="tr-search-filter-item" data-value="ar">Arabic</a></li><li><a class="tr-search-filter-item" data-value="az">Azerbaijani</a></li><li><a class="tr-search-filter-item" data-value="eu">Basque</a></li><li><a class="tr-search-filter-item" data-value="be">Belarusian</a></li><li><a class="tr-search-filter-item" data-value="bn">Bengali</a></li><li><a class="tr-search-filter-item" data-value="bg">Bulgarian</a></li><li><a class="tr-search-filter-item" data-value="ca">Catalan</a></li><li><a class="tr-search-filter-item" data-value="zh-hans">Chinese (Simplified)</a></li><li><a class="tr-search-filter-item" data-value="zh-hant">Chinese (Traditional)</a></li><li><a class="tr-search-filter-item" data-value="hr">Croatian</a></li><li><a class="tr-search-filter-item" data-value="cs">Czech</a></li><li><a class="tr-search-filter-item" data-value="da">Danish</a></li><li><a class="tr-search-filter-item" data-value="nl">Dutch</a></li><li><a class="tr-search-filter-item" data-value="eo">Esperanto</a></li><li><a class="tr-search-filter-item" data-value="et">Estonian</a></li><li><a class="tr-search-filter-item" data-value="fi">Finnish</a></li><li><a class="tr-search-filter-item" data-value="fr">French</a></li><li><a class="tr-search-filter-item" data-value="gl">Galician</a></li><li><a class="tr-search-filter-item" data-value="de">German</a></li><li><a class="tr-search-filter-item" data-value="el">Greek</a></li><li><a class="tr-search-filter-item" data-value="gu">Gujarati</a></li><li><a class="tr-search-filter-item" data-value="he">Hebrew</a></li><li><a class="tr-search-filter-item" data-value="hi">Hindi</a></li><li><a class="tr-search-filter-item" data-value="hu">Hungarian</a></li><li><a class="tr-search-filter-item" data-value="id">Indonesian</a></li><li><a class="tr-search-filter-item" data-value="ga">Irish</a></li><li><a class="tr-search-filter-item" data-value="it">Italian</a></li><li><a class="tr-search-filter-item" data-value="ja">Japanese</a></li><li><a class="tr-search-filter-item" data-value="kn">Kannada</a></li><li><a class="tr-search-filter-item" data-value="kk">Kazakh</a></li><li><a class="tr-search-filter-item" data-value="km">Khmer</a></li><li><a class="tr-search-filter-item" data-value="ko">Korean</a></li><li><a class="tr-search-filter-item" data-value="lv">Latvian</a></li><li><a class="tr-search-filter-item" data-value="lt">Lithuanian</a></li><li><a class="tr-search-filter-item" data-value="ms">Malay</a></li><li><a class="tr-search-filter-item" data-value="ml">Malayalam</a></li><li><a class="tr-search-filter-item" data-value="mt">Maltese</a></li><li><a class="tr-search-filter-item" data-value="mr">Marathi</a></li><li><a class="tr-search-filter-item" data-value="nb">Norwegian (Bokmål)</a></li><li><a class="tr-search-filter-item" data-value="or">Odia</a></li><li><a class="tr-search-filter-item" data-value="fa">Persian</a></li><li><a class="tr-search-filter-item" data-value="pl">Polish</a></li><li><a class="tr-search-filter-item" data-value="pt-br">Portuguese (Brazil)</a></li><li><a class="tr-search-filter-item" data-value="pt-pt">Portuguese (Portugal)</a></li><li><a class="tr-search-filter-item" data-value="ro">Romanian</a></li><li><a class="tr-search-filter-item" data-value="ru">Russian</a></li><li><a class="tr-search-filter-item" data-value="sr">Serbian</a></li><li><a class="tr-search-filter-item" data-value="sk">Slovak</a></li><li><a class="tr-search-filter-item" data-value="sl">Slovene</a></li><li><a class="tr-search-filter-item" data-value="es">Spanish</a></li><li><a class="tr-search-filter-item" data-value="sw">Swahili</a></li><li><a class="tr-search-filter-item" data-value="sv">Swedish</a></li><li><a class="tr-search-filter-item" data-value="ta">Tamil</a></li><li><a class="tr-search-filter-item" data-value="te">Telugu</a></li><li><a class="tr-search-filter-item" data-value="th">Thai</a></li><li><a class="tr-search-filter-item" data-value="tr">Turkish</a></li><li><a class="tr-search-filter-item" data-value="tk">Turkmen</a></li><li><a class="tr-search-filter-item" data-value="uk">Ukrainian</a></li><li><a class="tr-search-filter-item" data-value="ur">Urdu</a></li><li><a class="tr-search-filter-item" data-value="uz">Uzbek</a></li><li><a class="tr-search-filter-item" data-value="vi">Vietnamese</a></li></ul></span></span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-langpack"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">Android</span><span class="dropdown-menu"><ul class="dropdown-menu"><li><a class="tr-search-filter-item" data-value="">All Apps</a></li><li class="selected"><a class="tr-search-filter-item" data-value="android">Android</a></li><li><a class="tr-search-filter-item" data-value="ios">iOS</a></li><li><a class="tr-search-filter-item" data-value="tdesktop">TDesktop</a></li><li><a class="tr-search-filter-item" data-value="macos">macOS</a></li><li><a class="tr-search-filter-item" data-value="android_x">Android X</a></li></ul></span></span>
|
||||
</div>
|
||||
<div class="tr-search-binding binding"></div>
|
||||
<div class="tr-search-enter arrow-right"></div>
|
||||
<div class="tr-search-reset close"></div>
|
||||
<form class="tr-search-form">
|
||||
<input class="form-control tr-search-field" placeholder="Search translations and keys" autocomplete="off" value="" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="tr-search-results collapsed"></div>
|
||||
</section>
|
||||
<div class="header-wrap">
|
||||
<div id="header-panel" class="header-panel">
|
||||
<div class="header-auth">
|
||||
<div class="header-auth-item"><a class="header-search-btn"></a></div><div class="header-auth-item"><a class="header-auth-link login-link" href="/auth">Login</a></div>
|
||||
</div>
|
||||
<div class="header-breadcrumb header-breadcrumb-simple">
|
||||
<ol id="breadcrumb" class="header-nav breadcrumb"><li><a href="/">Translations</a></li><li><a href="/en/">English</a></li><li class="active">Android</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="container">
|
||||
<nav class="tr-menu"><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="0">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Languages</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item tr-menu-item-default">
|
||||
<span class="nav-label">English</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items" id="tr-menu-language-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/">
|
||||
<span class="nav-label">English</span>
|
||||
</a>
|
||||
</li><li class="languages-link">
|
||||
<a class="tr-menu-item">
|
||||
<span class="nav-label">Other languages...</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="1">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Apps</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">Android</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/android/">
|
||||
<span class="nav-label">Android</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/">
|
||||
<span class="nav-label">iOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/">
|
||||
<span class="nav-label">TDesktop</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/">
|
||||
<span class="nav-label">macOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/">
|
||||
<span class="nav-label">Android X</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/emoji">
|
||||
<span class="nav-label">Emoji</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="2">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Sections</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">All Sections</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/android/">
|
||||
<span class="nav-label">All Sections</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/login/">
|
||||
<span class="nav-label">Log In</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/chat_list/">
|
||||
<span class="nav-label">Chat List</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/private_chats/">
|
||||
<span class="nav-label">Private chats</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/groups_and_channels/">
|
||||
<span class="nav-label">Groups And Channels</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/profile/">
|
||||
<span class="nav-label">Profile</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/settings/">
|
||||
<span class="nav-label">Settings</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/camera_and_media/">
|
||||
<span class="nav-label">Camera And Media</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/bots_and_payments/">
|
||||
<span class="nav-label">Bots And Payments</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/passport/">
|
||||
<span class="nav-label">Passport</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/general/">
|
||||
<span class="nav-label">General</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android/unsorted/">
|
||||
<span class="nav-label">Unsorted</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div></nav>
|
||||
<section class="content clearfix">
|
||||
<section class="tr-content"><h3 class="tr-header">
|
||||
<a href="/en/" class="tr-back"></a>Android<span class="tr-header-counter">4364</span>
|
||||
<div class="tr-header-tabs"><span class="tr-header-tab"><a href="/en/android/recent/translations">Translations</a></span><span class="tr-header-tab"><a href="/en/android/recent/suggestions">Suggestions</a></span><span class="tr-header-tab"><a href="/en/android/recent/comments">Comments</a></span></div>
|
||||
</h3>
|
||||
<section class="tr-sections clearfix">
|
||||
<div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/login/" class="tr-section">
|
||||
<div class="tr-section-cover cover2"></div>
|
||||
<div class="tr-section-caption">Log In (129)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/chat_list/" class="tr-section">
|
||||
<div class="tr-section-cover cover3"></div>
|
||||
<div class="tr-section-caption">Chat List (251)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/private_chats/" class="tr-section">
|
||||
<div class="tr-section-cover cover4"></div>
|
||||
<div class="tr-section-caption">Private chats (284)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/groups_and_channels/" class="tr-section">
|
||||
<div class="tr-section-cover cover8"></div>
|
||||
<div class="tr-section-caption">Groups And Channels (1006)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/profile/" class="tr-section">
|
||||
<div class="tr-section-cover cover5"></div>
|
||||
<div class="tr-section-caption">Profile (103)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/settings/" class="tr-section">
|
||||
<div class="tr-section-cover cover7"></div>
|
||||
<div class="tr-section-caption">Settings (914)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/camera_and_media/" class="tr-section">
|
||||
<div class="tr-section-cover cover6"></div>
|
||||
<div class="tr-section-caption">Camera And Media (221)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/bots_and_payments/" class="tr-section">
|
||||
<div class="tr-section-cover cover9"></div>
|
||||
<div class="tr-section-caption">Bots And Payments (107)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/passport/" class="tr-section">
|
||||
<div class="tr-section-cover cover10"></div>
|
||||
<div class="tr-section-caption">Passport (179)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/general/" class="tr-section">
|
||||
<div class="tr-section-cover cover1"></div>
|
||||
<div class="tr-section-caption">General (961)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android/unsorted/" class="tr-section">
|
||||
<div class="tr-section-cover cover0"></div>
|
||||
<div class="tr-section-caption">Unsorted (574)</div>
|
||||
</a></div>
|
||||
</div>
|
||||
</section></section>
|
||||
</section>
|
||||
</main>
|
||||
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body">
|
||||
<section>
|
||||
<h2>Log In</h2>
|
||||
<p>Log in here to translate Telegram apps. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||||
|
||||
<form id="send-form" class="login-form">
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control tr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="login-form" class="hide">
|
||||
<div class="form-group">
|
||||
<span class="form-control tr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="popup-container languages-popup-container hide" id="languages-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body popup-has-footer">
|
||||
<h4>Languages</h4>
|
||||
|
||||
<form class="tr-popup-search-form tr-languages-search-form">
|
||||
<input class="form-control tr-popup-search-field tr-languages-search-field" placeholder="Search languages" autocomplete="off" value="">
|
||||
</form>
|
||||
<div class="tr-popup-search-results-wrap tr-languages-results-wrap">
|
||||
<div class="tr-popup-search-results tr-languages-results"></div>
|
||||
</div>
|
||||
<div class="tr-languages-add"><a href="/lang/new" data-layer class="need-auth">Add a new language</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?57"></script>
|
||||
<script src="/js/translations.js?97"></script>
|
||||
<script src="/js/jquery-ui.min.js?1"></script>
|
||||
<script src="/js/tesseract.js?1"></script>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/tchart.min.js?18"></script>
|
||||
<script src="/js/billboard.min.js?1"></script>
|
||||
<script src="/js/stats.js?17"></script>
|
||||
|
||||
<script>ajInit({"version":725,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"searchLang":"en","searchLangpack":"android","langNames":{"en":"English","af":"Afrikaans","sq":"Albanian","am":"Amharic","ar":"Arabic","az":"Azerbaijani","eu":"Basque","be":"Belarusian","bn":"Bengali","bg":"Bulgarian","ca":"Catalan","zh-hans":"Chinese (Simplified)","zh-hant":"Chinese (Traditional)","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch","eo":"Esperanto","et":"Estonian","fi":"Finnish","fr":"French","gl":"Galician","de":"German","el":"Greek","gu":"Gujarati","he":"Hebrew","hi":"Hindi","hu":"Hungarian","id":"Indonesian","ga":"Irish","it":"Italian","ja":"Japanese","kn":"Kannada","kk":"Kazakh","km":"Khmer","ko":"Korean","lv":"Latvian","lt":"Lithuanian","ms":"Malay","ml":"Malayalam","mt":"Maltese","mr":"Marathi","nb":"Norwegian (Bokmål)","or":"Odia","fa":"Persian","pl":"Polish","pt-br":"Portuguese (Brazil)","pt-pt":"Portuguese (Portugal)","ro":"Romanian","ru":"Russian","sr":"Serbian","sk":"Slovak","sl":"Slovene","es":"Spanish","sw":"Swahili","sv":"Swedish","ta":"Tamil","te":"Telugu","th":"Thai","tr":"Turkish","tk":"Turkmen","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese"},"langpackList":[],"langpackNames":{"":"All Apps","android":"Android","ios":"iOS","tdesktop":"TDesktop","macos":"macOS","android_x":"Android X"},"langList":["en","af","sq","am","ar","az","eu","be","bn","bg","ca","zh-hans","zh-hant","hr","cs","da","nl","eo","et","fi","fr","gl","de","el","gu","he","hi","hu","id","ga","it","ja","kn","kk","km","ko","lv","lt","ms","ml","mt","mr","nb","or","fa","pl","pt-br","pt-pt","ro","ru","sr","sk","sl","es","sw","sv","ta","te","th","tr","tk","uk","ur","uz","vi"],"curLang":"en","curLangpack":"android"}});</script>
|
||||
<script id="aj_script">l.add({"WEB_PLURALIZED_LABEL_0":"Zero","WEB_PLURALIZED_LABEL_1":"One","WEB_PLURALIZED_LABEL_2":"Two","WEB_PLURALIZED_LABEL_3":"Few","WEB_PLURALIZED_LABEL_4":"Many","WEB_PLURALIZED_LABEL_5":"Other","WEB_NO_TRANSLATIONS_FOUND":"No translations found","WEB_TRANSLATIONS_LOADING":"Loading","WEB_ACTIVATE_LANGPACK_CONFIRM_TEXT":"Do you want to begin translating <b>{lang_pack}<\/b> to <b>{lang}<\/b>?","WEB_ACTIVATE_LANGPACK_CONFIRM_BUTTON":"Start Translating","WEB_LOADING":"Loading","WEB_NO_LANGUAGES_FOUND":"No languages found"});
|
||||
Search.init();
|
||||
Header.init();
|
||||
Nav.init();
|
||||
Aj.onLoad(function(state) {
|
||||
function requestConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
var phone = $('#phone-number').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/request',
|
||||
data: {
|
||||
phone: phone
|
||||
},
|
||||
success: function(result) {
|
||||
$('#phone-number-field').text(phone);
|
||||
$('#send-form').addClass('hide');
|
||||
$('#login-form').removeClass('hide');
|
||||
checkAuth(result.temp_session);
|
||||
},
|
||||
error: function(xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function cancelConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
$('#phone-number-field').text('');
|
||||
$('#send-form').removeClass('hide');
|
||||
$('#login-form').addClass('hide');
|
||||
$('#phone-number').focus();
|
||||
clearTimeout(window.authTimeout);
|
||||
return false;
|
||||
}
|
||||
function checkAuth(temp_session) {
|
||||
clearTimeout(window.authTimeout);
|
||||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/login',
|
||||
data: {
|
||||
temp_session: temp_session
|
||||
},
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
location.reload();
|
||||
} else {
|
||||
checkAuth(temp_session);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}, 700);
|
||||
}
|
||||
$('#login-popup-container').on('popup:open', function() {
|
||||
$('#phone-number').focus();
|
||||
});
|
||||
$('#login-popup-container').on('popup:close', function() {
|
||||
cancelConfirmation();
|
||||
if (location.pathname == '/auth') {
|
||||
window.history && history.replaceState(null, null, '/');
|
||||
}
|
||||
});
|
||||
$('#login-popup-container #send-form').on('submit', requestConfirmation);
|
||||
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
closePopup('#login-popup-container');
|
||||
});
|
||||
$('#login-popup-container .login-back').on('click', cancelConfirmation);
|
||||
$('.login-link').on('click', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
openPopup('#login-popup-container');
|
||||
});
|
||||
});
|
||||
Aj.onUnload(function(state) {
|
||||
$('#login-popup-container').off('popup:open');
|
||||
$('#login-popup-container').off('popup:close');
|
||||
$('#login-popup-container #send-form').off('submit');
|
||||
$('#login-popup-container .login-cancel-btn').off('click');
|
||||
$('#login-popup-container .login-back').off('click');
|
||||
$('.login-link').off('click');
|
||||
});
|
||||
</script>
|
||||
<script>Aj.pageLoaded();</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
388
data/translations.telegram.org/en/android_x.html
Normal file
388
data/translations.telegram.org/en/android_x.html
Normal file
|
@ -0,0 +1,388 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Translations</title>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css">
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet">
|
||||
<link href="/css/translations.css?109" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/health.css?132" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
<link href="/css/billboard.css?17" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="emoji_image no-transition">
|
||||
|
||||
<div id="aj_progress" class="progress-bar"></div>
|
||||
|
||||
<div id="aj_content"><div class="tr-container">
|
||||
<header class=" has-search">
|
||||
<div class="container">
|
||||
<section class="tr-search">
|
||||
<div class="tr-search-field-wrap">
|
||||
<div class="tr-search-filters">
|
||||
<span class="tr-search-filters-label">Search in:</span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-lang"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">English</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="en">English</a></li><li><a class="tr-search-filter-item" data-value="af">Afrikaans</a></li><li><a class="tr-search-filter-item" data-value="sq">Albanian</a></li><li><a class="tr-search-filter-item" data-value="am">Amharic</a></li><li><a class="tr-search-filter-item" data-value="ar">Arabic</a></li><li><a class="tr-search-filter-item" data-value="az">Azerbaijani</a></li><li><a class="tr-search-filter-item" data-value="eu">Basque</a></li><li><a class="tr-search-filter-item" data-value="be">Belarusian</a></li><li><a class="tr-search-filter-item" data-value="bn">Bengali</a></li><li><a class="tr-search-filter-item" data-value="bg">Bulgarian</a></li><li><a class="tr-search-filter-item" data-value="ca">Catalan</a></li><li><a class="tr-search-filter-item" data-value="zh-hans">Chinese (Simplified)</a></li><li><a class="tr-search-filter-item" data-value="zh-hant">Chinese (Traditional)</a></li><li><a class="tr-search-filter-item" data-value="hr">Croatian</a></li><li><a class="tr-search-filter-item" data-value="cs">Czech</a></li><li><a class="tr-search-filter-item" data-value="da">Danish</a></li><li><a class="tr-search-filter-item" data-value="nl">Dutch</a></li><li><a class="tr-search-filter-item" data-value="eo">Esperanto</a></li><li><a class="tr-search-filter-item" data-value="et">Estonian</a></li><li><a class="tr-search-filter-item" data-value="fi">Finnish</a></li><li><a class="tr-search-filter-item" data-value="fr">French</a></li><li><a class="tr-search-filter-item" data-value="gl">Galician</a></li><li><a class="tr-search-filter-item" data-value="de">German</a></li><li><a class="tr-search-filter-item" data-value="el">Greek</a></li><li><a class="tr-search-filter-item" data-value="gu">Gujarati</a></li><li><a class="tr-search-filter-item" data-value="he">Hebrew</a></li><li><a class="tr-search-filter-item" data-value="hi">Hindi</a></li><li><a class="tr-search-filter-item" data-value="hu">Hungarian</a></li><li><a class="tr-search-filter-item" data-value="id">Indonesian</a></li><li><a class="tr-search-filter-item" data-value="ga">Irish</a></li><li><a class="tr-search-filter-item" data-value="it">Italian</a></li><li><a class="tr-search-filter-item" data-value="ja">Japanese</a></li><li><a class="tr-search-filter-item" data-value="kn">Kannada</a></li><li><a class="tr-search-filter-item" data-value="kk">Kazakh</a></li><li><a class="tr-search-filter-item" data-value="km">Khmer</a></li><li><a class="tr-search-filter-item" data-value="ko">Korean</a></li><li><a class="tr-search-filter-item" data-value="lv">Latvian</a></li><li><a class="tr-search-filter-item" data-value="lt">Lithuanian</a></li><li><a class="tr-search-filter-item" data-value="ms">Malay</a></li><li><a class="tr-search-filter-item" data-value="ml">Malayalam</a></li><li><a class="tr-search-filter-item" data-value="mt">Maltese</a></li><li><a class="tr-search-filter-item" data-value="mr">Marathi</a></li><li><a class="tr-search-filter-item" data-value="nb">Norwegian (Bokmål)</a></li><li><a class="tr-search-filter-item" data-value="or">Odia</a></li><li><a class="tr-search-filter-item" data-value="fa">Persian</a></li><li><a class="tr-search-filter-item" data-value="pl">Polish</a></li><li><a class="tr-search-filter-item" data-value="pt-br">Portuguese (Brazil)</a></li><li><a class="tr-search-filter-item" data-value="pt-pt">Portuguese (Portugal)</a></li><li><a class="tr-search-filter-item" data-value="ro">Romanian</a></li><li><a class="tr-search-filter-item" data-value="ru">Russian</a></li><li><a class="tr-search-filter-item" data-value="sr">Serbian</a></li><li><a class="tr-search-filter-item" data-value="sk">Slovak</a></li><li><a class="tr-search-filter-item" data-value="sl">Slovene</a></li><li><a class="tr-search-filter-item" data-value="es">Spanish</a></li><li><a class="tr-search-filter-item" data-value="sw">Swahili</a></li><li><a class="tr-search-filter-item" data-value="sv">Swedish</a></li><li><a class="tr-search-filter-item" data-value="ta">Tamil</a></li><li><a class="tr-search-filter-item" data-value="te">Telugu</a></li><li><a class="tr-search-filter-item" data-value="th">Thai</a></li><li><a class="tr-search-filter-item" data-value="tr">Turkish</a></li><li><a class="tr-search-filter-item" data-value="tk">Turkmen</a></li><li><a class="tr-search-filter-item" data-value="uk">Ukrainian</a></li><li><a class="tr-search-filter-item" data-value="ur">Urdu</a></li><li><a class="tr-search-filter-item" data-value="uz">Uzbek</a></li><li><a class="tr-search-filter-item" data-value="vi">Vietnamese</a></li></ul></span></span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-langpack"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">Android X</span><span class="dropdown-menu"><ul class="dropdown-menu"><li><a class="tr-search-filter-item" data-value="">All Apps</a></li><li><a class="tr-search-filter-item" data-value="android">Android</a></li><li><a class="tr-search-filter-item" data-value="ios">iOS</a></li><li><a class="tr-search-filter-item" data-value="tdesktop">TDesktop</a></li><li><a class="tr-search-filter-item" data-value="macos">macOS</a></li><li class="selected"><a class="tr-search-filter-item" data-value="android_x">Android X</a></li></ul></span></span>
|
||||
</div>
|
||||
<div class="tr-search-binding binding"></div>
|
||||
<div class="tr-search-enter arrow-right"></div>
|
||||
<div class="tr-search-reset close"></div>
|
||||
<form class="tr-search-form">
|
||||
<input class="form-control tr-search-field" placeholder="Search translations and keys" autocomplete="off" value="" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="tr-search-results collapsed"></div>
|
||||
</section>
|
||||
<div class="header-wrap">
|
||||
<div id="header-panel" class="header-panel">
|
||||
<div class="header-auth">
|
||||
<div class="header-auth-item"><a class="header-search-btn"></a></div><div class="header-auth-item"><a class="header-auth-link login-link" href="/auth">Login</a></div>
|
||||
</div>
|
||||
<div class="header-breadcrumb header-breadcrumb-simple">
|
||||
<ol id="breadcrumb" class="header-nav breadcrumb"><li><a href="/">Translations</a></li><li><a href="/en/">English</a></li><li class="active">Android X</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="container">
|
||||
<nav class="tr-menu"><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="0">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Languages</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item tr-menu-item-default">
|
||||
<span class="nav-label">English</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items" id="tr-menu-language-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/">
|
||||
<span class="nav-label">English</span>
|
||||
</a>
|
||||
</li><li class="languages-link">
|
||||
<a class="tr-menu-item">
|
||||
<span class="nav-label">Other languages...</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="1">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Apps</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">Android X</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li>
|
||||
<a class="tr-menu-item" href="/en/android/">
|
||||
<span class="nav-label">Android</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/">
|
||||
<span class="nav-label">iOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/">
|
||||
<span class="nav-label">TDesktop</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/">
|
||||
<span class="nav-label">macOS</span>
|
||||
</a>
|
||||
</li><li class="active">
|
||||
<a class="tr-menu-item" href="/en/android_x/">
|
||||
<span class="nav-label">Android X</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/emoji">
|
||||
<span class="nav-label">Emoji</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="2">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Sections</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">All Sections</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/android_x/">
|
||||
<span class="nav-label">All Sections</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/login/">
|
||||
<span class="nav-label">Log In</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/chat_list/">
|
||||
<span class="nav-label">Chat List</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/private_chats/">
|
||||
<span class="nav-label">Private chats</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/groups_and_channels/">
|
||||
<span class="nav-label">Groups And Channels</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/profile/">
|
||||
<span class="nav-label">Profile</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/settings/">
|
||||
<span class="nav-label">Settings</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/camera_and_media/">
|
||||
<span class="nav-label">Camera And Media</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/bots_and_payments/">
|
||||
<span class="nav-label">Bots And Payments</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/passport/">
|
||||
<span class="nav-label">Passport</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/general/">
|
||||
<span class="nav-label">General</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/unsorted/">
|
||||
<span class="nav-label">Unsorted</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div></nav>
|
||||
<section class="content clearfix">
|
||||
<section class="tr-content"><h3 class="tr-header">
|
||||
<a href="/en/" class="tr-back"></a>Android X<span class="tr-header-counter">3559</span>
|
||||
<div class="tr-header-tabs"><span class="tr-header-tab"><a href="/en/android_x/recent/translations">Translations</a></span><span class="tr-header-tab"><a href="/en/android_x/recent/suggestions">Suggestions</a></span><span class="tr-header-tab"><a href="/en/android_x/recent/comments">Comments</a></span></div>
|
||||
</h3>
|
||||
<section class="tr-sections clearfix">
|
||||
<div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/login/" class="tr-section">
|
||||
<div class="tr-section-cover cover2"></div>
|
||||
<div class="tr-section-caption">Log In (44)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/chat_list/" class="tr-section">
|
||||
<div class="tr-section-cover cover3"></div>
|
||||
<div class="tr-section-caption">Chat List (248)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/private_chats/" class="tr-section">
|
||||
<div class="tr-section-cover cover4"></div>
|
||||
<div class="tr-section-caption">Private chats (168)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/groups_and_channels/" class="tr-section">
|
||||
<div class="tr-section-cover cover8"></div>
|
||||
<div class="tr-section-caption">Groups And Channels (789)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/profile/" class="tr-section">
|
||||
<div class="tr-section-cover cover5"></div>
|
||||
<div class="tr-section-caption">Profile (74)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/settings/" class="tr-section">
|
||||
<div class="tr-section-cover cover7"></div>
|
||||
<div class="tr-section-caption">Settings (1110)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/camera_and_media/" class="tr-section">
|
||||
<div class="tr-section-cover cover6"></div>
|
||||
<div class="tr-section-caption">Camera And Media (191)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/bots_and_payments/" class="tr-section">
|
||||
<div class="tr-section-cover cover9"></div>
|
||||
<div class="tr-section-caption">Bots And Payments (62)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/passport/" class="tr-section">
|
||||
<div class="tr-section-cover cover10"></div>
|
||||
<div class="tr-section-caption">Passport (0)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/general/" class="tr-section">
|
||||
<div class="tr-section-cover cover1"></div>
|
||||
<div class="tr-section-caption">General (607)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/android_x/unsorted/" class="tr-section">
|
||||
<div class="tr-section-cover cover0"></div>
|
||||
<div class="tr-section-caption">Unsorted (639)</div>
|
||||
</a></div>
|
||||
</div>
|
||||
</section></section>
|
||||
</section>
|
||||
</main>
|
||||
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body">
|
||||
<section>
|
||||
<h2>Log In</h2>
|
||||
<p>Log in here to translate Telegram apps. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||||
|
||||
<form id="send-form" class="login-form">
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control tr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="login-form" class="hide">
|
||||
<div class="form-group">
|
||||
<span class="form-control tr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="popup-container languages-popup-container hide" id="languages-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body popup-has-footer">
|
||||
<h4>Languages</h4>
|
||||
|
||||
<form class="tr-popup-search-form tr-languages-search-form">
|
||||
<input class="form-control tr-popup-search-field tr-languages-search-field" placeholder="Search languages" autocomplete="off" value="">
|
||||
</form>
|
||||
<div class="tr-popup-search-results-wrap tr-languages-results-wrap">
|
||||
<div class="tr-popup-search-results tr-languages-results"></div>
|
||||
</div>
|
||||
<div class="tr-languages-add"><a href="/lang/new" data-layer class="need-auth">Add a new language</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?57"></script>
|
||||
<script src="/js/translations.js?97"></script>
|
||||
<script src="/js/jquery-ui.min.js?1"></script>
|
||||
<script src="/js/tesseract.js?1"></script>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/tchart.min.js?18"></script>
|
||||
<script src="/js/billboard.min.js?1"></script>
|
||||
<script src="/js/stats.js?17"></script>
|
||||
|
||||
<script>ajInit({"version":725,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"searchLang":"en","searchLangpack":"android_x","langNames":{"en":"English","af":"Afrikaans","sq":"Albanian","am":"Amharic","ar":"Arabic","az":"Azerbaijani","eu":"Basque","be":"Belarusian","bn":"Bengali","bg":"Bulgarian","ca":"Catalan","zh-hans":"Chinese (Simplified)","zh-hant":"Chinese (Traditional)","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch","eo":"Esperanto","et":"Estonian","fi":"Finnish","fr":"French","gl":"Galician","de":"German","el":"Greek","gu":"Gujarati","he":"Hebrew","hi":"Hindi","hu":"Hungarian","id":"Indonesian","ga":"Irish","it":"Italian","ja":"Japanese","kn":"Kannada","kk":"Kazakh","km":"Khmer","ko":"Korean","lv":"Latvian","lt":"Lithuanian","ms":"Malay","ml":"Malayalam","mt":"Maltese","mr":"Marathi","nb":"Norwegian (Bokmål)","or":"Odia","fa":"Persian","pl":"Polish","pt-br":"Portuguese (Brazil)","pt-pt":"Portuguese (Portugal)","ro":"Romanian","ru":"Russian","sr":"Serbian","sk":"Slovak","sl":"Slovene","es":"Spanish","sw":"Swahili","sv":"Swedish","ta":"Tamil","te":"Telugu","th":"Thai","tr":"Turkish","tk":"Turkmen","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese"},"langpackList":[],"langpackNames":{"":"All Apps","android":"Android","ios":"iOS","tdesktop":"TDesktop","macos":"macOS","android_x":"Android X"},"langList":["en","af","sq","am","ar","az","eu","be","bn","bg","ca","zh-hans","zh-hant","hr","cs","da","nl","eo","et","fi","fr","gl","de","el","gu","he","hi","hu","id","ga","it","ja","kn","kk","km","ko","lv","lt","ms","ml","mt","mr","nb","or","fa","pl","pt-br","pt-pt","ro","ru","sr","sk","sl","es","sw","sv","ta","te","th","tr","tk","uk","ur","uz","vi"],"curLang":"en","curLangpack":"android_x"}});</script>
|
||||
<script id="aj_script">l.add({"WEB_PLURALIZED_LABEL_0":"Zero","WEB_PLURALIZED_LABEL_1":"One","WEB_PLURALIZED_LABEL_2":"Two","WEB_PLURALIZED_LABEL_3":"Few","WEB_PLURALIZED_LABEL_4":"Many","WEB_PLURALIZED_LABEL_5":"Other","WEB_NO_TRANSLATIONS_FOUND":"No translations found","WEB_TRANSLATIONS_LOADING":"Loading","WEB_ACTIVATE_LANGPACK_CONFIRM_TEXT":"Do you want to begin translating <b>{lang_pack}<\/b> to <b>{lang}<\/b>?","WEB_ACTIVATE_LANGPACK_CONFIRM_BUTTON":"Start Translating","WEB_LOADING":"Loading","WEB_NO_LANGUAGES_FOUND":"No languages found"});
|
||||
Search.init();
|
||||
Header.init();
|
||||
Nav.init();
|
||||
Aj.onLoad(function(state) {
|
||||
function requestConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
var phone = $('#phone-number').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/request',
|
||||
data: {
|
||||
phone: phone
|
||||
},
|
||||
success: function(result) {
|
||||
$('#phone-number-field').text(phone);
|
||||
$('#send-form').addClass('hide');
|
||||
$('#login-form').removeClass('hide');
|
||||
checkAuth(result.temp_session);
|
||||
},
|
||||
error: function(xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function cancelConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
$('#phone-number-field').text('');
|
||||
$('#send-form').removeClass('hide');
|
||||
$('#login-form').addClass('hide');
|
||||
$('#phone-number').focus();
|
||||
clearTimeout(window.authTimeout);
|
||||
return false;
|
||||
}
|
||||
function checkAuth(temp_session) {
|
||||
clearTimeout(window.authTimeout);
|
||||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/login',
|
||||
data: {
|
||||
temp_session: temp_session
|
||||
},
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
location.reload();
|
||||
} else {
|
||||
checkAuth(temp_session);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}, 700);
|
||||
}
|
||||
$('#login-popup-container').on('popup:open', function() {
|
||||
$('#phone-number').focus();
|
||||
});
|
||||
$('#login-popup-container').on('popup:close', function() {
|
||||
cancelConfirmation();
|
||||
if (location.pathname == '/auth') {
|
||||
window.history && history.replaceState(null, null, '/');
|
||||
}
|
||||
});
|
||||
$('#login-popup-container #send-form').on('submit', requestConfirmation);
|
||||
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
closePopup('#login-popup-container');
|
||||
});
|
||||
$('#login-popup-container .login-back').on('click', cancelConfirmation);
|
||||
$('.login-link').on('click', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
openPopup('#login-popup-container');
|
||||
});
|
||||
});
|
||||
Aj.onUnload(function(state) {
|
||||
$('#login-popup-container').off('popup:open');
|
||||
$('#login-popup-container').off('popup:close');
|
||||
$('#login-popup-container #send-form').off('submit');
|
||||
$('#login-popup-container .login-cancel-btn').off('click');
|
||||
$('#login-popup-container .login-back').off('click');
|
||||
$('.login-link').off('click');
|
||||
});
|
||||
</script>
|
||||
<script>Aj.pageLoaded();</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
388
data/translations.telegram.org/en/ios.html
Normal file
388
data/translations.telegram.org/en/ios.html
Normal file
|
@ -0,0 +1,388 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Translations</title>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css">
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet">
|
||||
<link href="/css/translations.css?109" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/health.css?132" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
<link href="/css/billboard.css?17" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="emoji_image no-transition">
|
||||
|
||||
<div id="aj_progress" class="progress-bar"></div>
|
||||
|
||||
<div id="aj_content"><div class="tr-container">
|
||||
<header class=" has-search">
|
||||
<div class="container">
|
||||
<section class="tr-search">
|
||||
<div class="tr-search-field-wrap">
|
||||
<div class="tr-search-filters">
|
||||
<span class="tr-search-filters-label">Search in:</span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-lang"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">English</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="en">English</a></li><li><a class="tr-search-filter-item" data-value="af">Afrikaans</a></li><li><a class="tr-search-filter-item" data-value="sq">Albanian</a></li><li><a class="tr-search-filter-item" data-value="am">Amharic</a></li><li><a class="tr-search-filter-item" data-value="ar">Arabic</a></li><li><a class="tr-search-filter-item" data-value="az">Azerbaijani</a></li><li><a class="tr-search-filter-item" data-value="eu">Basque</a></li><li><a class="tr-search-filter-item" data-value="be">Belarusian</a></li><li><a class="tr-search-filter-item" data-value="bn">Bengali</a></li><li><a class="tr-search-filter-item" data-value="bg">Bulgarian</a></li><li><a class="tr-search-filter-item" data-value="ca">Catalan</a></li><li><a class="tr-search-filter-item" data-value="zh-hans">Chinese (Simplified)</a></li><li><a class="tr-search-filter-item" data-value="zh-hant">Chinese (Traditional)</a></li><li><a class="tr-search-filter-item" data-value="hr">Croatian</a></li><li><a class="tr-search-filter-item" data-value="cs">Czech</a></li><li><a class="tr-search-filter-item" data-value="da">Danish</a></li><li><a class="tr-search-filter-item" data-value="nl">Dutch</a></li><li><a class="tr-search-filter-item" data-value="eo">Esperanto</a></li><li><a class="tr-search-filter-item" data-value="et">Estonian</a></li><li><a class="tr-search-filter-item" data-value="fi">Finnish</a></li><li><a class="tr-search-filter-item" data-value="fr">French</a></li><li><a class="tr-search-filter-item" data-value="gl">Galician</a></li><li><a class="tr-search-filter-item" data-value="de">German</a></li><li><a class="tr-search-filter-item" data-value="el">Greek</a></li><li><a class="tr-search-filter-item" data-value="gu">Gujarati</a></li><li><a class="tr-search-filter-item" data-value="he">Hebrew</a></li><li><a class="tr-search-filter-item" data-value="hi">Hindi</a></li><li><a class="tr-search-filter-item" data-value="hu">Hungarian</a></li><li><a class="tr-search-filter-item" data-value="id">Indonesian</a></li><li><a class="tr-search-filter-item" data-value="ga">Irish</a></li><li><a class="tr-search-filter-item" data-value="it">Italian</a></li><li><a class="tr-search-filter-item" data-value="ja">Japanese</a></li><li><a class="tr-search-filter-item" data-value="kn">Kannada</a></li><li><a class="tr-search-filter-item" data-value="kk">Kazakh</a></li><li><a class="tr-search-filter-item" data-value="km">Khmer</a></li><li><a class="tr-search-filter-item" data-value="ko">Korean</a></li><li><a class="tr-search-filter-item" data-value="lv">Latvian</a></li><li><a class="tr-search-filter-item" data-value="lt">Lithuanian</a></li><li><a class="tr-search-filter-item" data-value="ms">Malay</a></li><li><a class="tr-search-filter-item" data-value="ml">Malayalam</a></li><li><a class="tr-search-filter-item" data-value="mt">Maltese</a></li><li><a class="tr-search-filter-item" data-value="mr">Marathi</a></li><li><a class="tr-search-filter-item" data-value="nb">Norwegian (Bokmål)</a></li><li><a class="tr-search-filter-item" data-value="or">Odia</a></li><li><a class="tr-search-filter-item" data-value="fa">Persian</a></li><li><a class="tr-search-filter-item" data-value="pl">Polish</a></li><li><a class="tr-search-filter-item" data-value="pt-br">Portuguese (Brazil)</a></li><li><a class="tr-search-filter-item" data-value="pt-pt">Portuguese (Portugal)</a></li><li><a class="tr-search-filter-item" data-value="ro">Romanian</a></li><li><a class="tr-search-filter-item" data-value="ru">Russian</a></li><li><a class="tr-search-filter-item" data-value="sr">Serbian</a></li><li><a class="tr-search-filter-item" data-value="sk">Slovak</a></li><li><a class="tr-search-filter-item" data-value="sl">Slovene</a></li><li><a class="tr-search-filter-item" data-value="es">Spanish</a></li><li><a class="tr-search-filter-item" data-value="sw">Swahili</a></li><li><a class="tr-search-filter-item" data-value="sv">Swedish</a></li><li><a class="tr-search-filter-item" data-value="ta">Tamil</a></li><li><a class="tr-search-filter-item" data-value="te">Telugu</a></li><li><a class="tr-search-filter-item" data-value="th">Thai</a></li><li><a class="tr-search-filter-item" data-value="tr">Turkish</a></li><li><a class="tr-search-filter-item" data-value="tk">Turkmen</a></li><li><a class="tr-search-filter-item" data-value="uk">Ukrainian</a></li><li><a class="tr-search-filter-item" data-value="ur">Urdu</a></li><li><a class="tr-search-filter-item" data-value="uz">Uzbek</a></li><li><a class="tr-search-filter-item" data-value="vi">Vietnamese</a></li></ul></span></span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-langpack"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">iOS</span><span class="dropdown-menu"><ul class="dropdown-menu"><li><a class="tr-search-filter-item" data-value="">All Apps</a></li><li><a class="tr-search-filter-item" data-value="android">Android</a></li><li class="selected"><a class="tr-search-filter-item" data-value="ios">iOS</a></li><li><a class="tr-search-filter-item" data-value="tdesktop">TDesktop</a></li><li><a class="tr-search-filter-item" data-value="macos">macOS</a></li><li><a class="tr-search-filter-item" data-value="android_x">Android X</a></li></ul></span></span>
|
||||
</div>
|
||||
<div class="tr-search-binding binding"></div>
|
||||
<div class="tr-search-enter arrow-right"></div>
|
||||
<div class="tr-search-reset close"></div>
|
||||
<form class="tr-search-form">
|
||||
<input class="form-control tr-search-field" placeholder="Search translations and keys" autocomplete="off" value="" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="tr-search-results collapsed"></div>
|
||||
</section>
|
||||
<div class="header-wrap">
|
||||
<div id="header-panel" class="header-panel">
|
||||
<div class="header-auth">
|
||||
<div class="header-auth-item"><a class="header-search-btn"></a></div><div class="header-auth-item"><a class="header-auth-link login-link" href="/auth">Login</a></div>
|
||||
</div>
|
||||
<div class="header-breadcrumb header-breadcrumb-simple">
|
||||
<ol id="breadcrumb" class="header-nav breadcrumb"><li><a href="/">Translations</a></li><li><a href="/en/">English</a></li><li class="active">iOS</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="container">
|
||||
<nav class="tr-menu"><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="0">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Languages</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item tr-menu-item-default">
|
||||
<span class="nav-label">English</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items" id="tr-menu-language-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/">
|
||||
<span class="nav-label">English</span>
|
||||
</a>
|
||||
</li><li class="languages-link">
|
||||
<a class="tr-menu-item">
|
||||
<span class="nav-label">Other languages...</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="1">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Apps</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">iOS</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li>
|
||||
<a class="tr-menu-item" href="/en/android/">
|
||||
<span class="nav-label">Android</span>
|
||||
</a>
|
||||
</li><li class="active">
|
||||
<a class="tr-menu-item" href="/en/ios/">
|
||||
<span class="nav-label">iOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/">
|
||||
<span class="nav-label">TDesktop</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/">
|
||||
<span class="nav-label">macOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/">
|
||||
<span class="nav-label">Android X</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/emoji">
|
||||
<span class="nav-label">Emoji</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="2">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Sections</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">All Sections</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/ios/">
|
||||
<span class="nav-label">All Sections</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/login/">
|
||||
<span class="nav-label">Log In</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/chat_list/">
|
||||
<span class="nav-label">Chat List</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/private_chats/">
|
||||
<span class="nav-label">Private chats</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/groups_and_channels/">
|
||||
<span class="nav-label">Groups And Channels</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/profile/">
|
||||
<span class="nav-label">Profile</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/settings/">
|
||||
<span class="nav-label">Settings</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/camera_and_media/">
|
||||
<span class="nav-label">Camera And Media</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/bots_and_payments/">
|
||||
<span class="nav-label">Bots And Payments</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/passport/">
|
||||
<span class="nav-label">Passport</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/general/">
|
||||
<span class="nav-label">General</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/unsorted/">
|
||||
<span class="nav-label">Unsorted</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div></nav>
|
||||
<section class="content clearfix">
|
||||
<section class="tr-content"><h3 class="tr-header">
|
||||
<a href="/en/" class="tr-back"></a>iOS<span class="tr-header-counter">5114</span>
|
||||
<div class="tr-header-tabs"><span class="tr-header-tab"><a href="/en/ios/recent/translations">Translations</a></span><span class="tr-header-tab"><a href="/en/ios/recent/suggestions">Suggestions</a></span><span class="tr-header-tab"><a href="/en/ios/recent/comments">Comments</a></span></div>
|
||||
</h3>
|
||||
<section class="tr-sections clearfix">
|
||||
<div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/login/" class="tr-section">
|
||||
<div class="tr-section-cover cover2"></div>
|
||||
<div class="tr-section-caption">Log In (123)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/chat_list/" class="tr-section">
|
||||
<div class="tr-section-cover cover3"></div>
|
||||
<div class="tr-section-caption">Chat List (254)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/private_chats/" class="tr-section">
|
||||
<div class="tr-section-cover cover4"></div>
|
||||
<div class="tr-section-caption">Private chats (232)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/groups_and_channels/" class="tr-section">
|
||||
<div class="tr-section-cover cover8"></div>
|
||||
<div class="tr-section-caption">Groups And Channels (1042)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/profile/" class="tr-section">
|
||||
<div class="tr-section-cover cover5"></div>
|
||||
<div class="tr-section-caption">Profile (59)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/settings/" class="tr-section">
|
||||
<div class="tr-section-cover cover7"></div>
|
||||
<div class="tr-section-caption">Settings (1023)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/camera_and_media/" class="tr-section">
|
||||
<div class="tr-section-cover cover6"></div>
|
||||
<div class="tr-section-caption">Camera And Media (171)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/bots_and_payments/" class="tr-section">
|
||||
<div class="tr-section-cover cover9"></div>
|
||||
<div class="tr-section-caption">Bots And Payments (125)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/passport/" class="tr-section">
|
||||
<div class="tr-section-cover cover10"></div>
|
||||
<div class="tr-section-caption">Passport (203)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/general/" class="tr-section">
|
||||
<div class="tr-section-cover cover1"></div>
|
||||
<div class="tr-section-caption">General (1527)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/ios/unsorted/" class="tr-section">
|
||||
<div class="tr-section-cover cover0"></div>
|
||||
<div class="tr-section-caption">Unsorted (615)</div>
|
||||
</a></div>
|
||||
</div>
|
||||
</section></section>
|
||||
</section>
|
||||
</main>
|
||||
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body">
|
||||
<section>
|
||||
<h2>Log In</h2>
|
||||
<p>Log in here to translate Telegram apps. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||||
|
||||
<form id="send-form" class="login-form">
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control tr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="login-form" class="hide">
|
||||
<div class="form-group">
|
||||
<span class="form-control tr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="popup-container languages-popup-container hide" id="languages-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body popup-has-footer">
|
||||
<h4>Languages</h4>
|
||||
|
||||
<form class="tr-popup-search-form tr-languages-search-form">
|
||||
<input class="form-control tr-popup-search-field tr-languages-search-field" placeholder="Search languages" autocomplete="off" value="">
|
||||
</form>
|
||||
<div class="tr-popup-search-results-wrap tr-languages-results-wrap">
|
||||
<div class="tr-popup-search-results tr-languages-results"></div>
|
||||
</div>
|
||||
<div class="tr-languages-add"><a href="/lang/new" data-layer class="need-auth">Add a new language</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?57"></script>
|
||||
<script src="/js/translations.js?97"></script>
|
||||
<script src="/js/jquery-ui.min.js?1"></script>
|
||||
<script src="/js/tesseract.js?1"></script>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/tchart.min.js?18"></script>
|
||||
<script src="/js/billboard.min.js?1"></script>
|
||||
<script src="/js/stats.js?17"></script>
|
||||
|
||||
<script>ajInit({"version":725,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"searchLang":"en","searchLangpack":"ios","langNames":{"en":"English","af":"Afrikaans","sq":"Albanian","am":"Amharic","ar":"Arabic","az":"Azerbaijani","eu":"Basque","be":"Belarusian","bn":"Bengali","bg":"Bulgarian","ca":"Catalan","zh-hans":"Chinese (Simplified)","zh-hant":"Chinese (Traditional)","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch","eo":"Esperanto","et":"Estonian","fi":"Finnish","fr":"French","gl":"Galician","de":"German","el":"Greek","gu":"Gujarati","he":"Hebrew","hi":"Hindi","hu":"Hungarian","id":"Indonesian","ga":"Irish","it":"Italian","ja":"Japanese","kn":"Kannada","kk":"Kazakh","km":"Khmer","ko":"Korean","lv":"Latvian","lt":"Lithuanian","ms":"Malay","ml":"Malayalam","mt":"Maltese","mr":"Marathi","nb":"Norwegian (Bokmål)","or":"Odia","fa":"Persian","pl":"Polish","pt-br":"Portuguese (Brazil)","pt-pt":"Portuguese (Portugal)","ro":"Romanian","ru":"Russian","sr":"Serbian","sk":"Slovak","sl":"Slovene","es":"Spanish","sw":"Swahili","sv":"Swedish","ta":"Tamil","te":"Telugu","th":"Thai","tr":"Turkish","tk":"Turkmen","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese"},"langpackList":[],"langpackNames":{"":"All Apps","android":"Android","ios":"iOS","tdesktop":"TDesktop","macos":"macOS","android_x":"Android X"},"langList":["en","af","sq","am","ar","az","eu","be","bn","bg","ca","zh-hans","zh-hant","hr","cs","da","nl","eo","et","fi","fr","gl","de","el","gu","he","hi","hu","id","ga","it","ja","kn","kk","km","ko","lv","lt","ms","ml","mt","mr","nb","or","fa","pl","pt-br","pt-pt","ro","ru","sr","sk","sl","es","sw","sv","ta","te","th","tr","tk","uk","ur","uz","vi"],"curLang":"en","curLangpack":"ios"}});</script>
|
||||
<script id="aj_script">l.add({"WEB_PLURALIZED_LABEL_0":"Zero","WEB_PLURALIZED_LABEL_1":"One","WEB_PLURALIZED_LABEL_2":"Two","WEB_PLURALIZED_LABEL_3":"Few","WEB_PLURALIZED_LABEL_4":"Many","WEB_PLURALIZED_LABEL_5":"Other","WEB_NO_TRANSLATIONS_FOUND":"No translations found","WEB_TRANSLATIONS_LOADING":"Loading","WEB_ACTIVATE_LANGPACK_CONFIRM_TEXT":"Do you want to begin translating <b>{lang_pack}<\/b> to <b>{lang}<\/b>?","WEB_ACTIVATE_LANGPACK_CONFIRM_BUTTON":"Start Translating","WEB_LOADING":"Loading","WEB_NO_LANGUAGES_FOUND":"No languages found"});
|
||||
Search.init();
|
||||
Header.init();
|
||||
Nav.init();
|
||||
Aj.onLoad(function(state) {
|
||||
function requestConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
var phone = $('#phone-number').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/request',
|
||||
data: {
|
||||
phone: phone
|
||||
},
|
||||
success: function(result) {
|
||||
$('#phone-number-field').text(phone);
|
||||
$('#send-form').addClass('hide');
|
||||
$('#login-form').removeClass('hide');
|
||||
checkAuth(result.temp_session);
|
||||
},
|
||||
error: function(xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function cancelConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
$('#phone-number-field').text('');
|
||||
$('#send-form').removeClass('hide');
|
||||
$('#login-form').addClass('hide');
|
||||
$('#phone-number').focus();
|
||||
clearTimeout(window.authTimeout);
|
||||
return false;
|
||||
}
|
||||
function checkAuth(temp_session) {
|
||||
clearTimeout(window.authTimeout);
|
||||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/login',
|
||||
data: {
|
||||
temp_session: temp_session
|
||||
},
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
location.reload();
|
||||
} else {
|
||||
checkAuth(temp_session);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}, 700);
|
||||
}
|
||||
$('#login-popup-container').on('popup:open', function() {
|
||||
$('#phone-number').focus();
|
||||
});
|
||||
$('#login-popup-container').on('popup:close', function() {
|
||||
cancelConfirmation();
|
||||
if (location.pathname == '/auth') {
|
||||
window.history && history.replaceState(null, null, '/');
|
||||
}
|
||||
});
|
||||
$('#login-popup-container #send-form').on('submit', requestConfirmation);
|
||||
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
closePopup('#login-popup-container');
|
||||
});
|
||||
$('#login-popup-container .login-back').on('click', cancelConfirmation);
|
||||
$('.login-link').on('click', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
openPopup('#login-popup-container');
|
||||
});
|
||||
});
|
||||
Aj.onUnload(function(state) {
|
||||
$('#login-popup-container').off('popup:open');
|
||||
$('#login-popup-container').off('popup:close');
|
||||
$('#login-popup-container #send-form').off('submit');
|
||||
$('#login-popup-container .login-cancel-btn').off('click');
|
||||
$('#login-popup-container .login-back').off('click');
|
||||
$('.login-link').off('click');
|
||||
});
|
||||
</script>
|
||||
<script>Aj.pageLoaded();</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
388
data/translations.telegram.org/en/macos.html
Normal file
388
data/translations.telegram.org/en/macos.html
Normal file
|
@ -0,0 +1,388 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Translations</title>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css">
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet">
|
||||
<link href="/css/translations.css?109" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/health.css?132" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
<link href="/css/billboard.css?17" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="emoji_image no-transition">
|
||||
|
||||
<div id="aj_progress" class="progress-bar"></div>
|
||||
|
||||
<div id="aj_content"><div class="tr-container">
|
||||
<header class=" has-search">
|
||||
<div class="container">
|
||||
<section class="tr-search">
|
||||
<div class="tr-search-field-wrap">
|
||||
<div class="tr-search-filters">
|
||||
<span class="tr-search-filters-label">Search in:</span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-lang"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">English</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="en">English</a></li><li><a class="tr-search-filter-item" data-value="af">Afrikaans</a></li><li><a class="tr-search-filter-item" data-value="sq">Albanian</a></li><li><a class="tr-search-filter-item" data-value="am">Amharic</a></li><li><a class="tr-search-filter-item" data-value="ar">Arabic</a></li><li><a class="tr-search-filter-item" data-value="az">Azerbaijani</a></li><li><a class="tr-search-filter-item" data-value="eu">Basque</a></li><li><a class="tr-search-filter-item" data-value="be">Belarusian</a></li><li><a class="tr-search-filter-item" data-value="bn">Bengali</a></li><li><a class="tr-search-filter-item" data-value="bg">Bulgarian</a></li><li><a class="tr-search-filter-item" data-value="ca">Catalan</a></li><li><a class="tr-search-filter-item" data-value="zh-hans">Chinese (Simplified)</a></li><li><a class="tr-search-filter-item" data-value="zh-hant">Chinese (Traditional)</a></li><li><a class="tr-search-filter-item" data-value="hr">Croatian</a></li><li><a class="tr-search-filter-item" data-value="cs">Czech</a></li><li><a class="tr-search-filter-item" data-value="da">Danish</a></li><li><a class="tr-search-filter-item" data-value="nl">Dutch</a></li><li><a class="tr-search-filter-item" data-value="eo">Esperanto</a></li><li><a class="tr-search-filter-item" data-value="et">Estonian</a></li><li><a class="tr-search-filter-item" data-value="fi">Finnish</a></li><li><a class="tr-search-filter-item" data-value="fr">French</a></li><li><a class="tr-search-filter-item" data-value="gl">Galician</a></li><li><a class="tr-search-filter-item" data-value="de">German</a></li><li><a class="tr-search-filter-item" data-value="el">Greek</a></li><li><a class="tr-search-filter-item" data-value="gu">Gujarati</a></li><li><a class="tr-search-filter-item" data-value="he">Hebrew</a></li><li><a class="tr-search-filter-item" data-value="hi">Hindi</a></li><li><a class="tr-search-filter-item" data-value="hu">Hungarian</a></li><li><a class="tr-search-filter-item" data-value="id">Indonesian</a></li><li><a class="tr-search-filter-item" data-value="ga">Irish</a></li><li><a class="tr-search-filter-item" data-value="it">Italian</a></li><li><a class="tr-search-filter-item" data-value="ja">Japanese</a></li><li><a class="tr-search-filter-item" data-value="kn">Kannada</a></li><li><a class="tr-search-filter-item" data-value="kk">Kazakh</a></li><li><a class="tr-search-filter-item" data-value="km">Khmer</a></li><li><a class="tr-search-filter-item" data-value="ko">Korean</a></li><li><a class="tr-search-filter-item" data-value="lv">Latvian</a></li><li><a class="tr-search-filter-item" data-value="lt">Lithuanian</a></li><li><a class="tr-search-filter-item" data-value="ms">Malay</a></li><li><a class="tr-search-filter-item" data-value="ml">Malayalam</a></li><li><a class="tr-search-filter-item" data-value="mt">Maltese</a></li><li><a class="tr-search-filter-item" data-value="mr">Marathi</a></li><li><a class="tr-search-filter-item" data-value="nb">Norwegian (Bokmål)</a></li><li><a class="tr-search-filter-item" data-value="or">Odia</a></li><li><a class="tr-search-filter-item" data-value="fa">Persian</a></li><li><a class="tr-search-filter-item" data-value="pl">Polish</a></li><li><a class="tr-search-filter-item" data-value="pt-br">Portuguese (Brazil)</a></li><li><a class="tr-search-filter-item" data-value="pt-pt">Portuguese (Portugal)</a></li><li><a class="tr-search-filter-item" data-value="ro">Romanian</a></li><li><a class="tr-search-filter-item" data-value="ru">Russian</a></li><li><a class="tr-search-filter-item" data-value="sr">Serbian</a></li><li><a class="tr-search-filter-item" data-value="sk">Slovak</a></li><li><a class="tr-search-filter-item" data-value="sl">Slovene</a></li><li><a class="tr-search-filter-item" data-value="es">Spanish</a></li><li><a class="tr-search-filter-item" data-value="sw">Swahili</a></li><li><a class="tr-search-filter-item" data-value="sv">Swedish</a></li><li><a class="tr-search-filter-item" data-value="ta">Tamil</a></li><li><a class="tr-search-filter-item" data-value="te">Telugu</a></li><li><a class="tr-search-filter-item" data-value="th">Thai</a></li><li><a class="tr-search-filter-item" data-value="tr">Turkish</a></li><li><a class="tr-search-filter-item" data-value="tk">Turkmen</a></li><li><a class="tr-search-filter-item" data-value="uk">Ukrainian</a></li><li><a class="tr-search-filter-item" data-value="ur">Urdu</a></li><li><a class="tr-search-filter-item" data-value="uz">Uzbek</a></li><li><a class="tr-search-filter-item" data-value="vi">Vietnamese</a></li></ul></span></span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-langpack"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">macOS</span><span class="dropdown-menu"><ul class="dropdown-menu"><li><a class="tr-search-filter-item" data-value="">All Apps</a></li><li><a class="tr-search-filter-item" data-value="android">Android</a></li><li><a class="tr-search-filter-item" data-value="ios">iOS</a></li><li><a class="tr-search-filter-item" data-value="tdesktop">TDesktop</a></li><li class="selected"><a class="tr-search-filter-item" data-value="macos">macOS</a></li><li><a class="tr-search-filter-item" data-value="android_x">Android X</a></li></ul></span></span>
|
||||
</div>
|
||||
<div class="tr-search-binding binding"></div>
|
||||
<div class="tr-search-enter arrow-right"></div>
|
||||
<div class="tr-search-reset close"></div>
|
||||
<form class="tr-search-form">
|
||||
<input class="form-control tr-search-field" placeholder="Search translations and keys" autocomplete="off" value="" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="tr-search-results collapsed"></div>
|
||||
</section>
|
||||
<div class="header-wrap">
|
||||
<div id="header-panel" class="header-panel">
|
||||
<div class="header-auth">
|
||||
<div class="header-auth-item"><a class="header-search-btn"></a></div><div class="header-auth-item"><a class="header-auth-link login-link" href="/auth">Login</a></div>
|
||||
</div>
|
||||
<div class="header-breadcrumb header-breadcrumb-simple">
|
||||
<ol id="breadcrumb" class="header-nav breadcrumb"><li><a href="/">Translations</a></li><li><a href="/en/">English</a></li><li class="active">macOS</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="container">
|
||||
<nav class="tr-menu"><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="0">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Languages</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item tr-menu-item-default">
|
||||
<span class="nav-label">English</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items" id="tr-menu-language-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/">
|
||||
<span class="nav-label">English</span>
|
||||
</a>
|
||||
</li><li class="languages-link">
|
||||
<a class="tr-menu-item">
|
||||
<span class="nav-label">Other languages...</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="1">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Apps</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">macOS</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li>
|
||||
<a class="tr-menu-item" href="/en/android/">
|
||||
<span class="nav-label">Android</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/">
|
||||
<span class="nav-label">iOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/">
|
||||
<span class="nav-label">TDesktop</span>
|
||||
</a>
|
||||
</li><li class="active">
|
||||
<a class="tr-menu-item" href="/en/macos/">
|
||||
<span class="nav-label">macOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/">
|
||||
<span class="nav-label">Android X</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/emoji">
|
||||
<span class="nav-label">Emoji</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="2">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Sections</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">All Sections</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/macos/">
|
||||
<span class="nav-label">All Sections</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/login/">
|
||||
<span class="nav-label">Log In</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/chat_list/">
|
||||
<span class="nav-label">Chat List</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/private_chats/">
|
||||
<span class="nav-label">Private chats</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/groups_and_channels/">
|
||||
<span class="nav-label">Groups And Channels</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/profile/">
|
||||
<span class="nav-label">Profile</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/settings/">
|
||||
<span class="nav-label">Settings</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/camera_and_media/">
|
||||
<span class="nav-label">Camera And Media</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/bots_and_payments/">
|
||||
<span class="nav-label">Bots And Payments</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/passport/">
|
||||
<span class="nav-label">Passport</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/general/">
|
||||
<span class="nav-label">General</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/unsorted/">
|
||||
<span class="nav-label">Unsorted</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div></nav>
|
||||
<section class="content clearfix">
|
||||
<section class="tr-content"><h3 class="tr-header">
|
||||
<a href="/en/" class="tr-back"></a>macOS<span class="tr-header-counter">3645</span>
|
||||
<div class="tr-header-tabs"><span class="tr-header-tab"><a href="/en/macos/recent/translations">Translations</a></span><span class="tr-header-tab"><a href="/en/macos/recent/suggestions">Suggestions</a></span><span class="tr-header-tab"><a href="/en/macos/recent/comments">Comments</a></span></div>
|
||||
</h3>
|
||||
<section class="tr-sections clearfix">
|
||||
<div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/login/" class="tr-section">
|
||||
<div class="tr-section-cover cover2"></div>
|
||||
<div class="tr-section-caption">Log In (56)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/chat_list/" class="tr-section">
|
||||
<div class="tr-section-cover cover3"></div>
|
||||
<div class="tr-section-caption">Chat List (196)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/private_chats/" class="tr-section">
|
||||
<div class="tr-section-cover cover4"></div>
|
||||
<div class="tr-section-caption">Private chats (135)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/groups_and_channels/" class="tr-section">
|
||||
<div class="tr-section-cover cover8"></div>
|
||||
<div class="tr-section-caption">Groups And Channels (981)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/profile/" class="tr-section">
|
||||
<div class="tr-section-cover cover5"></div>
|
||||
<div class="tr-section-caption">Profile (28)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/settings/" class="tr-section">
|
||||
<div class="tr-section-cover cover7"></div>
|
||||
<div class="tr-section-caption">Settings (684)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/camera_and_media/" class="tr-section">
|
||||
<div class="tr-section-cover cover6"></div>
|
||||
<div class="tr-section-caption">Camera And Media (77)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/bots_and_payments/" class="tr-section">
|
||||
<div class="tr-section-cover cover9"></div>
|
||||
<div class="tr-section-caption">Bots And Payments (90)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/passport/" class="tr-section">
|
||||
<div class="tr-section-cover cover10"></div>
|
||||
<div class="tr-section-caption">Passport (211)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/general/" class="tr-section">
|
||||
<div class="tr-section-cover cover1"></div>
|
||||
<div class="tr-section-caption">General (661)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/macos/unsorted/" class="tr-section">
|
||||
<div class="tr-section-cover cover0"></div>
|
||||
<div class="tr-section-caption">Unsorted (657)</div>
|
||||
</a></div>
|
||||
</div>
|
||||
</section></section>
|
||||
</section>
|
||||
</main>
|
||||
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body">
|
||||
<section>
|
||||
<h2>Log In</h2>
|
||||
<p>Log in here to translate Telegram apps. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||||
|
||||
<form id="send-form" class="login-form">
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control tr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="login-form" class="hide">
|
||||
<div class="form-group">
|
||||
<span class="form-control tr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="popup-container languages-popup-container hide" id="languages-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body popup-has-footer">
|
||||
<h4>Languages</h4>
|
||||
|
||||
<form class="tr-popup-search-form tr-languages-search-form">
|
||||
<input class="form-control tr-popup-search-field tr-languages-search-field" placeholder="Search languages" autocomplete="off" value="">
|
||||
</form>
|
||||
<div class="tr-popup-search-results-wrap tr-languages-results-wrap">
|
||||
<div class="tr-popup-search-results tr-languages-results"></div>
|
||||
</div>
|
||||
<div class="tr-languages-add"><a href="/lang/new" data-layer class="need-auth">Add a new language</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?57"></script>
|
||||
<script src="/js/translations.js?97"></script>
|
||||
<script src="/js/jquery-ui.min.js?1"></script>
|
||||
<script src="/js/tesseract.js?1"></script>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/tchart.min.js?18"></script>
|
||||
<script src="/js/billboard.min.js?1"></script>
|
||||
<script src="/js/stats.js?17"></script>
|
||||
|
||||
<script>ajInit({"version":725,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"searchLang":"en","searchLangpack":"macos","langNames":{"en":"English","af":"Afrikaans","sq":"Albanian","am":"Amharic","ar":"Arabic","az":"Azerbaijani","eu":"Basque","be":"Belarusian","bn":"Bengali","bg":"Bulgarian","ca":"Catalan","zh-hans":"Chinese (Simplified)","zh-hant":"Chinese (Traditional)","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch","eo":"Esperanto","et":"Estonian","fi":"Finnish","fr":"French","gl":"Galician","de":"German","el":"Greek","gu":"Gujarati","he":"Hebrew","hi":"Hindi","hu":"Hungarian","id":"Indonesian","ga":"Irish","it":"Italian","ja":"Japanese","kn":"Kannada","kk":"Kazakh","km":"Khmer","ko":"Korean","lv":"Latvian","lt":"Lithuanian","ms":"Malay","ml":"Malayalam","mt":"Maltese","mr":"Marathi","nb":"Norwegian (Bokmål)","or":"Odia","fa":"Persian","pl":"Polish","pt-br":"Portuguese (Brazil)","pt-pt":"Portuguese (Portugal)","ro":"Romanian","ru":"Russian","sr":"Serbian","sk":"Slovak","sl":"Slovene","es":"Spanish","sw":"Swahili","sv":"Swedish","ta":"Tamil","te":"Telugu","th":"Thai","tr":"Turkish","tk":"Turkmen","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese"},"langpackList":[],"langpackNames":{"":"All Apps","android":"Android","ios":"iOS","tdesktop":"TDesktop","macos":"macOS","android_x":"Android X"},"langList":["en","af","sq","am","ar","az","eu","be","bn","bg","ca","zh-hans","zh-hant","hr","cs","da","nl","eo","et","fi","fr","gl","de","el","gu","he","hi","hu","id","ga","it","ja","kn","kk","km","ko","lv","lt","ms","ml","mt","mr","nb","or","fa","pl","pt-br","pt-pt","ro","ru","sr","sk","sl","es","sw","sv","ta","te","th","tr","tk","uk","ur","uz","vi"],"curLang":"en","curLangpack":"macos"}});</script>
|
||||
<script id="aj_script">l.add({"WEB_PLURALIZED_LABEL_0":"Zero","WEB_PLURALIZED_LABEL_1":"One","WEB_PLURALIZED_LABEL_2":"Two","WEB_PLURALIZED_LABEL_3":"Few","WEB_PLURALIZED_LABEL_4":"Many","WEB_PLURALIZED_LABEL_5":"Other","WEB_NO_TRANSLATIONS_FOUND":"No translations found","WEB_TRANSLATIONS_LOADING":"Loading","WEB_ACTIVATE_LANGPACK_CONFIRM_TEXT":"Do you want to begin translating <b>{lang_pack}<\/b> to <b>{lang}<\/b>?","WEB_ACTIVATE_LANGPACK_CONFIRM_BUTTON":"Start Translating","WEB_LOADING":"Loading","WEB_NO_LANGUAGES_FOUND":"No languages found"});
|
||||
Search.init();
|
||||
Header.init();
|
||||
Nav.init();
|
||||
Aj.onLoad(function(state) {
|
||||
function requestConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
var phone = $('#phone-number').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/request',
|
||||
data: {
|
||||
phone: phone
|
||||
},
|
||||
success: function(result) {
|
||||
$('#phone-number-field').text(phone);
|
||||
$('#send-form').addClass('hide');
|
||||
$('#login-form').removeClass('hide');
|
||||
checkAuth(result.temp_session);
|
||||
},
|
||||
error: function(xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function cancelConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
$('#phone-number-field').text('');
|
||||
$('#send-form').removeClass('hide');
|
||||
$('#login-form').addClass('hide');
|
||||
$('#phone-number').focus();
|
||||
clearTimeout(window.authTimeout);
|
||||
return false;
|
||||
}
|
||||
function checkAuth(temp_session) {
|
||||
clearTimeout(window.authTimeout);
|
||||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/login',
|
||||
data: {
|
||||
temp_session: temp_session
|
||||
},
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
location.reload();
|
||||
} else {
|
||||
checkAuth(temp_session);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}, 700);
|
||||
}
|
||||
$('#login-popup-container').on('popup:open', function() {
|
||||
$('#phone-number').focus();
|
||||
});
|
||||
$('#login-popup-container').on('popup:close', function() {
|
||||
cancelConfirmation();
|
||||
if (location.pathname == '/auth') {
|
||||
window.history && history.replaceState(null, null, '/');
|
||||
}
|
||||
});
|
||||
$('#login-popup-container #send-form').on('submit', requestConfirmation);
|
||||
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
closePopup('#login-popup-container');
|
||||
});
|
||||
$('#login-popup-container .login-back').on('click', cancelConfirmation);
|
||||
$('.login-link').on('click', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
openPopup('#login-popup-container');
|
||||
});
|
||||
});
|
||||
Aj.onUnload(function(state) {
|
||||
$('#login-popup-container').off('popup:open');
|
||||
$('#login-popup-container').off('popup:close');
|
||||
$('#login-popup-container #send-form').off('submit');
|
||||
$('#login-popup-container .login-cancel-btn').off('click');
|
||||
$('#login-popup-container .login-back').off('click');
|
||||
$('.login-link').off('click');
|
||||
});
|
||||
</script>
|
||||
<script>Aj.pageLoaded();</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
388
data/translations.telegram.org/en/tdesktop.html
Normal file
388
data/translations.telegram.org/en/tdesktop.html
Normal file
|
@ -0,0 +1,388 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Translations</title>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="alternate icon" href="/favicon.ico?4" type="image/x-icon" />
|
||||
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css">
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?215" rel="stylesheet">
|
||||
<link href="/css/translations.css?109" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/health.css?132" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
<link href="/css/billboard.css?17" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="emoji_image no-transition">
|
||||
|
||||
<div id="aj_progress" class="progress-bar"></div>
|
||||
|
||||
<div id="aj_content"><div class="tr-container">
|
||||
<header class=" has-search">
|
||||
<div class="container">
|
||||
<section class="tr-search">
|
||||
<div class="tr-search-field-wrap">
|
||||
<div class="tr-search-filters">
|
||||
<span class="tr-search-filters-label">Search in:</span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-lang"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">English</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="en">English</a></li><li><a class="tr-search-filter-item" data-value="af">Afrikaans</a></li><li><a class="tr-search-filter-item" data-value="sq">Albanian</a></li><li><a class="tr-search-filter-item" data-value="am">Amharic</a></li><li><a class="tr-search-filter-item" data-value="ar">Arabic</a></li><li><a class="tr-search-filter-item" data-value="az">Azerbaijani</a></li><li><a class="tr-search-filter-item" data-value="eu">Basque</a></li><li><a class="tr-search-filter-item" data-value="be">Belarusian</a></li><li><a class="tr-search-filter-item" data-value="bn">Bengali</a></li><li><a class="tr-search-filter-item" data-value="bg">Bulgarian</a></li><li><a class="tr-search-filter-item" data-value="ca">Catalan</a></li><li><a class="tr-search-filter-item" data-value="zh-hans">Chinese (Simplified)</a></li><li><a class="tr-search-filter-item" data-value="zh-hant">Chinese (Traditional)</a></li><li><a class="tr-search-filter-item" data-value="hr">Croatian</a></li><li><a class="tr-search-filter-item" data-value="cs">Czech</a></li><li><a class="tr-search-filter-item" data-value="da">Danish</a></li><li><a class="tr-search-filter-item" data-value="nl">Dutch</a></li><li><a class="tr-search-filter-item" data-value="eo">Esperanto</a></li><li><a class="tr-search-filter-item" data-value="et">Estonian</a></li><li><a class="tr-search-filter-item" data-value="fi">Finnish</a></li><li><a class="tr-search-filter-item" data-value="fr">French</a></li><li><a class="tr-search-filter-item" data-value="gl">Galician</a></li><li><a class="tr-search-filter-item" data-value="de">German</a></li><li><a class="tr-search-filter-item" data-value="el">Greek</a></li><li><a class="tr-search-filter-item" data-value="gu">Gujarati</a></li><li><a class="tr-search-filter-item" data-value="he">Hebrew</a></li><li><a class="tr-search-filter-item" data-value="hi">Hindi</a></li><li><a class="tr-search-filter-item" data-value="hu">Hungarian</a></li><li><a class="tr-search-filter-item" data-value="id">Indonesian</a></li><li><a class="tr-search-filter-item" data-value="ga">Irish</a></li><li><a class="tr-search-filter-item" data-value="it">Italian</a></li><li><a class="tr-search-filter-item" data-value="ja">Japanese</a></li><li><a class="tr-search-filter-item" data-value="kn">Kannada</a></li><li><a class="tr-search-filter-item" data-value="kk">Kazakh</a></li><li><a class="tr-search-filter-item" data-value="km">Khmer</a></li><li><a class="tr-search-filter-item" data-value="ko">Korean</a></li><li><a class="tr-search-filter-item" data-value="lv">Latvian</a></li><li><a class="tr-search-filter-item" data-value="lt">Lithuanian</a></li><li><a class="tr-search-filter-item" data-value="ms">Malay</a></li><li><a class="tr-search-filter-item" data-value="ml">Malayalam</a></li><li><a class="tr-search-filter-item" data-value="mt">Maltese</a></li><li><a class="tr-search-filter-item" data-value="mr">Marathi</a></li><li><a class="tr-search-filter-item" data-value="nb">Norwegian (Bokmål)</a></li><li><a class="tr-search-filter-item" data-value="or">Odia</a></li><li><a class="tr-search-filter-item" data-value="fa">Persian</a></li><li><a class="tr-search-filter-item" data-value="pl">Polish</a></li><li><a class="tr-search-filter-item" data-value="pt-br">Portuguese (Brazil)</a></li><li><a class="tr-search-filter-item" data-value="pt-pt">Portuguese (Portugal)</a></li><li><a class="tr-search-filter-item" data-value="ro">Romanian</a></li><li><a class="tr-search-filter-item" data-value="ru">Russian</a></li><li><a class="tr-search-filter-item" data-value="sr">Serbian</a></li><li><a class="tr-search-filter-item" data-value="sk">Slovak</a></li><li><a class="tr-search-filter-item" data-value="sl">Slovene</a></li><li><a class="tr-search-filter-item" data-value="es">Spanish</a></li><li><a class="tr-search-filter-item" data-value="sw">Swahili</a></li><li><a class="tr-search-filter-item" data-value="sv">Swedish</a></li><li><a class="tr-search-filter-item" data-value="ta">Tamil</a></li><li><a class="tr-search-filter-item" data-value="te">Telugu</a></li><li><a class="tr-search-filter-item" data-value="th">Thai</a></li><li><a class="tr-search-filter-item" data-value="tr">Turkish</a></li><li><a class="tr-search-filter-item" data-value="tk">Turkmen</a></li><li><a class="tr-search-filter-item" data-value="uk">Ukrainian</a></li><li><a class="tr-search-filter-item" data-value="ur">Urdu</a></li><li><a class="tr-search-filter-item" data-value="uz">Uzbek</a></li><li><a class="tr-search-filter-item" data-value="vi">Vietnamese</a></li></ul></span></span><!--
|
||||
--><span class="tr-search-filter-wrap tr-search-filter-langpack"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">TDesktop</span><span class="dropdown-menu"><ul class="dropdown-menu"><li><a class="tr-search-filter-item" data-value="">All Apps</a></li><li><a class="tr-search-filter-item" data-value="android">Android</a></li><li><a class="tr-search-filter-item" data-value="ios">iOS</a></li><li class="selected"><a class="tr-search-filter-item" data-value="tdesktop">TDesktop</a></li><li><a class="tr-search-filter-item" data-value="macos">macOS</a></li><li><a class="tr-search-filter-item" data-value="android_x">Android X</a></li></ul></span></span>
|
||||
</div>
|
||||
<div class="tr-search-binding binding"></div>
|
||||
<div class="tr-search-enter arrow-right"></div>
|
||||
<div class="tr-search-reset close"></div>
|
||||
<form class="tr-search-form">
|
||||
<input class="form-control tr-search-field" placeholder="Search translations and keys" autocomplete="off" value="" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="tr-search-results collapsed"></div>
|
||||
</section>
|
||||
<div class="header-wrap">
|
||||
<div id="header-panel" class="header-panel">
|
||||
<div class="header-auth">
|
||||
<div class="header-auth-item"><a class="header-search-btn"></a></div><div class="header-auth-item"><a class="header-auth-link login-link" href="/auth">Login</a></div>
|
||||
</div>
|
||||
<div class="header-breadcrumb header-breadcrumb-simple">
|
||||
<ol id="breadcrumb" class="header-nav breadcrumb"><li><a href="/">Translations</a></li><li><a href="/en/">English</a></li><li class="active">TDesktop</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="container">
|
||||
<nav class="tr-menu"><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="0">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Languages</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item tr-menu-item-default">
|
||||
<span class="nav-label">English</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items" id="tr-menu-language-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/">
|
||||
<span class="nav-label">English</span>
|
||||
</a>
|
||||
</li><li class="languages-link">
|
||||
<a class="tr-menu-item">
|
||||
<span class="nav-label">Other languages...</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="1">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Apps</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">TDesktop</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li>
|
||||
<a class="tr-menu-item" href="/en/android/">
|
||||
<span class="nav-label">Android</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/ios/">
|
||||
<span class="nav-label">iOS</span>
|
||||
</a>
|
||||
</li><li class="active">
|
||||
<a class="tr-menu-item" href="/en/tdesktop/">
|
||||
<span class="nav-label">TDesktop</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/macos/">
|
||||
<span class="nav-label">macOS</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/android_x/">
|
||||
<span class="nav-label">Android X</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/emoji">
|
||||
<span class="nav-label">Emoji</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="2">
|
||||
<div class="tr-menu-header">
|
||||
<span class="tr-menu-header-collapse"></span>
|
||||
<div class="tr-menu-header-label">Sections</div>
|
||||
<div class="tr-menu-selected">
|
||||
<div class="tr-menu-item">
|
||||
<span class="nav-label">All Sections</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="tr-menu-items"><li class="active">
|
||||
<a class="tr-menu-item" href="/en/tdesktop/">
|
||||
<span class="nav-label">All Sections</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/login/">
|
||||
<span class="nav-label">Log In</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/chat_list/">
|
||||
<span class="nav-label">Chat List</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/private_chats/">
|
||||
<span class="nav-label">Private chats</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/groups_and_channels/">
|
||||
<span class="nav-label">Groups And Channels</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/profile/">
|
||||
<span class="nav-label">Profile</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/settings/">
|
||||
<span class="nav-label">Settings</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/camera_and_media/">
|
||||
<span class="nav-label">Camera And Media</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/bots_and_payments/">
|
||||
<span class="nav-label">Bots And Payments</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/passport/">
|
||||
<span class="nav-label">Passport</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/general/">
|
||||
<span class="nav-label">General</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a class="tr-menu-item" href="/en/tdesktop/unsorted/">
|
||||
<span class="nav-label">Unsorted</span>
|
||||
</a>
|
||||
</li></ul>
|
||||
</div></nav>
|
||||
<section class="content clearfix">
|
||||
<section class="tr-content"><h3 class="tr-header">
|
||||
<a href="/en/" class="tr-back"></a>TDesktop<span class="tr-header-counter">2916</span>
|
||||
<div class="tr-header-tabs"><span class="tr-header-tab"><a href="/en/tdesktop/recent/translations">Translations</a></span><span class="tr-header-tab"><a href="/en/tdesktop/recent/suggestions">Suggestions</a></span><span class="tr-header-tab"><a href="/en/tdesktop/recent/comments">Comments</a></span></div>
|
||||
</h3>
|
||||
<section class="tr-sections clearfix">
|
||||
<div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/login/" class="tr-section">
|
||||
<div class="tr-section-cover cover2"></div>
|
||||
<div class="tr-section-caption">Log In (88)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/chat_list/" class="tr-section">
|
||||
<div class="tr-section-cover cover3"></div>
|
||||
<div class="tr-section-caption">Chat List (78)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/private_chats/" class="tr-section">
|
||||
<div class="tr-section-cover cover4"></div>
|
||||
<div class="tr-section-caption">Private chats (490)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/groups_and_channels/" class="tr-section">
|
||||
<div class="tr-section-cover cover8"></div>
|
||||
<div class="tr-section-caption">Groups And Channels (685)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/profile/" class="tr-section">
|
||||
<div class="tr-section-cover cover5"></div>
|
||||
<div class="tr-section-caption">Profile (35)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/settings/" class="tr-section">
|
||||
<div class="tr-section-cover cover7"></div>
|
||||
<div class="tr-section-caption">Settings (696)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/camera_and_media/" class="tr-section">
|
||||
<div class="tr-section-cover cover6"></div>
|
||||
<div class="tr-section-caption">Camera And Media (88)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/bots_and_payments/" class="tr-section">
|
||||
<div class="tr-section-cover cover9"></div>
|
||||
<div class="tr-section-caption">Bots And Payments (87)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/passport/" class="tr-section">
|
||||
<div class="tr-section-cover cover10"></div>
|
||||
<div class="tr-section-caption">Passport (160)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/general/" class="tr-section">
|
||||
<div class="tr-section-cover cover1"></div>
|
||||
<div class="tr-section-caption">General (579)</div>
|
||||
</a></div>
|
||||
</div><div class="tr-section-col col-lg-4 col-xs-6">
|
||||
<div class="tr-section-wrap"><a href="/en/tdesktop/unsorted/" class="tr-section">
|
||||
<div class="tr-section-cover cover0"></div>
|
||||
<div class="tr-section-caption">Unsorted (215)</div>
|
||||
</a></div>
|
||||
</div>
|
||||
</section></section>
|
||||
</section>
|
||||
</main>
|
||||
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body">
|
||||
<section>
|
||||
<h2>Log In</h2>
|
||||
<p>Log in here to translate Telegram apps. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||||
|
||||
<form id="send-form" class="login-form">
|
||||
<div class="form-group">
|
||||
<input type="tel" class="form-control tr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="login-form" class="hide">
|
||||
<div class="form-group">
|
||||
<span class="form-control tr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||||
</div>
|
||||
<div class="popup-buttons">
|
||||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="popup-container languages-popup-container hide" id="languages-popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-body popup-has-footer">
|
||||
<h4>Languages</h4>
|
||||
|
||||
<form class="tr-popup-search-form tr-languages-search-form">
|
||||
<input class="form-control tr-popup-search-field tr-languages-search-field" placeholder="Search languages" autocomplete="off" value="">
|
||||
</form>
|
||||
<div class="tr-popup-search-results-wrap tr-languages-results-wrap">
|
||||
<div class="tr-popup-search-results tr-languages-results"></div>
|
||||
</div>
|
||||
<div class="tr-languages-add"><a href="/lang/new" data-layer class="need-auth">Add a new language</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?57"></script>
|
||||
<script src="/js/translations.js?97"></script>
|
||||
<script src="/js/jquery-ui.min.js?1"></script>
|
||||
<script src="/js/tesseract.js?1"></script>
|
||||
<script src="/js/main.js?43"></script>
|
||||
<script src="/js/tchart.min.js?18"></script>
|
||||
<script src="/js/billboard.min.js?1"></script>
|
||||
<script src="/js/stats.js?17"></script>
|
||||
|
||||
<script>ajInit({"version":725,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"searchLang":"en","searchLangpack":"tdesktop","langNames":{"en":"English","af":"Afrikaans","sq":"Albanian","am":"Amharic","ar":"Arabic","az":"Azerbaijani","eu":"Basque","be":"Belarusian","bn":"Bengali","bg":"Bulgarian","ca":"Catalan","zh-hans":"Chinese (Simplified)","zh-hant":"Chinese (Traditional)","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch","eo":"Esperanto","et":"Estonian","fi":"Finnish","fr":"French","gl":"Galician","de":"German","el":"Greek","gu":"Gujarati","he":"Hebrew","hi":"Hindi","hu":"Hungarian","id":"Indonesian","ga":"Irish","it":"Italian","ja":"Japanese","kn":"Kannada","kk":"Kazakh","km":"Khmer","ko":"Korean","lv":"Latvian","lt":"Lithuanian","ms":"Malay","ml":"Malayalam","mt":"Maltese","mr":"Marathi","nb":"Norwegian (Bokmål)","or":"Odia","fa":"Persian","pl":"Polish","pt-br":"Portuguese (Brazil)","pt-pt":"Portuguese (Portugal)","ro":"Romanian","ru":"Russian","sr":"Serbian","sk":"Slovak","sl":"Slovene","es":"Spanish","sw":"Swahili","sv":"Swedish","ta":"Tamil","te":"Telugu","th":"Thai","tr":"Turkish","tk":"Turkmen","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese"},"langpackList":[],"langpackNames":{"":"All Apps","android":"Android","ios":"iOS","tdesktop":"TDesktop","macos":"macOS","android_x":"Android X"},"langList":["en","af","sq","am","ar","az","eu","be","bn","bg","ca","zh-hans","zh-hant","hr","cs","da","nl","eo","et","fi","fr","gl","de","el","gu","he","hi","hu","id","ga","it","ja","kn","kk","km","ko","lv","lt","ms","ml","mt","mr","nb","or","fa","pl","pt-br","pt-pt","ro","ru","sr","sk","sl","es","sw","sv","ta","te","th","tr","tk","uk","ur","uz","vi"],"curLang":"en","curLangpack":"tdesktop"}});</script>
|
||||
<script id="aj_script">l.add({"WEB_PLURALIZED_LABEL_0":"Zero","WEB_PLURALIZED_LABEL_1":"One","WEB_PLURALIZED_LABEL_2":"Two","WEB_PLURALIZED_LABEL_3":"Few","WEB_PLURALIZED_LABEL_4":"Many","WEB_PLURALIZED_LABEL_5":"Other","WEB_NO_TRANSLATIONS_FOUND":"No translations found","WEB_TRANSLATIONS_LOADING":"Loading","WEB_ACTIVATE_LANGPACK_CONFIRM_TEXT":"Do you want to begin translating <b>{lang_pack}<\/b> to <b>{lang}<\/b>?","WEB_ACTIVATE_LANGPACK_CONFIRM_BUTTON":"Start Translating","WEB_LOADING":"Loading","WEB_NO_LANGUAGES_FOUND":"No languages found"});
|
||||
Search.init();
|
||||
Header.init();
|
||||
Nav.init();
|
||||
Aj.onLoad(function(state) {
|
||||
function requestConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
var phone = $('#phone-number').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/request',
|
||||
data: {
|
||||
phone: phone
|
||||
},
|
||||
success: function(result) {
|
||||
$('#phone-number-field').text(phone);
|
||||
$('#send-form').addClass('hide');
|
||||
$('#login-form').removeClass('hide');
|
||||
checkAuth(result.temp_session);
|
||||
},
|
||||
error: function(xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function cancelConfirmation(event) {
|
||||
event && event.preventDefault();
|
||||
$('#phone-number-field').text('');
|
||||
$('#send-form').removeClass('hide');
|
||||
$('#login-form').addClass('hide');
|
||||
$('#phone-number').focus();
|
||||
clearTimeout(window.authTimeout);
|
||||
return false;
|
||||
}
|
||||
function checkAuth(temp_session) {
|
||||
clearTimeout(window.authTimeout);
|
||||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/auth/login',
|
||||
data: {
|
||||
temp_session: temp_session
|
||||
},
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
location.reload();
|
||||
} else {
|
||||
checkAuth(temp_session);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
showAlert(xhr.responseText || 'Server error');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
}, 700);
|
||||
}
|
||||
$('#login-popup-container').on('popup:open', function() {
|
||||
$('#phone-number').focus();
|
||||
});
|
||||
$('#login-popup-container').on('popup:close', function() {
|
||||
cancelConfirmation();
|
||||
if (location.pathname == '/auth') {
|
||||
window.history && history.replaceState(null, null, '/');
|
||||
}
|
||||
});
|
||||
$('#login-popup-container #send-form').on('submit', requestConfirmation);
|
||||
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
closePopup('#login-popup-container');
|
||||
});
|
||||
$('#login-popup-container .login-back').on('click', cancelConfirmation);
|
||||
$('.login-link').on('click', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
openPopup('#login-popup-container');
|
||||
});
|
||||
});
|
||||
Aj.onUnload(function(state) {
|
||||
$('#login-popup-container').off('popup:open');
|
||||
$('#login-popup-container').off('popup:close');
|
||||
$('#login-popup-container #send-form').off('submit');
|
||||
$('#login-popup-container .login-cancel-btn').off('click');
|
||||
$('#login-popup-container .login-back').off('click');
|
||||
$('.login-link').off('click');
|
||||
});
|
||||
</script>
|
||||
<script>Aj.pageLoaded();</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in a new issue