@@ -49,7 +49,7 @@ |
||
49 | 49 | public string $custom_emoji_id; |
50 | 50 | |
51 | 51 | |
52 | - public function __construct(stdClass|null $object = null) { |
|
52 | + public function __construct(stdClass | null $object = null) { |
|
53 | 53 | if ($object != null) { |
54 | 54 | parent::__construct($object, self::subs); |
55 | 55 | } |
@@ -9,4 +9,4 @@ |
||
9 | 9 | * |
10 | 10 | * @todo make it usefully (it's not called at all) |
11 | 11 | */ |
12 | -class telegramException extends Exception{} |
|
13 | 12 | \ No newline at end of file |
13 | +class telegramException extends Exception {} |
|
14 | 14 | \ No newline at end of file |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** Keep all of properties which has sub properties */ |
12 | 12 | private const subs = []; |
13 | 13 | |
14 | - public function __construct(stdClass|null $object = null) { |
|
14 | + public function __construct(stdClass | null $object = null) { |
|
15 | 15 | if ($object != null) { |
16 | 16 | parent::__construct($object, self::subs); |
17 | 17 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | public bool $can_manage_topics; |
68 | 68 | |
69 | 69 | |
70 | - public function __construct(stdClass|null $object = null) { |
|
70 | + public function __construct(stdClass | null $object = null) { |
|
71 | 71 | if ($object != null) { |
72 | 72 | parent::__construct($object, self::subs); |
73 | 73 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** Keep all of properties which has sub properties */ |
12 | 12 | private const subs = []; |
13 | 13 | |
14 | - public function __construct(stdClass|null $object = null) { |
|
14 | + public function __construct(stdClass | null $object = null) { |
|
15 | 15 | if ($object != null) { |
16 | 16 | parent::__construct($object, self::subs); |
17 | 17 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | public bool $can_manage_topics; |
68 | 68 | |
69 | 69 | |
70 | - public function __construct(stdClass|null $object = null) { |
|
70 | + public function __construct(stdClass | null $object = null) { |
|
71 | 71 | if ($object != null) { |
72 | 72 | parent::__construct($object, self::subs); |
73 | 73 | } |
@@ -18,10 +18,10 @@ |
||
18 | 18 | public int $icon_color; |
19 | 19 | |
20 | 20 | /** Optional. Unique identifier of the custom emoji shown as the topic icon */ |
21 | - public null|string $icon_custom_emoji_id = null; |
|
21 | + public null | string $icon_custom_emoji_id = null; |
|
22 | 22 | |
23 | 23 | |
24 | - public function __construct(stdClass|null $object = null) { |
|
24 | + public function __construct(stdClass | null $object = null) { |
|
25 | 25 | if ($object != null) { |
26 | 26 | parent::__construct($object, self::subs); |
27 | 27 | } |
@@ -32,19 +32,19 @@ |
||
32 | 32 | * edited to include current high scores for the game when the bot calls setGameScore, or manually edited using |
33 | 33 | * editMessageText. 0-4096 characters. |
34 | 34 | */ |
35 | - public null|string $text = null; |
|
35 | + public null | string $text = null; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc. |
39 | 39 | * @var messageEntity[] |
40 | 40 | */ |
41 | - public null|array $text_entities = null; |
|
41 | + public null | array $text_entities = null; |
|
42 | 42 | |
43 | 43 | /** Optional. Animation that will be displayed in the game message in chats. Upload via BotFather */ |
44 | - public null|animation $animation = null; |
|
44 | + public null | animation $animation = null; |
|
45 | 45 | |
46 | 46 | |
47 | - public function __construct(stdClass|null $object = null) { |
|
47 | + public function __construct(stdClass | null $object = null) { |
|
48 | 48 | if ($object != null) { |
49 | 49 | parent::__construct($object, self::subs); |
50 | 50 | } |
@@ -15,40 +15,40 @@ |
||
15 | 15 | public string $url = ''; |
16 | 16 | |
17 | 17 | /** True, if a custom certificate was provided for webhook certificate checks */ |
18 | - public null|bool $has_custom_certificate = null; |
|
18 | + public null | bool $has_custom_certificate = null; |
|
19 | 19 | |
20 | 20 | /** Number of updates awaiting delivery */ |
21 | 21 | public int $pending_update_count; |
22 | 22 | |
23 | 23 | /** Optional. Currently used webhook IP address */ |
24 | - public null|string $ip_address = null; |
|
24 | + public null | string $ip_address = null; |
|
25 | 25 | |
26 | 26 | /** Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook */ |
27 | - public null|int $last_error_date = null; |
|
27 | + public null | int $last_error_date = null; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Optional. Error message in human-readable format for the most recent error that happened when trying to |
31 | 31 | * deliver an update via webhook |
32 | 32 | */ |
33 | - public null|string $last_error_message = null; |
|
33 | + public null | string $last_error_message = null; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Optional. Unix time of the most recent error that happened when trying to synchronize available updates with |
37 | 37 | * Telegram datacenters |
38 | 38 | */ |
39 | - public null|int $last_synchronization_error_date = null; |
|
39 | + public null | int $last_synchronization_error_date = null; |
|
40 | 40 | |
41 | 41 | /** Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery */ |
42 | - public null|int $max_connections = null; |
|
42 | + public null | int $max_connections = null; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member |
46 | 46 | * @var string[] |
47 | 47 | */ |
48 | - public null|array $allowed_updates = null; |
|
48 | + public null | array $allowed_updates = null; |
|
49 | 49 | |
50 | 50 | |
51 | - public function __construct(stdClass|null $object = null) { |
|
51 | + public function __construct(stdClass | null $object = null) { |
|
52 | 52 | if ($object != null) { |
53 | 53 | parent::__construct($object, self::subs); |
54 | 54 | } |