Skip to content

Commit c23b4ae

Browse files
author
Quisonann
committed
Update tg protocol to version 113
1 parent 65656b3 commit c23b4ae

File tree

3 files changed

+124
-3
lines changed

3 files changed

+124
-3
lines changed

src/LibConfig.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ class LibConfig
4747

4848
const APP_DEFAULT_DEVICE_LANG_CODE = 'en-us';
4949
const APP_DEFAULT_LANG_CODE = 'en';
50-
const APP_DEFAULT_VERSION = '6.1.0';
50+
const APP_DEFAULT_VERSION = '6.1.1';
5151
// see https://www.apkmirror.com/apk/telegram-fz-llc/telegram/telegram-6-0-1-release/
5252
// arm64-v8a for android 6+ has 5th digit always "7"
53-
const APP_DEFAULT_VERSION_CODE = '19417';
53+
const APP_DEFAULT_VERSION_CODE = '19477';
5454
const APP_DEFAULT_LANG_PACK = 'android';
55-
const APP_DEFAULT_TL_LAYER_VERSION = 112;
55+
const APP_DEFAULT_TL_LAYER_VERSION = 113;
5656

5757
const ENV_AUTHKEY = 'BOT'; // env variable for authkey path
5858
}

src/MTSerialization/OwnImplementation/OwnDeserializer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function __construct()
4040
$this->extendMap(file_get_contents(__DIR__.'/maps/layer_109.json'));
4141
$this->extendMap(file_get_contents(__DIR__.'/maps/layer_111.json'));
4242
$this->extendMap(file_get_contents(__DIR__.'/maps/layer_112.json'));
43+
$this->extendMap(file_get_contents(__DIR__.'/maps/layer_113.json'));
4344
$this->extendMap(file_get_contents(__DIR__.'/maps/channelFullOldFormatted.json'));
4445
self::$mapLoaded = true;
4546
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"constructors": [
3+
{
4+
"id": 893020267,
5+
"predicate": "messageFwdHeader",
6+
"params": [
7+
{
8+
"name": "flags",
9+
"type": "#"
10+
},
11+
{
12+
"name": "from_id",
13+
"type": "flags.0?int"
14+
},
15+
{
16+
"name": "from_name",
17+
"type": "flags.5?string"
18+
},
19+
{
20+
"name": "date",
21+
"type": "int"
22+
},
23+
{
24+
"name": "channel_id",
25+
"type": "flags.1?int"
26+
},
27+
{
28+
"name": "channel_post",
29+
"type": "flags.2?int"
30+
},
31+
{
32+
"name": "post_author",
33+
"type": "flags.3?string"
34+
},
35+
{
36+
"name": "saved_from_peer",
37+
"type": "flags.4?Peer"
38+
},
39+
{
40+
"name": "saved_from_msg_id",
41+
"type": "flags.4?int"
42+
},
43+
{
44+
"name": "psa_type",
45+
"type": "flags.6?string"
46+
}
47+
],
48+
"type": "MessageFwdHeader"
49+
},
50+
{
51+
"id": 2352576831,
52+
"predicate": "help.promoData",
53+
"params": [
54+
{
55+
"name": "flags",
56+
"type": "#"
57+
},
58+
{
59+
"name": "proxy",
60+
"type": "flags.0?true"
61+
},
62+
{
63+
"name": "expires",
64+
"type": "int"
65+
},
66+
{
67+
"name": "peer",
68+
"type": "Peer"
69+
},
70+
{
71+
"name": "chats",
72+
"type": "Vector<Chat>"
73+
},
74+
{
75+
"name": "users",
76+
"type": "Vector<User>"
77+
},
78+
{
79+
"name": "psa_type",
80+
"type": "flags.1?string"
81+
},
82+
{
83+
"name": "psa_message",
84+
"type": "flags.2?string"
85+
}
86+
],
87+
"type": "help.PromoData"
88+
},
89+
{
90+
"id": 2566302837,
91+
"predicate": "help.promoDataEmpty",
92+
"params": [
93+
{
94+
"name": "expires",
95+
"type": "int"
96+
}
97+
],
98+
"type": "help.PromoData"
99+
}
100+
],
101+
"methods": [
102+
{
103+
"id": 505748629,
104+
"method": "help.hidePromoData",
105+
"params": [
106+
{
107+
"name": "peer",
108+
"type": "InputPeer"
109+
}
110+
],
111+
"type": "Bool"
112+
},
113+
{
114+
"id": 3231151137,
115+
"method": "help.getPromoData",
116+
"params": [],
117+
"type": "help.PromoData"
118+
}
119+
]
120+
}

0 commit comments

Comments
 (0)