Skip to content

Commit e6daeba

Browse files
authored
Migrate to version 7.8.0 (#221)
1 parent 570ecc7 commit e6daeba

File tree

7 files changed

+23303
-4
lines changed

7 files changed

+23303
-4
lines changed

src/LibConfig.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,19 @@ class LibConfig
4242
public const APP_API_HASH = '014b35b6184100b085b0d0572f9b5103';
4343
public const APP_API_ID = 4;
4444
public const APP_CERT_SHA256 = '49C1522548EBACD46CE322B6FD47F6092BB745D0F88082145CAF35E14DCC38E1';
45+
public const APP_PACKAGE_NAME = 'org.telegram.messenger';
4546

4647
/* ================================================================ Default client info */
4748

4849
public const APP_DEFAULT_DEVICE_LANG_CODE = 'en-us';
4950
public const APP_DEFAULT_LANG_CODE = 'en';
50-
public const APP_DEFAULT_VERSION = '7.4.2';
51+
public const APP_DEFAULT_VERSION = '7.8.0';
5152
// see https://www.apkmirror.com/apk/telegram-fz-llc/telegram/telegram-6-0-1-release/
5253
// arm64-v8a for android 6+ has 5th digit always "7"
53-
public const APP_DEFAULT_VERSION_CODE = '22277';
54+
public const APP_DEFAULT_VERSION_CODE = '23607';
5455
public const APP_DEFAULT_LANG_PACK = 'android';
55-
public const APP_DEFAULT_TL_LAYER_VERSION = 123;
56+
// https://schema.horner.tj
57+
public const APP_DEFAULT_TL_LAYER_VERSION = 130;
5658

5759
public const ENV_AUTHKEY = 'BOT'; // env variable for authkey path
5860
}

src/MTSerialization/OwnImplementation/OwnDeserializer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class OwnDeserializer implements MTDeserializer
2323

2424
public function __construct()
2525
{
26+
/* TODO: optimize TL schema storage */
2627
if (!self::$mapLoaded) {
2728
$this->extendMap(__DIR__.'/maps/official.json');
2829
$this->extendMap(__DIR__.'/maps/tg_app_old.json');
@@ -48,6 +49,7 @@ public function __construct()
4849
$this->extendMap(__DIR__.'/maps/layer_120.json');
4950
$this->extendMap(__DIR__.'/maps/layer_121.json');
5051
$this->extendMap(__DIR__.'/maps/layer_123.json');
52+
$this->extendMap(__DIR__.'/maps/layer_129.json');
5153
$this->extendMap(__DIR__.'/maps/channelFullOldFormatted.json');
5254
self::$mapLoaded = true;
5355
}

0 commit comments

Comments
 (0)