doc/static.html
<!DOCTYPE html>
<html>
<head>
<title>static.js</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>static.js</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">¶</a>
</div>
<pre><code>telegram.link
Copyright <span class="hljs-number">2014</span> Enrico Stara <span class="hljs-string">'enrico.stara@gmail.com'</span>
Released under the MIT License
http:<span class="hljs-comment">//telegram.link</span>
</code></pre>
</div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">¶</a>
</div>
<p>Export the project signature to display as banner.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.signature = <span class="hljs-string">'TELEGRAM.LINK'</span>;</pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">¶</a>
</div>
<p>Export static info published by the Telegram facility.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.telegram = {</pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">¶</a>
</div>
<p>!! IMPORTANT: THE TEST APP_ID BELOW IS ONLY FOR TEST EXECUTION IN CI !!
DO NOT USE THE TEST APP_ID BELOW FOR YOUR APPLICATION ! Your application may be blocked!
See <a href="https://core.telegram.org/api/obtaining_api_id">https://core.telegram.org/api/obtaining_api_id</a>
You can get your own <code>api_id</code> and <code>api_hash</code> at <a href="https://core.telegram.org/myapp">https://core.telegram.org/myapp</a></p>
</div>
<div class="content"><div class='highlight'><pre> test: {</pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">¶</a>
</div>
<p>Sample APP_ID from open source code (<a href="https://core.telegram.org/api/obtaining_api_id#using-telegram-39s-open-source-code">https://core.telegram.org/api/obtaining_api_id#using-telegram-39s-open-source-code</a>)</p>
</div>
<div class="content"><div class='highlight'><pre> app: {
id: <span class="hljs-number">10534</span>,
hash: <span class="hljs-string">'844584f2b1fd2daecee726166dcc1ef8'</span>
},</pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">¶</a>
</div>
<p>Test phone number prefix, see <a href="https://core.telegram.org/api/datacenter">https://core.telegram.org/api/datacenter</a></p>
</div>
<div class="content"><div class='highlight'><pre> phoneNumberPrefix: <span class="hljs-string">'99966'</span>,</pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">¶</a>
</div>
<p>Test DC2</p>
</div>
<div class="content"><div class='highlight'><pre> primaryDataCenter: {
host: <span class="hljs-string">"149.154.167.40"</span>,
port: <span class="hljs-string">"443"</span>
}
},
prod: {</pre></div></div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">¶</a>
</div>
<p>Production DC2</p>
</div>
<div class="content"><div class='highlight'><pre> primaryDataCenter: {
host: <span class="hljs-string">"149.154.167.50"</span>,
port: <span class="hljs-string">"443"</span>
}
}
};</pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">¶</a>
</div>
<p>Register <code>Telegram Messanger</code> public keys.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">var</span> PublicKey = <span class="hljs-built_in">require</span>(<span class="hljs-string">'telegram-mt-node'</span>).security.PublicKey;
PublicKey.addKey({
fingerprint: <span class="hljs-string">'0x9a996a1db11c729b'</span>,
modulus: <span class="hljs-string">'c6aeda78b02a251db4b6441031f467fa871faed32526c436524b1fb3b5dca28efb8c089dd1b46d92c895993d87108254951c5f001a0f055f3063dcd14d431a300eb9e29517e359a1c9537e5e87ab1b116faecf5d17546ebc21db234d9d336a693efcb2b6fbcca1e7d1a0be414dca408a11609b9c4269a920b09fed1f9a1597be02761430f09e4bc48fcafbe289054c99dba51b6b5eb7d9c3a2ab4e490545b4676bd620e93804bcac93bf94f73f92c729ca899477ff17625ef14a934d51dc11d5f8650a3364586b3a52fcff2fedec8a8406cac4e751705a472e55707e3c8cd5594342b119c6c3293532d85dbe9271ed54a2fd18b4dc79c04a30951107d5639397'</span>,
exponent: <span class="hljs-string">'010001'</span>
});
PublicKey.addKey({
fingerprint: <span class="hljs-string">'0xb05b2a6f70cdea78'</span>,
key: <span class="hljs-string">'b1066749655935f0a5936f517034c943bea7f3365a8931ae52c8bcb14856f004b83d26cf2839be0f22607470d67481771c1ce5ec31de16b20bbaa4ecd2f7d2ecf6b6356f27501c226984263edc046b89fb6d3981546b01d7bd34fedcfcc1058e2d494bda732ff813e50e1c6ae249890b225f82b22b1e55fcb063dc3c0e18e91c28d0c4aa627dec8353eee6038a95a4fd1ca984eb09f94aeb7a2220635a8ceb450ea7e61d915cdb4eecedaa083aa3801daf071855ec1fb38516cb6c2996d2d60c0ecbcfa57e4cf1fb0ed39b2f37e94ab4202ecf595e167b3ca62669a6da520859fb6d6c6203dfdfc79c75ec3ee97da8774b2da903e3435f2cd294670a75a526c1'</span>,
exponent: <span class="hljs-string">'010001'</span>
});
PublicKey.addKey({
fingerprint: <span class="hljs-string">'0xc3b42b026ce86b21'</span>,
modulus: <span class="hljs-string">'c150023e2f70db7985ded064759cfecf0af328e69a41daf4d6f01b538135a6f91f8f8b2a0ec9ba9720ce352efcf6c5680ffc424bd634864902de0b4bd6d49f4e580230e3ae97d95c8b19442b3c0a10d8f5633fecedd6926a7f6dab0ddb7d457f9ea81b8465fcd6fffeed114011df91c059caedaf97625f6c96ecc74725556934ef781d866b34f011fce4d835a090196e9a5f0e4449af7eb697ddb9076494ca5f81104a305b6dd27665722c46b60e5df680fb16b210607ef217652e60236c255f6a28315f4083a96791d7214bf64c1df4fd0db1944fb26a2a57031b32eee64ad15a8ba68885cde74a5bfc920f6abf59ba5c75506373e7130f9042da922179251f'</span>,
exponent: <span class="hljs-string">'010001'</span>
});
PublicKey.addKey({
fingerprint: <span class="hljs-string">'0x71e025b6c76033e3'</span>,
modulus: <span class="hljs-string">'c2a8c55b4a62e2b78a19b91cf692bcdc4ba7c23fe4d06f194e2a0c30f6d9996f7d1a2bcc89bc1ac4333d44359a6c433252d1a8402d9970378b5912b75bc8cc3fa76710a025bcb9032df0b87d7607cc53b928712a174ea2a80a8176623588119d42ffce40205c6d72160860d8d80b22a8b8651907cf388effbef29cd7cf2b4eb8a872052da1351cfe7fec214ce48304ea472bd66329d60115b3420d08f6894b0410b6ab9450249967617670c932f7cbdb5d6fbcce1e492c595f483109999b2661fcdeec31b196429b7834c7211a93c6789d9ee601c18c39e521fda9d7264e61e518add6f0712d2d5228204b851e13c4f322e5c5431c3b7f31089668486aadc59f'</span>,
exponent: <span class="hljs-string">'010001'</span>
});</pre></div></div>
</li>
</ul>
</div>
</body>
</html>