Skip to content

Commit

Permalink
Migrate to version 7.8.0 (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ririconj authored Jun 28, 2021
1 parent 570ecc7 commit e6daeba
Show file tree
Hide file tree
Showing 7 changed files with 23,303 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/LibConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ class LibConfig
public const APP_API_HASH = '014b35b6184100b085b0d0572f9b5103';
public const APP_API_ID = 4;
public const APP_CERT_SHA256 = '49C1522548EBACD46CE322B6FD47F6092BB745D0F88082145CAF35E14DCC38E1';
public const APP_PACKAGE_NAME = 'org.telegram.messenger';

/* ================================================================ Default client info */

public const APP_DEFAULT_DEVICE_LANG_CODE = 'en-us';
public const APP_DEFAULT_LANG_CODE = 'en';
public const APP_DEFAULT_VERSION = '7.4.2';
public const APP_DEFAULT_VERSION = '7.8.0';
// see https://www.apkmirror.com/apk/telegram-fz-llc/telegram/telegram-6-0-1-release/
// arm64-v8a for android 6+ has 5th digit always "7"
public const APP_DEFAULT_VERSION_CODE = '22277';
public const APP_DEFAULT_VERSION_CODE = '23607';
public const APP_DEFAULT_LANG_PACK = 'android';
public const APP_DEFAULT_TL_LAYER_VERSION = 123;
// https://schema.horner.tj
public const APP_DEFAULT_TL_LAYER_VERSION = 130;

public const ENV_AUTHKEY = 'BOT'; // env variable for authkey path
}
2 changes: 2 additions & 0 deletions src/MTSerialization/OwnImplementation/OwnDeserializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class OwnDeserializer implements MTDeserializer

public function __construct()
{
/* TODO: optimize TL schema storage */
if (!self::$mapLoaded) {
$this->extendMap(__DIR__.'/maps/official.json');
$this->extendMap(__DIR__.'/maps/tg_app_old.json');
Expand All @@ -48,6 +49,7 @@ public function __construct()
$this->extendMap(__DIR__.'/maps/layer_120.json');
$this->extendMap(__DIR__.'/maps/layer_121.json');
$this->extendMap(__DIR__.'/maps/layer_123.json');
$this->extendMap(__DIR__.'/maps/layer_129.json');
$this->extendMap(__DIR__.'/maps/channelFullOldFormatted.json');
self::$mapLoaded = true;
}
Expand Down
Loading

0 comments on commit e6daeba

Please sign in to comment.