Skip to content

Commit 6451ced

Browse files
authored
Int32 identities converted to Int64 due to layer 133 changes (#229)
* Int32 identities converted to Int64 due to layer 133 changes * Style CI fixes
1 parent 6021f1d commit 6451ced

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+79
-88
lines changed

src/TLMessage/TLMessage/ClientMessages/add_contact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class add_contact implements TLClientMessage
1515
{
16-
private const CONSTRUCTOR = -386636848; // 0xE8F463D0
16+
private const CONSTRUCTOR = 3908330448;
1717

1818
private int $userId;
1919
private int $accessHash;

src/TLMessage/TLMessage/ClientMessages/channel_participants_filter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
class channel_participants_filter implements TLClientMessage
1111
{
12-
public const PARTICIPANTS_RECENT = -566281095; // 0xde3f3c79
13-
public const PARTICIPANTS_SEARCH = 106343499; // 0x0656ac4b
14-
public const PARTICIPANTS_ADMINS = -1268741783; // 0xb4608969
12+
public const PARTICIPANTS_RECENT = 3728686201;
13+
public const PARTICIPANTS_SEARCH = 106343499;
14+
public const PARTICIPANTS_ADMINS = 3026225513;
1515

1616
/** @var int */
1717
private int $constructor;

src/TLMessage/TLMessage/ClientMessages/check_chat_invite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class check_chat_invite implements TLClientMessage
1818
{
19-
private const CONSTRUCTOR = 1051570619; // 0x3eadb1bb
19+
private const CONSTRUCTOR = 1051570619;
2020

2121
/** @var string */
2222
private string $hash;

src/TLMessage/TLMessage/ClientMessages/contacts_resolve_username.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class contacts_resolve_username implements TLClientMessage
1515
{
16-
private const CONSTRUCTOR = -113456221; // 0xf93ccba3
16+
private const CONSTRUCTOR = 4181511075;
1717

1818
/** @var string */
1919
private string $username;

src/TLMessage/TLMessage/ClientMessages/contacts_search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class contacts_search implements TLClientMessage
1414
{
15-
private const CONSTRUCTOR = 301470424; // 0x11F812D8
15+
private const CONSTRUCTOR = 301470424;
1616

1717
private const DEFAULT_APP_LIMIT = 50;
1818

src/TLMessage/TLMessage/ClientMessages/delete_contacts.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
*/
1313
class delete_contacts implements TLClientMessage
1414
{
15-
private const CONSTRUCTOR = 157945344; // 0x96A0E00
16-
/** @see https://core.telegram.org/type/InputUser */
17-
private const INPUT_USER_CONSTRUCTOR = -668391402; // 0xD8292816
15+
private const CONSTRUCTOR = 157945344;
1816

1917
/**
2018
* @param array
@@ -53,10 +51,7 @@ public function toBinary(): string
5351
private function getElementGenerator(): callable
5452
{
5553
return static function ($userData) {
56-
return
57-
Packer::packConstructor(self::INPUT_USER_CONSTRUCTOR).
58-
Packer::packInt($userData['user_id']).
59-
Packer::packLong($userData['access_hash']);
54+
return (new input_user($userData['user_id'], $userData['access_hash']))->toBinary();
6055
};
6156
}
6257
}

src/TLMessage/TLMessage/ClientMessages/export_authorization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class export_authorization implements TLClientMessage
1616
{
17-
private const CONSTRUCTOR = -440401971; // 0xE5BFFFCD
17+
private const CONSTRUCTOR = 3854565325;
1818

1919
private int $foreignDcId;
2020

src/TLMessage/TLMessage/ClientMessages/get_blocked_contacts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class get_blocked_contacts implements TLClientMessage
1414
{
15-
private const CONSTRUCTOR = -176409329; // 0xF57C350F
15+
private const CONSTRUCTOR = 4118557967;
1616

1717
public function getName(): string
1818
{

src/TLMessage/TLMessage/ClientMessages/get_common_chats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class get_common_chats implements TLClientMessage
1414
{
15-
private const CONSTRUCTOR = 218777796; // 0xd0a48c4
15+
private const CONSTRUCTOR = 3826032900;
1616

1717
/** @var int */
1818
private int $user_id;
@@ -41,7 +41,7 @@ public function toBinary(): string
4141
return
4242
Packer::packConstructor(self::CONSTRUCTOR).
4343
(new input_user($this->user_id, $this->accessHash))->toBinary().
44-
Packer::packInt($this->max_id).
44+
Packer::packLong($this->max_id).
4545
Packer::packInt($this->limit);
4646
}
4747
}

src/TLMessage/TLMessage/ClientMessages/get_config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class get_config implements TLClientMessage
1414
{
15-
private const CONSTRUCTOR = -990308245; // 0xC4F9186B
15+
private const CONSTRUCTOR = 3304659051;
1616

1717
public function getName(): string
1818
{

0 commit comments

Comments
 (0)