@@ -21,13 +21,13 @@ discard block |
||
21 | 21 | public string $sticker_type; |
22 | 22 | |
23 | 23 | /** True, if the sticker set contains animated stickers */ |
24 | - public null|bool $is_animated = null; |
|
24 | + public null | bool $is_animated = null; |
|
25 | 25 | |
26 | 26 | /** True, if the sticker set contains video stickers */ |
27 | - public null|bool $is_video = null; |
|
27 | + public null | bool $is_video = null; |
|
28 | 28 | |
29 | 29 | /** Deprecated use sticker_type instead, True, if the sticker set contains masks */ |
30 | - public null|bool $contains_masks = null; |
|
30 | + public null | bool $contains_masks = null; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * List of all set stickers |
@@ -36,10 +36,10 @@ discard block |
||
36 | 36 | public array $stickers; |
37 | 37 | |
38 | 38 | /** Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format */ |
39 | - public null|photoSize $thumb = null; |
|
39 | + public null | photoSize $thumb = null; |
|
40 | 40 | |
41 | 41 | |
42 | - public function __construct(stdClass|null $object = null) { |
|
42 | + public function __construct(stdClass | null $object = null) { |
|
43 | 43 | if ($object != null) { |
44 | 44 | parent::__construct($object, self::subs); |
45 | 45 | } |
@@ -30,13 +30,13 @@ |
||
30 | 30 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
31 | 31 | * integer or double-precision float type are safe for storing this value. |
32 | 32 | */ |
33 | - public null|int $file_size = null; |
|
33 | + public null | int $file_size = null; |
|
34 | 34 | |
35 | 35 | /** Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. */ |
36 | - public null|string $file_path = null; |
|
36 | + public null | string $file_path = null; |
|
37 | 37 | |
38 | 38 | |
39 | - public function __construct(stdClass|null $object = null) { |
|
39 | + public function __construct(stdClass | null $object = null) { |
|
40 | 40 | if ($object != null) { |
41 | 41 | parent::__construct($object, self::subs); |
42 | 42 | } |
@@ -22,23 +22,23 @@ discard block |
||
22 | 22 | public string $file_unique_id; |
23 | 23 | |
24 | 24 | /** Optional. Document thumbnail as defined by sender */ |
25 | - public null|photoSize $thumb = null; |
|
25 | + public null | photoSize $thumb = null; |
|
26 | 26 | |
27 | 27 | /** Optional. Original filename as defined by sender */ |
28 | - public null|string $file_name = null; |
|
28 | + public null | string $file_name = null; |
|
29 | 29 | |
30 | 30 | /** Optional. MIME type of the file as defined by sender */ |
31 | - public null|string $mime_type = null; |
|
31 | + public null | string $mime_type = null; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
35 | 35 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
36 | 36 | * integer or double-precision float type are safe for storing this value. |
37 | 37 | */ |
38 | - public null|int $file_size = null; |
|
38 | + public null | int $file_size = null; |
|
39 | 39 | |
40 | 40 | |
41 | - public function __construct(stdClass|null $object = null) { |
|
41 | + public function __construct(stdClass | null $object = null) { |
|
42 | 42 | if ($object != null) { |
43 | 43 | parent::__construct($object, self::subs); |
44 | 44 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @return bool|string string will be returned when destination doesn't set |
61 | 61 | */ |
62 | - public function download(string|null $destination = null): bool|string { |
|
63 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.txt',$this->file_id); |
|
62 | + public function download(string | null $destination = null): bool | string { |
|
63 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.txt', $this->file_id); |
|
64 | 64 | } |
65 | 65 | } |
@@ -17,16 +17,16 @@ |
||
17 | 17 | * But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for |
18 | 18 | * storing this identifier. |
19 | 19 | */ |
20 | - public null|int $migrate_to_chat_id = null; |
|
20 | + public null | int $migrate_to_chat_id = null; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be |
24 | 24 | * repeated |
25 | 25 | */ |
26 | - public null|int $retry_after = null; |
|
26 | + public null | int $retry_after = null; |
|
27 | 27 | |
28 | 28 | |
29 | - public function __construct(stdClass|null $object = null) { |
|
29 | + public function __construct(stdClass | null $object = null) { |
|
30 | 30 | if ($object != null) { |
31 | 31 | parent::__construct($object, self::subs); |
32 | 32 | } |
@@ -38,34 +38,34 @@ discard block |
||
38 | 38 | public int $height; |
39 | 39 | |
40 | 40 | /** True, if the sticker is animated */ |
41 | - public null|bool $is_animated = null; |
|
41 | + public null | bool $is_animated = null; |
|
42 | 42 | |
43 | 43 | /** True, if the sticker is a video sticker */ |
44 | - public null|bool $is_video = null; |
|
44 | + public null | bool $is_video = null; |
|
45 | 45 | |
46 | 46 | /** Optional. Sticker thumbnail in the .WEBP or .JPG format */ |
47 | - public null|photoSize $thumb = null; |
|
47 | + public null | photoSize $thumb = null; |
|
48 | 48 | |
49 | 49 | /** Optional. Emoji associated with the sticker */ |
50 | - public null|string $emoji = null; |
|
50 | + public null | string $emoji = null; |
|
51 | 51 | |
52 | 52 | /** Optional. Name of the sticker set to which the sticker belongs */ |
53 | - public null|string $set_name = null; |
|
53 | + public null | string $set_name = null; |
|
54 | 54 | |
55 | 55 | /** Optional. Premium animation for the sticker, if the sticker is premium */ |
56 | - public null|file $premium_animation = null; |
|
56 | + public null | file $premium_animation = null; |
|
57 | 57 | |
58 | 58 | /** Optional. For mask stickers, the position where the mask should be placed */ |
59 | - public null|maskPosition $mask_position = null; |
|
59 | + public null | maskPosition $mask_position = null; |
|
60 | 60 | |
61 | 61 | /** Optional. For custom emoji stickers, unique identifier of the custom emoji */ |
62 | - public null|string $custom_emoji_id = null; |
|
62 | + public null | string $custom_emoji_id = null; |
|
63 | 63 | |
64 | 64 | /** Optional. File size in bytes */ |
65 | - public null|int $file_size = null; |
|
65 | + public null | int $file_size = null; |
|
66 | 66 | |
67 | 67 | |
68 | - public function __construct(stdClass|null $object = null) { |
|
68 | + public function __construct(stdClass | null $object = null) { |
|
69 | 69 | if ($object != null) { |
70 | 70 | parent::__construct($object, self::subs); |
71 | 71 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * |
87 | 87 | * @return bool|string string will be returned when destination doesn't set |
88 | 88 | */ |
89 | - public function download(string|null $destination = null): bool|string { |
|
90 | - return telegram::downloadFile($destination ?? 'unknown.png',$this->file_id); |
|
89 | + public function download(string | null $destination = null): bool | string { |
|
90 | + return telegram::downloadFile($destination ?? 'unknown.png', $this->file_id); |
|
91 | 91 | } |
92 | 92 | } |
@@ -15,10 +15,10 @@ |
||
15 | 15 | * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the |
16 | 16 | * message. |
17 | 17 | */ |
18 | - public null|string $inline_message_id = null; |
|
18 | + public null | string $inline_message_id = null; |
|
19 | 19 | |
20 | 20 | |
21 | - public function __construct(stdClass|null $object = null) { |
|
21 | + public function __construct(stdClass | null $object = null) { |
|
22 | 22 | if ($object != null) { |
23 | 23 | parent::__construct($object, self::subs); |
24 | 24 | } |
@@ -27,85 +27,85 @@ discard block |
||
27 | 27 | public string $type; |
28 | 28 | |
29 | 29 | /** Optional. Title, for supergroups, channels and group chats */ |
30 | - public null|string $title = null; |
|
30 | + public null | string $title = null; |
|
31 | 31 | |
32 | 32 | /** Optional. Username, for private chats, supergroups and channels if available */ |
33 | - public null|string $username = null; |
|
33 | + public null | string $username = null; |
|
34 | 34 | |
35 | 35 | /** Optional. First name of the other party in a private chat */ |
36 | - public null|string $first_name = null; |
|
36 | + public null | string $first_name = null; |
|
37 | 37 | |
38 | 38 | /** Optional. Last name of the other party in a private chat */ |
39 | - public null|string $last_name = null; |
|
39 | + public null | string $last_name = null; |
|
40 | 40 | |
41 | 41 | /** Optional. True, if the supergroup chat is a forum (has topics enabled) */ |
42 | - public null|bool $is_forum = null; |
|
42 | + public null | bool $is_forum = null; |
|
43 | 43 | |
44 | 44 | /** Optional. Chat photo. Returned only in getChat. */ |
45 | - public null|chatPhoto $photo = null; |
|
45 | + public null | chatPhoto $photo = null; |
|
46 | 46 | |
47 | 47 | /** Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat. */ |
48 | - public null|array $active_usernames = null; |
|
48 | + public null | array $active_usernames = null; |
|
49 | 49 | |
50 | 50 | /** Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. */ |
51 | - public null|string $emoji_status_custom_emoji_id = null; |
|
51 | + public null | string $emoji_status_custom_emoji_id = null; |
|
52 | 52 | |
53 | 53 | /** Optional. Bio of the other party in a private chat. Returned only in getChat. */ |
54 | - public null|string $bio = null; |
|
54 | + public null | string $bio = null; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Optional. True, if privacy settings of the other party in the private chat allows to use |
58 | 58 | * tg://user?id=<user_id> links only in chats with the user. Returned only in getChat. |
59 | 59 | */ |
60 | - public null|bool $has_private_forwards = null; |
|
60 | + public null | bool $has_private_forwards = null; |
|
61 | 61 | |
62 | 62 | /** |
63 | 63 | * Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in |
64 | 64 | * the private chat. Returned only in getChat. |
65 | 65 | */ |
66 | - public null|bool $has_restricted_voice_and_video_messages = null; |
|
66 | + public null | bool $has_restricted_voice_and_video_messages = null; |
|
67 | 67 | |
68 | 68 | /** Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat. */ |
69 | - public null|bool $join_to_send_messages = null; |
|
69 | + public null | bool $join_to_send_messages = null; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. |
73 | 73 | * Returned only in getChat. |
74 | 74 | */ |
75 | - public null|bool $join_by_request = null; |
|
75 | + public null | bool $join_by_request = null; |
|
76 | 76 | |
77 | 77 | /** Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. */ |
78 | - public null|string $description = null; |
|
78 | + public null | string $description = null; |
|
79 | 79 | |
80 | 80 | /** Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. */ |
81 | - public null|string $invite_link = null; |
|
81 | + public null | string $invite_link = null; |
|
82 | 82 | |
83 | 83 | /** Optional. The most recent pinned message (by sending date). Returned only in getChat. */ |
84 | - public null|message $pinned_message = null; |
|
84 | + public null | message $pinned_message = null; |
|
85 | 85 | |
86 | 86 | /** Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. */ |
87 | - public null|chatPermissions $permissions = null; |
|
87 | + public null | chatPermissions $permissions = null; |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged |
91 | 91 | * user; in seconds. Returned only in getChat. |
92 | 92 | */ |
93 | - public null|int $slow_mode_delay = null; |
|
93 | + public null | int $slow_mode_delay = null; |
|
94 | 94 | |
95 | 95 | /** |
96 | 96 | * Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. |
97 | 97 | * Returned only in getChat. |
98 | 98 | */ |
99 | - public null|int $message_auto_delete_time = null; |
|
99 | + public null | int $message_auto_delete_time = null; |
|
100 | 100 | |
101 | 101 | /** Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. */ |
102 | - public null|bool $has_protected_content = null; |
|
102 | + public null | bool $has_protected_content = null; |
|
103 | 103 | |
104 | 104 | /** Optional. For supergroups, name of group sticker set. Returned only in getChat. */ |
105 | - public null|string $sticker_set_name = null; |
|
105 | + public null | string $sticker_set_name = null; |
|
106 | 106 | |
107 | 107 | /** Optional. True, if the bot can change the group sticker set. Returned only in getChat. */ |
108 | - public null|bool $can_set_sticker_set = null; |
|
108 | + public null | bool $can_set_sticker_set = null; |
|
109 | 109 | |
110 | 110 | /** |
111 | 111 | * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice |
@@ -113,13 +113,13 @@ discard block |
||
113 | 113 | * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed |
114 | 114 | * 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat. |
115 | 115 | */ |
116 | - public null|int $linked_chat_id = null; |
|
116 | + public null | int $linked_chat_id = null; |
|
117 | 117 | |
118 | 118 | /** Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. */ |
119 | - public null|chatLocation $location = null; |
|
119 | + public null | chatLocation $location = null; |
|
120 | 120 | |
121 | 121 | |
122 | - public function __construct(stdClass|null $object = null) { |
|
122 | + public function __construct(stdClass | null $object = null) { |
|
123 | 123 | if ($object != null) { |
124 | 124 | parent::__construct($object, self::subs); |
125 | 125 | } |
@@ -29,43 +29,43 @@ |
||
29 | 29 | public int $total_voter_count; |
30 | 30 | |
31 | 31 | /** True, if the poll is closed */ |
32 | - public null|bool $is_closed = null; |
|
32 | + public null | bool $is_closed = null; |
|
33 | 33 | |
34 | 34 | /** True, if the poll is anonymous */ |
35 | - public null|bool $is_anonymous = null; |
|
35 | + public null | bool $is_anonymous = null; |
|
36 | 36 | |
37 | 37 | /** Poll type, currently can be “regular” or “quiz” */ |
38 | 38 | public string $type; |
39 | 39 | |
40 | 40 | /** True, if the poll allows multiple answers */ |
41 | - public null|bool $allows_multiple_answers = null; |
|
41 | + public null | bool $allows_multiple_answers = null; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which |
45 | 45 | * are closed, or was sent (not forwarded) by the bot or to the private chat with the bot. |
46 | 46 | */ |
47 | - public null|int $correct_option_id = null; |
|
47 | + public null | int $correct_option_id = null; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style |
51 | 51 | * poll, 0-200 characters |
52 | 52 | */ |
53 | - public null|string $explanation = null; |
|
53 | + public null | string $explanation = null; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation |
57 | 57 | * @var messageEntity[] |
58 | 58 | */ |
59 | - public null|array $explanation_entities = null; |
|
59 | + public null | array $explanation_entities = null; |
|
60 | 60 | |
61 | 61 | /** Optional. Amount of time in seconds the poll will be active after creation */ |
62 | - public null|int $open_period = null; |
|
62 | + public null | int $open_period = null; |
|
63 | 63 | |
64 | 64 | /** Optional. Point in time (Unix timestamp) when the poll will be automatically closed */ |
65 | - public null|int $close_date = null; |
|
65 | + public null | int $close_date = null; |
|
66 | 66 | |
67 | 67 | |
68 | - public function __construct(stdClass|null $object = null) { |
|
68 | + public function __construct(stdClass | null $object = null) { |
|
69 | 69 | if ($object != null) { |
70 | 70 | parent::__construct($object, self::subs); |
71 | 71 | } |
@@ -36,10 +36,10 @@ |
||
36 | 36 | * Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events |
37 | 37 | * only. |
38 | 38 | */ |
39 | - public null|chatInviteLink $invite_link = null; |
|
39 | + public null | chatInviteLink $invite_link = null; |
|
40 | 40 | |
41 | 41 | |
42 | - public function __construct(stdClass|null $object = null) { |
|
42 | + public function __construct(stdClass | null $object = null) { |
|
43 | 43 | if ($object != null) { |
44 | 44 | parent::__construct($object, self::subs); |
45 | 45 | } |