Skip to content

Commit db77ac3

Browse files
committed
Update to version 10.1.3 (layer 165)
1 parent cc9e91a commit db77ac3

File tree

15 files changed

+484296
-13058
lines changed

15 files changed

+484296
-13058
lines changed

src/Client/BasicClient/BasicClientImpl.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace TelegramOSINT\Client\BasicClient;
44

55
use TelegramOSINT\Client\AuthKey\AuthKey;
6+
use TelegramOSINT\Client\AuthKey\AuthorizedAuthKey;
67
use TelegramOSINT\Exception\TGException;
78
use TelegramOSINT\LibConfig;
89
use TelegramOSINT\Logger\ClientDebugLogger;
@@ -126,7 +127,11 @@ public function login(AuthKey $authKey, ?Proxy $proxy, callable $cb): void
126127

127128
private function bumpProtocolVersion(): void
128129
{
129-
$initConnection = new init_connection(AccountInfo::generate(), new get_config());
130+
$accountInfo = $this->authKey instanceof AuthorizedAuthKey ?
131+
AccountInfo::generateFromAuthKey($this->authKey) :
132+
AccountInfo::generate();
133+
134+
$initConnection = new init_connection($accountInfo, new get_config());
130135
$requestWithLayer = new invoke_with_layer(LibConfig::APP_DEFAULT_TL_LAYER_VERSION, $initConnection);
131136
/** @noinspection NullPointerExceptionInspection */
132137
$this->getConnection()->getResponseAsync($requestWithLayer, static function (AnonymousMessage $response) {});

src/Client/InfoObtainingClient/InfoClient.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use TelegramOSINT\TLMessage\TLMessage\ClientMessages\contacts_resolve_username;
3131
use TelegramOSINT\TLMessage\TLMessage\ClientMessages\contacts_search;
3232
use TelegramOSINT\TLMessage\TLMessage\ClientMessages\export_authorization;
33-
use TelegramOSINT\TLMessage\TLMessage\ClientMessages\get_all_chats;
3433
use TelegramOSINT\TLMessage\TLMessage\ClientMessages\get_common_chats;
3534
use TelegramOSINT\TLMessage\TLMessage\ClientMessages\get_config;
3635
use TelegramOSINT\TLMessage\TLMessage\ClientMessages\get_file;

src/LibConfig.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ class LibConfig
4848

4949
public const APP_DEFAULT_DEVICE_LANG_CODE = 'en-us';
5050
public const APP_DEFAULT_LANG_CODE = 'en';
51-
public const APP_DEFAULT_VERSION = '9.6.5';
51+
public const APP_DEFAULT_VERSION = '10.1.3';
5252
// see https://www.apkmirror.com/apk/telegram-fz-llc/telegram/telegram-8-8-0-release/
5353
// universal for android 6+ has 5th digit always "2"
54-
public const APP_DEFAULT_VERSION_CODE = '33562';
54+
public const APP_DEFAULT_VERSION_CODE = '39442';
5555
public const APP_DEFAULT_LANG_PACK = 'android';
5656
// https://schema.horner.tj
57-
public const APP_DEFAULT_TL_LAYER_VERSION = 158;
57+
public const APP_DEFAULT_TL_LAYER_VERSION = 165;
5858

5959
public const ENV_AUTHKEY = 'BOT'; // env variable for authkey path
6060
}

0 commit comments

Comments
 (0)