enricostara/telegram.link

View on GitHub
lib/static.js

Summary

Maintainability
A
0 mins
Test Coverage
//     telegram.link
//     Copyright 2014 Enrico Stara 'enrico.stara@gmail.com'
//     Released under the MIT License
//     http://telegram.link

// Export the project signature to display as banner.
exports.signature = 'TELEGRAM.LINK';

// Export static info published by the Telegram facility.
exports.telegram = {
    // !! 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 https://core.telegram.org/api/obtaining_api_id
    // You can get your own `api_id` and `api_hash` at https://core.telegram.org/myapp
    test: {
        // Sample APP_ID from open source code (https://core.telegram.org/api/obtaining_api_id#using-telegram-39s-open-source-code)
        app: {
            id: 10534,
            hash: '844584f2b1fd2daecee726166dcc1ef8'
        },
        // Test phone number prefix, see https://core.telegram.org/api/datacenter
        phoneNumberPrefix: '99966',
        // Test DC2
        primaryDataCenter: {
            host: "149.154.167.40",
            port: "443"
        }
    },
    prod: {
        // Production DC2
        primaryDataCenter: {
            host: "149.154.167.50",
            port: "443"
        }
    }
};

// Register `Telegram Messanger` public keys.
var PublicKey = require('telegram-mt-node').security.PublicKey;
PublicKey.addKey({
    fingerprint: '0x9a996a1db11c729b',
    modulus: 'c6aeda78b02a251db4b6441031f467fa871faed32526c436524b1fb3b5dca28efb8c089dd1b46d92c895993d87108254951c5f001a0f055f3063dcd14d431a300eb9e29517e359a1c9537e5e87ab1b116faecf5d17546ebc21db234d9d336a693efcb2b6fbcca1e7d1a0be414dca408a11609b9c4269a920b09fed1f9a1597be02761430f09e4bc48fcafbe289054c99dba51b6b5eb7d9c3a2ab4e490545b4676bd620e93804bcac93bf94f73f92c729ca899477ff17625ef14a934d51dc11d5f8650a3364586b3a52fcff2fedec8a8406cac4e751705a472e55707e3c8cd5594342b119c6c3293532d85dbe9271ed54a2fd18b4dc79c04a30951107d5639397',
    exponent: '010001'
});
PublicKey.addKey({
    fingerprint: '0xb05b2a6f70cdea78',
    key: 'b1066749655935f0a5936f517034c943bea7f3365a8931ae52c8bcb14856f004b83d26cf2839be0f22607470d67481771c1ce5ec31de16b20bbaa4ecd2f7d2ecf6b6356f27501c226984263edc046b89fb6d3981546b01d7bd34fedcfcc1058e2d494bda732ff813e50e1c6ae249890b225f82b22b1e55fcb063dc3c0e18e91c28d0c4aa627dec8353eee6038a95a4fd1ca984eb09f94aeb7a2220635a8ceb450ea7e61d915cdb4eecedaa083aa3801daf071855ec1fb38516cb6c2996d2d60c0ecbcfa57e4cf1fb0ed39b2f37e94ab4202ecf595e167b3ca62669a6da520859fb6d6c6203dfdfc79c75ec3ee97da8774b2da903e3435f2cd294670a75a526c1',
    exponent: '010001'
});
PublicKey.addKey({
    fingerprint: '0xc3b42b026ce86b21',
    modulus: 'c150023e2f70db7985ded064759cfecf0af328e69a41daf4d6f01b538135a6f91f8f8b2a0ec9ba9720ce352efcf6c5680ffc424bd634864902de0b4bd6d49f4e580230e3ae97d95c8b19442b3c0a10d8f5633fecedd6926a7f6dab0ddb7d457f9ea81b8465fcd6fffeed114011df91c059caedaf97625f6c96ecc74725556934ef781d866b34f011fce4d835a090196e9a5f0e4449af7eb697ddb9076494ca5f81104a305b6dd27665722c46b60e5df680fb16b210607ef217652e60236c255f6a28315f4083a96791d7214bf64c1df4fd0db1944fb26a2a57031b32eee64ad15a8ba68885cde74a5bfc920f6abf59ba5c75506373e7130f9042da922179251f',
    exponent: '010001'
});
PublicKey.addKey({
    fingerprint: '0x71e025b6c76033e3',
    modulus: 'c2a8c55b4a62e2b78a19b91cf692bcdc4ba7c23fe4d06f194e2a0c30f6d9996f7d1a2bcc89bc1ac4333d44359a6c433252d1a8402d9970378b5912b75bc8cc3fa76710a025bcb9032df0b87d7607cc53b928712a174ea2a80a8176623588119d42ffce40205c6d72160860d8d80b22a8b8651907cf388effbef29cd7cf2b4eb8a872052da1351cfe7fec214ce48304ea472bd66329d60115b3420d08f6894b0410b6ab9450249967617670c932f7cbdb5d6fbcce1e492c595f483109999b2661fcdeec31b196429b7834c7211a93c6789d9ee601c18c39e521fda9d7264e61e518add6f0712d2d5228204b851e13c4f322e5c5431c3b7f31089668486aadc59f',
    exponent: '010001'
});