telegram-mtproto
Version:
Telegram MTProto library
890 lines (879 loc) • 37.2 kB
JavaScript
const msg_detailed_info = {
_ : 'msg_detailed_info',
msg_id : '6406971663541552452',
answer_msg_id: '6406971666597751809',
bytes : 1724,
status : 0
}
const msg_detailed_infoBinary = [
198, 62, 109, 39, 68, 69, 99, 75, 200, 34,
234, 88, 1, 44, 141, 1, 201, 34, 234, 88, 188, 6, 0, 0, 0, 0, 0, 0
]
const channelMessages = {
'_' : 'messages.channelMessages',
'flags' : 0,
'pts' : 41,
'count' : 36,
'messages': [
{
'_' : 'message',
'flags' : 256,
'id' : 37,
'from_id': 683606,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490262296,
'message': 'Hi'
},
{
'_' : 'message',
'flags' : 256,
'id' : 36,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490182930,
'message': 'helo'
},
{
'_' : 'message',
'flags' : 258,
'out' : true,
'id' : 35,
'from_id': 297169,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490115736,
'message': 'Memes'
},
{
'_' : 'message',
'flags' : 256,
'id' : 34,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490097227,
'message': 'send them this'
},
{
'_' : 'message',
'flags' : 1284,
'id' : 33,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'fwd_from': {
'_' : 'messageFwdHeader',
'flags' : 6,
'date' : 1490097219,
'channel_id' : 10364880,
'channel_post': 6
},
'date' : 1490097223,
//eslint-disable-next-line
'message': 'Will soon reveal information about my newest TRAVEL BAN and how this will affect Iran in particular! Iranians have a bad reputation, owe the US many apologies!',
'views' : 12
},
{
'_' : 'message',
'flags' : 384,
'id' : 32,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490097119,
'message' : '@IranGroup',
'entities': [
{
'_' : 'messageEntityMention',
'offset': 0,
'length': 10
}
]
},
{
'_' : 'message',
'flags' : 256,
'id' : 31,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490097112,
'message': 'gotta get iranis to join'
},
{
'_' : 'message',
'flags' : 256,
'id' : 30,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490090527,
'message': 'LLLOOOOL'
},
{
'_' : 'message',
'flags' : 1284,
'id' : 29,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'fwd_from': {
'_' : 'messageFwdHeader',
'flags' : 6,
'date' : 1490084959,
'channel_id' : 10364880,
'channel_post': 5
},
'date' : 1490085028,
//eslint-disable-next-line
'message': 'Obamacare is a disaster! Washington has been producing billions keeping it hidden that tangerines are the cure-all. No more!',
'views' : 10
},
{
'_' : 'message',
'flags' : 384,
'id' : 28,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490085018,
'message' : '@WhiteHouse',
'entities': [
{
'_' : 'messageEntityMention',
'offset': 0,
'length': 11
}
]
},
{
'_' : 'message',
'flags' : 256,
'id' : 27,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490085011,
'message': 'remember iranian_wal_ter? we gotta make memes for a new channel'
},
{
'_' : 'message',
'flags' : 256,
'id' : 26,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490084617,
'message': 'pls make if not'
},
{
'_' : 'message',
'flags' : 384,
'id' : 25,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490084612,
'message' : '@wekiro is there a wal ter stickerpack on here',
'entities': [
{
'_' : 'messageEntityMention',
'offset': 0,
'length': 7
}
]
},
{
'_' : 'message',
'flags' : 256,
'id' : 24,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490083947,
'message': 'hi'
},
{
'_' : 'message',
'flags' : 256,
'id' : 23,
'from_id': 683606,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490049509,
'message': 'hi'
},
{
'_' : 'messageService',
'flags' : 256,
'id' : 22,
'from_id': 683606,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1490049493,
'action': {
'_' : 'messageActionChatAddUser',
'users': [
683606
]
}
},
{
'_' : 'message',
'flags' : 256,
'id' : 20,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489882404,
'message': "honestly i probably won't use this until i can do so on the desktop"
},
{
'_' : 'message',
'flags' : 256,
'id' : 19,
'from_id': 970357,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489882385,
'message': "the two me's"
},
{
'_' : 'messageService',
'flags' : 256,
'id' : 18,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489880692,
'action': {
'_' : 'messageActionChatAddUser',
'users': [
102796
]
}
},
{
'_' : 'messageService',
'flags' : 256,
'id' : 17,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489880662,
'action': {
'_' : 'messageActionChatAddUser',
'users': [
970357
]
}
},
{
'_' : 'message',
'flags' : 256,
'id' : 16,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489880650,
'message': 'pszzl'
},
{
'_' : 'message',
'flags' : 256,
'id' : 15,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489880647,
'message': 'hi'
},
{
'_' : 'message',
'flags' : 258,
'out' : true,
'id' : 14,
'from_id': 297169,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489791809,
'message': 'hi'
},
{
'_' : 'message',
'flags' : 258,
'out' : true,
'id' : 13,
'from_id': 297169,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489789367,
'message': 'Lol'
},
{
'_' : 'messageService',
'flags' : 256,
'id' : 12,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489776559,
'action': {
'_' : 'messageActionChatAddUser',
'users': [
297169
]
}
},
{
'_' : 'message',
'flags' : 256,
'id' : 11,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489776547,
'message': "that's andrei"
},
{
'_' : 'message',
'flags' : 33024,
'id' : 10,
'from_id': 447674,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489776253,
'message' : 'maybe he could join us',
'edit_date': 1489776337
},
{
'_' : 'message',
'flags' : 264,
'id' : 9,
'from_id': 447674,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'reply_to_msg_id': 2,
'date' : 1489776226,
'message' : 'ask him who he is'
},
{
'_' : 'messageService',
'flags' : 256,
'id' : 8,
'from_id': 447674,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489776175,
'action': {
'_' : 'messageActionChatAddUser',
'users': [
447674
]
}
},
{
'_' : 'message',
'flags' : 256,
'id' : 7,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489772821,
'message': 'hi'
},
{
'_' : 'message',
'flags' : 256,
'id' : 6,
'from_id': 73488,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489772738,
'message': 'secret telegram server'
},
{
'_' : 'message',
'flags' : 256,
'id' : 5,
'from_id': 73488,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489772721,
'message': 'wee'
},
{
'_' : 'message',
'flags' : 256,
'id' : 4,
'from_id': 266297,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489772717,
'message': 'hi'
},
{
'_' : 'message',
'flags' : 256,
'id' : 3,
'from_id': 73488,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489772704,
'message': 'those malantrinu'
},
{
'_' : 'message',
'flags' : 384,
'id' : 2,
'from_id': 73488,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489772697,
'message' : 'mfw @lambda is taken',
'entities': [
{
'_' : 'messageEntityMention',
'offset': 4,
'length': 7
}
]
},
{
'_' : 'messageService',
'flags' : 256,
'id' : 1,
'from_id': 73488,
'to_id' : {
'_' : 'peerChannel',
'channel_id': 10374918
},
'date' : 1489772659,
'action': {
'_' : 'messageActionChannelMigrateFrom',
'title' : 'Lambda Calculus, Beta Reduction',
'chat_id': 736926
}
}
],
'chats': [
{
'_' : 'channel',
'flags' : 9536,
'megagroup' : true,
'democracy' : true,
'id' : 10374918,
'access_hash': '17273160539159126376',
'title' : 'Lambda Calculus, Beta Reduction',
'username' : 'wal_ter',
'photo' : {
'_': 'chatPhotoEmpty'
},
'date' : 1489776559,
'version': 0
},
{
'_' : 'channel',
'flags' : 8292,
'left' : true,
'broadcast' : true,
'id' : 10364880,
'access_hash': '9013898697112970099',
'title' : 'President Trump',
'username' : 'WhiteHouse',
'photo' : {
'_' : 'chatPhoto',
'photo_small': {
'_' : 'fileLocation',
'dc_id' : 1,
'volume_id': '702109798',
'local_id' : 1320,
'secret' : '12757690611018758286'
},
'photo_big': {
'_' : 'fileLocation',
'dc_id' : 1,
'volume_id': '702109798',
'local_id' : 1322,
'secret' : '16615343609854745998'
}
},
'date' : 1490084095,
'version': 0
},
{
'_' : 'chatForbidden',
'id' : 736926,
'title': 'Lambda Calculus, Beta Reduction'
},
{
'_' : 'channel',
'flags' : 9536,
'megagroup' : true,
'democracy' : true,
'id' : 10374918,
'access_hash': '17273160539159126376',
'title' : 'Lambda Calculus, Beta Reduction',
'username' : 'wal_ter',
'photo' : {
'_': 'chatPhotoEmpty'
},
'date' : 1489776559,
'version': 0
}
],
'users': [
{
'_' : 'user',
'flags' : 107,
'id' : 683606,
'access_hash': '6997879091074994109',
'first_name' : 'Kevin',
'username' : 'Hexadecimal',
'photo' : {
'_' : 'userProfilePhoto',
'photo_id' : '2936065869588393',
'photo_small': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116121',
'local_id' : 225,
'secret' : '13991062375479541001'
},
'photo_big': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116121',
'local_id' : 227,
'secret' : '9075592905062293373'
}
},
'status': {
'_' : 'userStatusOffline',
'was_online': 1491734594
}
},
{
'_' : 'user',
'flags' : 79,
'id' : 266297,
'access_hash': '12724163088027607302',
'first_name' : 'Rei',
'last_name' : 'Durov',
'username' : 'wekiro',
'status' : {
'_' : 'userStatusOffline',
'was_online': 1491546874
}
},
{
'_' : 'user',
'flags' : 3195,
'self' : true,
'contact' : true,
'id' : 297169,
'access_hash': '6362957075171533052',
'first_name' : 'lamtest',
'username' : 'lambda',
'phone' : '9996620000',
'photo' : {
'_' : 'userProfilePhoto',
'photo_id' : '1276331592624111',
'photo_small': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116248',
'local_id' : 204,
'secret' : '15001237309940136639'
},
'photo_big': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116248',
'local_id' : 206,
'secret' : '5708407752355442935'
}
},
'status': {
'_' : 'userStatusOnline',
'expires': 1491739603
}
},
{
'_' : 'user',
'flags' : 107,
'id' : 970357,
'access_hash': '9514075126554528499',
'first_name' : 'rose',
'username' : 'nanami',
'photo' : {
'_' : 'userProfilePhoto',
'photo_id' : '4167652036683689',
'photo_small': {
'_' : 'fileLocation',
'dc_id' : 1,
'volume_id': '702109386',
'local_id' : 1210,
'secret' : '157090485445328239'
},
'photo_big': {
'_' : 'fileLocation',
'dc_id' : 1,
'volume_id': '702109386',
'local_id' : 1212,
'secret' : '3244673982679259083'
}
},
'status': {
'_' : 'userStatusOffline',
'was_online': 1490604943
}
},
{
'_' : 'user',
'flags' : 16395,
'bot' : true,
'id' : 936174,
'access_hash' : '3069388093377561738',
'first_name' : 'Channels',
'username' : 'channelsbot',
'bot_info_version': 1
},
{
'_' : 'user',
'flags' : 107,
'id' : 102796,
'access_hash': '10144966109124211524',
'first_name' : 'adam',
'username' : 'nemesis',
'photo' : {
'_' : 'userProfilePhoto',
'photo_id' : '441505914398637',
'photo_small': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116405',
'local_id' : 266,
'secret' : '12882835238084215401'
},
'photo_big': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116405',
'local_id' : 268,
'secret' : '18246009092893820396'
}
},
'status': {
'_' : 'userStatusOffline',
'was_online': 1491384647
}
},
{
'_' : 'user',
'flags' : 107,
'id' : 447674,
'access_hash': '14489728384797422977',
'first_name' : '分解物質',
'username' : 'yellow_apple',
'photo' : {
'_' : 'userProfilePhoto',
'photo_id' : '1922745645508522',
'photo_small': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116057',
'local_id' : 228,
'secret' : '5811081690727371620'
},
'photo_big': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116057',
'local_id' : 230,
'secret' : '17480782019216519380'
}
},
'status': {
'_' : 'userStatusOffline',
'was_online': 1491577169
}
},
{
'_' : 'user',
'flags' : 107,
'id' : 73488,
'access_hash': '6013806380577980132',
'first_name' : 'rose',
'username' : 'chiaki',
'photo' : {
'_' : 'userProfilePhoto',
'photo_id' : '315629012887465',
'photo_small': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116337',
'local_id' : 184,
'secret' : '16064112803115074507'
},
'photo_big': {
'_' : 'fileLocation',
'dc_id' : 2,
'volume_id': '604116337',
'local_id' : 186,
'secret' : '10983046197845212650'
}
},
'status': {
'_' : 'userStatusOffline',
'was_online': 1489775509
}
}
]
}
const channelMessagesBinary = [
//eslint-disable-next-line
2569416247, 0, 41, 36, 481674261, 36, 3231442015, 256, 37, 683606, 3185435954, 10374918, 1490262296, 6899714, 3231442015, 256, 36, 266297, 3185435954, 10374918, 1490182930, 1818585092, 111, 3231442015, 258, 35, 297169, 3185435954, 10374918, 1490115736, 1835355397, 29541, 3231442015, 256, 34, 970357, 3185435954, 10374918, 1490097227, 1852142350, 1752440932, 1948282213, 7563624, 3231442015, 1284, 33, 970357, 3185435954, 10374918, 3347504587, 6, 1490097219, 10364880, 6, 1490097223, 1818843039, 1869815916, 1914728047, 1634039397, 1852383340, 1836216166, 1869182049, 1650532462, 544503151, 1847621997, 1936029541, 1381245044, 1279612481, 1312899616, 1684955424, 2003789856, 1768453152, 1769414771, 1629514860, 1667589734, 1917395060, 1763733089, 1634738286, 1667855474, 1918987381, 1917394977, 1634299489, 1746957166, 543520353, 1633820769, 1701978212, 1635022192, 1852795252, 2003771436, 1752440933, 1398087781, 1851878688, 1885413497, 1735355503, 561210729, 12, 3231442015, 384, 32, 970357, 3185435954, 10374918, 1490097119, 1917403146, 1917283937, 7370095, 481674261, 1, 4194588573, 0, 10, 3231442015, 256, 31, 970357, 3185435954, 10374918, 1490097112, 1953457944, 1730175348, 1763734629, 1768841586, 1869881459, 1768909344, 110, 3231442015, 256, 30, 266297, 3185435954, 10374918, 1490090527, 1280068616, 1330597711, 76, 3231442015, 1284, 29, 970357, 3185435954, 10374918, 3347504587, 6, 1490084959, 10364880, 5, 1490085028, 1633832828, 1633902957, 1763730802, 543236211, 1634953572, 1919251571, 1633099809, 1852401779, 1852798055, 1935763488, 1701143072, 1919950958, 1668637807, 543649385, 1819044194, 1936617321, 1701145376, 1735289200, 544500000, 1684302184, 1948282469, 544498024, 1735287156, 1852404325, 1629516645, 1948280178, 1663067496, 761623157, 778857569, 544165408, 1701998445, 33, 10, 3231442015, 384, 28, 970357, 3185435954, 10374918, 1490085018, 1750548491, 1214608489, 1702065519, 481674261, 1, 4194588573, 0, 11, 3231442015, 256, 27, 970357, 3185435954, 10374918, 1490085011, 1835364927, 1700949349, 1919492210, 1634299489, 1635213166, 1702125420, 1998602098, 1869029477, 543257716, 1701536109, 1835363616, 1713402725, 1629516399, 2003136032, 1634231072, 1818586734, 3231442015, 256, 26, 970357, 3185435954, 10374918, 1490084617, 1936486415, 1801547040, 1718165605, 1953459744, 3231442015, 384, 25, 970357, 3185435954, 10374918, 1490084612, 1702314030, 1869769067, 544434464, 1919248500, 543236197, 543973751, 544367988, 1667855475, 1886545259, 543908705, 1746955887, 6648421, 481674261, 1, 4194588573, 0, 7, 3231442015, 256, 24, 970357, 3185435954, 10374918, 1490083947, 6907906, 3231442015, 256, 23, 683606, 3185435954, 10374918, 1490049509, 6907906, 2652479990, 256, 22, 683606, 3185435954, 10374918, 1490049493, 1217033015, 481674261, 1, 683606, 3231442015, 256, 20, 970357, 3185435954, 10374918, 1489882404, 1852794947, 1819571045, 543760505, 1651470960, 2037146209, 1852798752, 1965061159, 1948280179, 544434536, 1769238133, 543760492, 544104803, 1931505508, 1852776559, 1701344288, 1936024608, 1886352491, 3231442015, 256, 19, 970357, 3185435954, 10374918, 1489882385, 1701344268, 1870099488, 660958496, 115, 2652479990, 256, 18, 266297, 3185435954, 10374918, 1489880692, 1217033015, 481674261, 1, 102796, 2652479990, 256, 17, 266297, 3185435954, 10374918, 1489880662, 1217033015, 481674261, 1, 970357, 3231442015, 256, 16, 266297, 3185435954, 10374918, 1489880650, 2054385669, 27770, 3231442015, 256, 15, 266297, 3185435954, 10374918, 1489880647, 6907906, 3231442015, 258, 14, 297169, 3185435954, 10374918, 1489791809, 6907906, 3231442015, 258, 13, 297169, 3185435954, 10374918, 1489789367, 1819233283, 2652479990, 256, 12, 266297, 3185435954, 10374918, 1489776559, 1217033015, 481674261, 1, 297169, 3231442015, 256, 11, 266297, 3185435954, 10374918, 1489776547, 1634235405, 544417652, 1919184481, 26981, 3231442015, 33024, 10, 447674, 3185435954, 10374918, 1489776253, 2036428054, 1746953570, 1868767333, 543452277, 1852403562, 7566624, 1489776337, 3231442015, 264, 9, 447674, 3185435954, 10374918, 2, 1489776226, 1802723601, 1835624480, 1869117216, 543516704, 29545, 2652479990, 256, 8, 447674, 3185435954, 10374918, 1489776175, 1217033015, 481674261, 1, 447674, 3231442015, 256, 7, 266297, 3185435954, 10374918, 1489772821, 6907906, 3231442015, 256, 6, 73488, 3185435954, 10374918, 1489772738, 1667592982, 544499058, 1701602676, 1835102823, 1919251232, 7497078, 3231442015, 256, 5, 73488, 3185435954, 10374918, 1489772721, 1701148419, 3231442015, 256, 4, 266297, 3185435954, 10374918, 1489772717, 6907906, 3231442015, 256, 3, 73488, 3185435954, 10374918, 1489772704, 1869116432, 1830839667, 1851878497, 1852404340, 117, 3231442015, 384, 2, 73488, 3185435954, 10374918, 1489772697, 2003201300, 1634484256, 1633968749, 544434464, 1701536116, 110, 481674261, 1, 4194588573, 4, 7, 2652479990, 256, 1, 73488, 3185435954, 10374918, 1489772659, 2958420718, 1835093023, 543253602, 1668047171, 1937075317, 1698832428, 1377853812, 1668637797, 1852795252, 736926, 481674261, 4, 2706229842, 9536, 10374918, 1155522920, 4021721086, 1835093023, 543253602, 1668047171, 1937075317, 1698832428, 1377853812, 1668637797, 1852795252, 1818326791, 1919251551, 935395612, 1489776559, 0, 2706229842, 8292, 10364880, 2059821939, 2098711835, 1701990415, 1701079411, 1411413102, 1886221682, 1768445706, 1867015540, 6648693, 1632839530, 1406570614, 1, 702109798, 0, 1320, 2149316750, 2970381316, 1406570614, 1, 702109798, 0, 1322, 913497486, 3868561147, 1490084095, 0, 120753115, 736926, 1835093023, 543253602, 1668047171, 1937075317, 1698832428, 1377853812, 1668637797, 1852795252, 2706229842, 9536, 10374918, 1155522920, 4021721086, 1835093023, 543253602, 1668047171, 1937075317, 1698832428, 1377853812, 1668637797, 1852795252, 1818326791, 1919251551, 935395612, 1489776559, 0, 481674261, 8, 3507328922, 107, 683606, 4238905277, 1629320692, 1986349829, 28265, 2019903499, 1667589217, 1818324329, 3579435208, 456239017, 683606, 1406570614, 2, 604116121, 0, 225, 1221229833, 3257548058, 1406570614, 2, 604116121, 0, 227, 2689277821, 2113076137, 9203775, 1491734594, 3507328922, 79, 266297, 3188056326, 2962575081, 1768247811, 1920287749, 30319, 1801811718, 7303785, 9203775, 1491546874, 3507328922, 3195, 297169, 1520984316, 1481491391, 1835101191, 1953719668, 1835101190, 6382690, 960051466, 808597046, 3158064, 3579435208, 456239087, 297169, 1406570614, 2, 604116248, 0, 204, 2052160191, 3492747738, 1406570614, 2, 604116248, 0, 206, 943419639, 1329092251, 3988339017, 1491739603, 3507328922, 107, 970357, 2091485939, 2215168235, 1936683524, 101, 1851878918, 6909281, 3579435208, 456239017, 970357, 1406570614, 1, 702109386, 0, 1210, 3599760751, 36575478, 1406570614, 1, 702109386, 0, 1212, 3582760907, 755459531, 9203775, 1490604943, 3507328922, 16395, 936174, 1737835658, 714647605, 1634222856, 1818586734, 115, 1634231051, 1818586734, 1953456755, 1, 3507328922, 107, 102796, 146387780, 2362058989, 1633968388, 109, 1835363847, 1936290661, 3579435208, 456239021, 102796, 1406570614, 2, 604116405, 0, 266, 2447704681, 2999518820, 1406570614, 2, 604116405, 0, 268, 914081260, 4248230041, 9203775, 1491384647, 3507328922, 107, 447674, 868136321, 3373652786, 2257118476, 3886262248, 3018369417, 170, 1818589452, 1601662828, 1819308129, 101, 3579435208, 456239018, 447674, 1406570614, 2, 604116057, 0, 228, 1620366180, 1352997890, 1406570614, 2, 604116057, 0, 230, 460304596, 4070061729, 9203775, 1491577169, 3507328922, 107, 73488, 1716780772, 1400198410, 1936683524, 101, 1768448774, 6908769, 3579435208, 456239017, 73488, 1406570614, 2, 604116337, 0, 184, 2910487499, 3740217723, 1406570614, 2, 604116337, 0, 186, 2252652010, 2557189715, 9203775, 1489775509
]
const req_pq = {
nonce: [222, 17, 186, 64, 83, 202, 33, 243, 29, 96, 40, 96, 128, 135, 198, 68]
}
const req_pqBinary = {
offset : 20,
maxLength: 2048,
intView : Int32Array.from([
//eslint-disable-next-line
1615239032, 1085936094, -215889325, 1613258781, 1153861504, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
])
}
const req_DH_params = {
nonce: [
222, 17, 186, 64, 83, 202, 33, 243, 29, 96, 40, 96, 128, 135, 198, 68],
server_nonce: Uint8Array.from([
215, 10, 149, 189, 142, 14, 139, 200, 110, 158, 72, 96, 9, 223, 100, 138]),
p : [65, 133, 32, 239],
q : [100, 21, 200, 67],
public_key_fingerprint: '14101943622620965665',
encrypted_data : [
//eslint-disable-next-line
165, 98, 255, 105, 238, 114, 18, 81, 166, 18, 66, 193, 230, 94, 83, 248, 124, 150, 45, 49, 62, 119, 128, 213, 118, 243, 15, 30, 52, 247, 76, 14, 97, 124, 136, 110, 96, 27, 74, 165, 227, 92, 85, 111, 48, 104, 116, 128, 144, 107, 157, 71, 240, 218, 156, 89, 98, 67, 230, 161, 0, 100, 86, 205, 146, 207, 189, 129, 224, 153, 203, 113, 164, 169, 179, 96, 129, 82, 96, 48, 253, 46, 176, 135, 110, 220, 7, 25, 253, 118, 55, 218, 110, 200, 100, 247, 149, 177, 223, 114, 95, 3, 43, 245, 222, 139, 90, 186, 187, 204, 73, 43, 7, 243, 4, 229, 186, 212, 255, 142, 225, 157, 58, 253, 152, 123, 236, 59, 102, 229, 180, 55, 162, 26, 23, 62, 26, 85, 46, 89, 177, 22, 1, 23, 156, 76, 2, 24, 86, 215, 40, 172, 158, 111, 45, 31, 131, 37, 9, 12, 11, 76, 60, 98, 35, 254, 145, 132, 31, 170, 218, 208, 203, 50, 213, 95, 212, 87, 103, 4, 78, 124, 25, 197, 60, 206, 46, 247, 102, 89, 0, 204, 214, 32, 189, 200, 13, 34, 42, 117, 52, 47, 187, 159, 237, 33, 84, 208, 186, 48, 207, 236, 78, 119, 140, 132, 153, 162, 70, 109, 64, 26, 21, 205, 10, 201, 80, 194, 94, 92, 30, 205, 248, 183, 140, 46, 235, 43, 242, 223, 161, 97, 164, 72, 217, 109, 174, 189, 232, 229, 252, 114, 145, 195, 3, 108]
}
const req_DH_paramsBinary = {
offset : 320,
maxLength: 2048,
intView : Int32Array.from([
//eslint-disable-next-line
-686627650, 1085936094, -215889325, 1613258781, 1153861504, -1114305833, -930410866, 1615371886, -1973100791, 545603844, 239, -938122236, 67, 1827171105, -1011602686, 65790, 1778344613, 1360163566, -1052634458, -128753946, 825071228, -713001154, 504361846, 239925044, 1854438497, -1521869984, 1867865315, -2139854800, 1201499024, 1503451888, -1578744990, -849976320, -2118266990, 1909168608, 1622387108, 811618945, -2018496771, 419945582, -633899267, -144390034, 1927262613, -181730465, -1168471074, 726256827, -452660473, -1895836486, -46490143, 1005353880, 934602086, 1041701538, 1496208666, 385947313, 402803868, -1406609578, 523071390, 201926019, 1648118795, -2070807005, -790975969, 1607807691, 73881556, -988185522, -147927492, -872392346, -927129386, 1965695501, -1615122636, -799792659, -321965894, -2071169202, 1833345689, -854255040, -1034893046, -853648290, 780974072, -537777173, 1218732449, -1112642087, 1929176552, 1812186001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
])
}
const getNearestDcBinary = {
offset : 72,
maxLength: 2048,
intView : Int32Array.from([
//eslint-disable-next-line
-627372787, 57, 1769565673, 49631, 1802392849, 1853321070, 1702057248, 1701265778, 29806, 1802392848, 1853321070, 1634488352, 1919903348, 109, 808333573, 12590, 7234818, 531836966, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
])
}
const getHistory = {
peer: {
_ : 'inputPeerChannel',
channel_id : 10374918,
access_hash: '17273160539159126376'
},
max_id: 0,
offset: 0,
limit : 100
}
const getHistoryBinary = {
offset : 44,
maxLength: 2048,
intView : Int32Array.from([
//eslint-disable-next-line
-1347868602, 548253432, 10374918, 1155522920, -273246210, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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