@@ -30,103 +30,103 @@ discard block |
||
30 | 30 | public string $type; |
31 | 31 | |
32 | 32 | /** Optional. Title, for supergroups, channels and group chats */ |
33 | - public null|string $title = null; |
|
33 | + public null | string $title = null; |
|
34 | 34 | |
35 | 35 | /** Optional. Username, for private chats, supergroups and channels if available */ |
36 | - public null|string $username = null; |
|
36 | + public null | string $username = null; |
|
37 | 37 | |
38 | 38 | /** Optional. First name of the other party in a private chat */ |
39 | - public null|string $first_name = null; |
|
39 | + public null | string $first_name = null; |
|
40 | 40 | |
41 | 41 | /** Optional. Last name of the other party in a private chat */ |
42 | - public null|string $last_name = null; |
|
42 | + public null | string $last_name = null; |
|
43 | 43 | |
44 | 44 | /** Optional. True, if the supergroup chat is a forum (has topics enabled) */ |
45 | - public null|bool $is_forum = null; |
|
45 | + public null | bool $is_forum = null; |
|
46 | 46 | |
47 | 47 | /** Optional. Chat photo. Returned only in getChat. */ |
48 | - public null|chatPhoto $photo = null; |
|
48 | + public null | chatPhoto $photo = null; |
|
49 | 49 | |
50 | 50 | /** Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat. */ |
51 | - public null|array $active_usernames = null; |
|
51 | + public null | array $active_usernames = null; |
|
52 | 52 | |
53 | 53 | /** Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. */ |
54 | - public null|string $emoji_status_custom_emoji_id = null; |
|
54 | + public null | string $emoji_status_custom_emoji_id = null; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Optional. Expiration date of the emoji status of the other party in a private chat, if any. |
58 | 58 | * Returned only in getChat. |
59 | 59 | */ |
60 | - public null|int $emoji_status_expiration_date; |
|
60 | + public null | int $emoji_status_expiration_date; |
|
61 | 61 | |
62 | 62 | /** Optional. Bio of the other party in a private chat. Returned only in getChat. */ |
63 | - public null|string $bio = null; |
|
63 | + public null | string $bio = null; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Optional. True, if privacy settings of the other party in the private chat allows to use |
67 | 67 | * tg://user?id=<user_id> links only in chats with the user. Returned only in getChat. |
68 | 68 | */ |
69 | - public null|bool $has_private_forwards = null; |
|
69 | + public null | bool $has_private_forwards = null; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in |
73 | 73 | * the private chat. Returned only in getChat. |
74 | 74 | */ |
75 | - public null|bool $has_restricted_voice_and_video_messages = null; |
|
75 | + public null | bool $has_restricted_voice_and_video_messages = null; |
|
76 | 76 | |
77 | 77 | /** Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat. */ |
78 | - public null|bool $join_to_send_messages = null; |
|
78 | + public null | bool $join_to_send_messages = null; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. |
82 | 82 | * Returned only in getChat. |
83 | 83 | */ |
84 | - public null|bool $join_by_request = null; |
|
84 | + public null | bool $join_by_request = null; |
|
85 | 85 | |
86 | 86 | /** Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. */ |
87 | - public null|string $description = null; |
|
87 | + public null | string $description = null; |
|
88 | 88 | |
89 | 89 | /** Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. */ |
90 | - public null|string $invite_link = null; |
|
90 | + public null | string $invite_link = null; |
|
91 | 91 | |
92 | 92 | /** Optional. The most recent pinned message (by sending date). Returned only in getChat. */ |
93 | - public null|message $pinned_message = null; |
|
93 | + public null | message $pinned_message = null; |
|
94 | 94 | |
95 | 95 | /** Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. */ |
96 | - public null|chatPermissions $permissions = null; |
|
96 | + public null | chatPermissions $permissions = null; |
|
97 | 97 | |
98 | 98 | /** |
99 | 99 | * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged |
100 | 100 | * user; in seconds. Returned only in getChat. |
101 | 101 | */ |
102 | - public null|int $slow_mode_delay = null; |
|
102 | + public null | int $slow_mode_delay = null; |
|
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. |
106 | 106 | * Returned only in getChat. |
107 | 107 | */ |
108 | - public null|int $message_auto_delete_time = null; |
|
108 | + public null | int $message_auto_delete_time = null; |
|
109 | 109 | |
110 | 110 | /** |
111 | 111 | * Optional. True, if aggressive anti-spam checks are enabled in the supergroup. |
112 | 112 | * The field is only available to chat administrators. Returned only in getChat. |
113 | 113 | */ |
114 | - public null|bool $has_aggressive_anti_spam_enabled = null; |
|
114 | + public null | bool $has_aggressive_anti_spam_enabled = null; |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * Optional. True, if non-administrators can only get the list of bots and administrators in the chat. |
118 | 118 | * Returned only in getChat. |
119 | 119 | */ |
120 | - public null|bool $has_hidden_members = null; |
|
120 | + public null | bool $has_hidden_members = null; |
|
121 | 121 | |
122 | 122 | /** Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. */ |
123 | - public null|bool $has_protected_content = null; |
|
123 | + public null | bool $has_protected_content = null; |
|
124 | 124 | |
125 | 125 | /** Optional. For supergroups, name of group sticker set. Returned only in getChat. */ |
126 | - public null|string $sticker_set_name = null; |
|
126 | + public null | string $sticker_set_name = null; |
|
127 | 127 | |
128 | 128 | /** Optional. True, if the bot can change the group sticker set. Returned only in getChat. */ |
129 | - public null|bool $can_set_sticker_set = null; |
|
129 | + public null | bool $can_set_sticker_set = null; |
|
130 | 130 | |
131 | 131 | /** |
132 | 132 | * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice |
@@ -134,13 +134,13 @@ discard block |
||
134 | 134 | * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed |
135 | 135 | * 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat. |
136 | 136 | */ |
137 | - public null|int $linked_chat_id = null; |
|
137 | + public null | int $linked_chat_id = null; |
|
138 | 138 | |
139 | 139 | /** Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. */ |
140 | - public null|chatLocation $location = null; |
|
140 | + public null | chatLocation $location = null; |
|
141 | 141 | |
142 | 142 | |
143 | - public function __construct(stdClass|null $object = null) { |
|
143 | + public function __construct(stdClass | null $object = null) { |
|
144 | 144 | if ($object != null) { |
145 | 145 | parent::__construct($object, self::subs); |
146 | 146 | } |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @return bool |
153 | 153 | */ |
154 | - public function isPrivate (): bool { |
|
154 | + public function isPrivate(): bool { |
|
155 | 155 | return $this->type === chatType::PRIVATE; |
156 | 156 | } |
157 | 157 | |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * |
161 | 161 | * @return bool |
162 | 162 | */ |
163 | - public function isGroup (): bool { |
|
163 | + public function isGroup(): bool { |
|
164 | 164 | return $this->type === chatType::GROUP; |
165 | 165 | } |
166 | 166 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * |
170 | 170 | * @return bool |
171 | 171 | */ |
172 | - public function isSuperGroup (): bool { |
|
172 | + public function isSuperGroup(): bool { |
|
173 | 173 | return $this->type === chatType::SUPERGROUP; |
174 | 174 | } |
175 | 175 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * |
179 | 179 | * @return bool |
180 | 180 | */ |
181 | - public function isChannel (): bool { |
|
181 | + public function isChannel(): bool { |
|
182 | 182 | return $this->type === chatType::CHANNEL; |
183 | 183 | } |
184 | 184 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * |
188 | 188 | * @return responseError|bool |
189 | 189 | */ |
190 | - public function leave(): responseError|bool { |
|
190 | + public function leave(): responseError | bool { |
|
191 | 191 | if ($this->isPrivate()) { |
192 | 192 | return false; |
193 | 193 | } |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * |
203 | 203 | * @return responseError|bool |
204 | 204 | */ |
205 | - public function setPhoto(CURLFile|array $photo, bool $answer = null): responseError|bool { |
|
205 | + public function setPhoto(CURLFile | array $photo, bool $answer = null): responseError | bool { |
|
206 | 206 | if ($this->isPrivate()) { |
207 | 207 | return false; |
208 | 208 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * |
217 | 217 | * @return responseError|bool |
218 | 218 | */ |
219 | - public function delPhoto(bool $answer = null): responseError|bool { |
|
219 | + public function delPhoto(bool $answer = null): responseError | bool { |
|
220 | 220 | if ($this->isPrivate()) { |
221 | 221 | return false; |
222 | 222 | } |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | * |
232 | 232 | * @return responseError|bool |
233 | 233 | */ |
234 | - public function setTitle(string|array $title, bool $answer = null): responseError|bool { |
|
234 | + public function setTitle(string | array $title, bool $answer = null): responseError | bool { |
|
235 | 235 | if ($this->isPrivate()) { |
236 | 236 | return false; |
237 | 237 | } |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * |
247 | 247 | * @return responseError|bool |
248 | 248 | */ |
249 | - public function setDescription(string|null $description = null, bool $answer = null): responseError|bool { |
|
249 | + public function setDescription(string | null $description = null, bool $answer = null): responseError | bool { |
|
250 | 250 | if ($this->isPrivate()) { |
251 | 251 | return false; |
252 | 252 | } |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * |
261 | 261 | * @return bool|responseError|array |
262 | 262 | */ |
263 | - public function getAdmins(bool $answer = null): bool|responseError|array { |
|
263 | + public function getAdmins(bool $answer = null): bool | responseError | array { |
|
264 | 264 | if ($this->isPrivate()) { |
265 | 265 | return false; |
266 | 266 | } |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | * |
275 | 275 | * @return bool|responseError|int |
276 | 276 | */ |
277 | - public function getMembersCount(bool $answer = null): bool|responseError|int { |
|
277 | + public function getMembersCount(bool $answer = null): bool | responseError | int { |
|
278 | 278 | if ($this->isPrivate()) { |
279 | 279 | return false; |
280 | 280 | } |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | * |
290 | 290 | * @return chatMember|bool|responseError |
291 | 291 | */ |
292 | - public function getMember(int|null $user_id = null, bool $answer = null): chatMember|bool|responseError { |
|
292 | + public function getMember(int | null $user_id = null, bool $answer = null): chatMember | bool | responseError { |
|
293 | 293 | if ($this->isPrivate()) { |
294 | 294 | return false; |
295 | 295 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | public string $big_file_unique_id; |
38 | 38 | |
39 | 39 | |
40 | - public function __construct(stdClass|null $object = null) { |
|
40 | + public function __construct(stdClass | null $object = null) { |
|
41 | 41 | if ($object != null) { |
42 | 42 | parent::__construct($object, self::subs); |
43 | 43 | } |
@@ -59,8 +59,8 @@ 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 $big = true): bool|string { |
|
63 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4',$big ? $this->big_file_id : $this->small_file_id); |
|
62 | + public function download(string | null $destination = null, bool $big = true): bool | string { |
|
63 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4', $big ? $this->big_file_id : $this->small_file_id); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -31,23 +31,23 @@ discard block |
||
31 | 31 | public int $duration; |
32 | 32 | |
33 | 33 | /** Optional. Animation thumbnail as defined by sender */ |
34 | - public null|photoSize $thumbnail = null; |
|
34 | + public null | photoSize $thumbnail = null; |
|
35 | 35 | |
36 | 36 | /** Optional. Original animation filename as defined by sender */ |
37 | - public null|string $file_name = null; |
|
37 | + public null | string $file_name = null; |
|
38 | 38 | |
39 | 39 | /** Optional. MIME type of the file as defined by sender */ |
40 | - public null|string $mime_type = null; |
|
40 | + public null | string $mime_type = null; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
44 | 44 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
45 | 45 | * integer or double-precision float type are safe for storing this value. |
46 | 46 | */ |
47 | - public null|int $file_size = null; |
|
47 | + public null | int $file_size = null; |
|
48 | 48 | |
49 | 49 | |
50 | - public function __construct(stdClass|null $object = null) { |
|
50 | + public function __construct(stdClass | null $object = null) { |
|
51 | 51 | if ($object != null) { |
52 | 52 | parent::__construct($object, self::subs); |
53 | 53 | } |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @return bool|string string will be returned when destination doesn't set |
70 | 70 | */ |
71 | - public function download(string|null $destination = null): bool|string { |
|
72 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.gif',$this->file_id); |
|
71 | + public function download(string | null $destination = null): bool | string { |
|
72 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.gif', $this->file_id); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | public bool $via_chat_folder_invite_link; |
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 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @return bool |
75 | 75 | */ |
76 | - public function isMe (): bool { |
|
76 | + public function isMe(): bool { |
|
77 | 77 | return $this->new_chat_member->user->id == settings::$bot_id; |
78 | 78 | } |
79 | 79 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @return bool |
111 | 111 | */ |
112 | - public function isLeaved (): bool { |
|
112 | + public function isLeaved(): bool { |
|
113 | 113 | return $this->new_chat_member->status === chatMemberStatus::LEFT; |
114 | 114 | } |
115 | 115 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * |
119 | 119 | * @return bool |
120 | 120 | */ |
121 | - public function isKicked (): bool { |
|
121 | + public function isKicked(): bool { |
|
122 | 122 | return $this->new_chat_member->status === chatMemberStatus::KICKED; |
123 | 123 | } |
124 | 124 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * |
128 | 128 | * @return bool |
129 | 129 | */ |
130 | - public function isOldAdmin (): bool { |
|
130 | + public function isOldAdmin(): bool { |
|
131 | 131 | return $this->old_chat_member->status === chatMemberStatus::ADMINISTRATOR; |
132 | 132 | } |
133 | 133 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * |
137 | 137 | * @return bool |
138 | 138 | */ |
139 | - public function isNewAdmin (): bool { |
|
139 | + public function isNewAdmin(): bool { |
|
140 | 140 | return $this->new_chat_member->status === chatMemberStatus::ADMINISTRATOR; |
141 | 141 | } |
142 | 142 | } |
@@ -25,29 +25,29 @@ discard block |
||
25 | 25 | public int $duration; |
26 | 26 | |
27 | 27 | /** Optional. Performer of the audio as defined by sender or by audio tags */ |
28 | - public null|string $performer = null; |
|
28 | + public null | string $performer = null; |
|
29 | 29 | |
30 | 30 | /** Optional. Title of the audio as defined by sender or by audio tags */ |
31 | - public null|string $title = null; |
|
31 | + public null | string $title = null; |
|
32 | 32 | |
33 | 33 | /** Optional. Original filename as defined by sender */ |
34 | - public null|string $file_name = null; |
|
34 | + public null | string $file_name = null; |
|
35 | 35 | |
36 | 36 | /** Optional. MIME type of the file as defined by sender */ |
37 | - public null|string $mime_type = null; |
|
37 | + public null | string $mime_type = null; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
41 | 41 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
42 | 42 | * integer or double-precision float type are safe for storing this value. |
43 | 43 | */ |
44 | - public null|int $file_size = null; |
|
44 | + public null | int $file_size = null; |
|
45 | 45 | |
46 | 46 | /** Optional. Thumbnail of the album cover to which the music file belongs */ |
47 | - public null|photoSize $thumbnail = null; |
|
47 | + public null | photoSize $thumbnail = null; |
|
48 | 48 | |
49 | 49 | |
50 | - public function __construct(stdClass|null $object = null) { |
|
50 | + public function __construct(stdClass | null $object = null) { |
|
51 | 51 | if ($object != null) { |
52 | 52 | parent::__construct($object, self::subs); |
53 | 53 | } |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @return bool|string string will be returned when destination doesn't set |
70 | 70 | */ |
71 | - public function download(string|null $destination = null): bool|string { |
|
72 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3',$this->file_id); |
|
71 | + public function download(string | null $destination = null): bool | string { |
|
72 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3', $this->file_id); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -31,22 +31,22 @@ discard block |
||
31 | 31 | public bool $is_revoked; |
32 | 32 | |
33 | 33 | /** Optional. Invite link name */ |
34 | - public null|string $name = null; |
|
34 | + public null | string $name = null; |
|
35 | 35 | |
36 | 36 | /** Optional. Point in time (Unix timestamp) when the link will expire or has been expired */ |
37 | - public null|int $expire_date = null; |
|
37 | + public null | int $expire_date = null; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat |
41 | 41 | * via this invite link; 1-99999 |
42 | 42 | */ |
43 | - public null|int $member_limit = null; |
|
43 | + public null | int $member_limit = null; |
|
44 | 44 | |
45 | 45 | /** Optional. Number of pending join requests created using this link */ |
46 | - public null|int $pending_join_request_count = null; |
|
46 | + public null | int $pending_join_request_count = null; |
|
47 | 47 | |
48 | 48 | |
49 | - public function __construct(stdClass|null $object = null) { |
|
49 | + public function __construct(stdClass | null $object = null) { |
|
50 | 50 | if ($object != null) { |
51 | 51 | parent::__construct($object, self::subs); |
52 | 52 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return responseError|bool|self |
59 | 59 | */ |
60 | - public function revoke(): self|responseError|bool { |
|
60 | + public function revoke(): self | responseError | bool { |
|
61 | 61 | return $this->is_revoked ?? telegram::revokeChatInviteLink($this->invite_link); |
62 | 62 | } |
63 | 63 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** Keep all 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 | } |
@@ -25,28 +25,28 @@ discard block |
||
25 | 25 | * Optional. Message with the callback button that originated the query. Note that message content and message |
26 | 26 | * date will not be available if the message is too old |
27 | 27 | */ |
28 | - public null|message $message = null; |
|
28 | + public null | message $message = null; |
|
29 | 29 | |
30 | 30 | /** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */ |
31 | - public null|string $inline_message_id = null; |
|
31 | + public null | string $inline_message_id = null; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. |
35 | 35 | * Useful for high scores in games. |
36 | 36 | */ |
37 | - public null|string $chat_instance = null; |
|
37 | + public null | string $chat_instance = null; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Optional. Data associated with the callback button. Be aware that the message originated the query can contain |
41 | 41 | * no callback buttons with this data. |
42 | 42 | */ |
43 | - public null|string $data = null; |
|
43 | + public null | string $data = null; |
|
44 | 44 | |
45 | 45 | /** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */ |
46 | - public null|string $game_short_name = null; |
|
46 | + public null | string $game_short_name = null; |
|
47 | 47 | |
48 | 48 | |
49 | - public function __construct(stdClass|null $object = null) { |
|
49 | + public function __construct(stdClass | null $object = null) { |
|
50 | 50 | if ($object != null) { |
51 | 51 | parent::__construct($object, self::subs); |
52 | 52 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @return responseError|bool |
67 | 67 | */ |
68 | - public function answer (string|null $text = null, bool|null $show_alert = null, string|null $url = null, int|null $cache_time = null, bool $answer = null): responseError|bool { |
|
68 | + public function answer(string | null $text = null, bool | null $show_alert = null, string | null $url = null, int | null $cache_time = null, bool $answer = null): responseError | bool { |
|
69 | 69 | return telegram::answerCallbackQuery($this->id, $text, $show_alert, $url, $cache_time, answer: $answer); |
70 | 70 | } |
71 | 71 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @return message|responseError|bool |
79 | 79 | */ |
80 | - public function editText (string $text, bool $answer = null): message|responseError|bool { |
|
80 | + public function editText(string $text, bool $answer = null): message | responseError | bool { |
|
81 | 81 | return telegram::editMessageText($text, answer: $answer); |
82 | 82 | } |
83 | 83 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return message|responseError|bool |
91 | 91 | */ |
92 | - public function editCaption (string $text = '', bool $answer = null): message|responseError|bool { |
|
92 | + public function editCaption(string $text = '', bool $answer = null): message | responseError | bool { |
|
93 | 93 | return telegram::editMessageCaption(caption: $text, answer: $answer); |
94 | 94 | } |
95 | 95 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * |
102 | 102 | * @return message|responseError|bool |
103 | 103 | */ |
104 | - public function editKeyboard (inlineKeyboardMarkup|stdClass|array $reply_markup = null, bool $answer = null): message|responseError|bool { |
|
104 | + public function editKeyboard(inlineKeyboardMarkup | stdClass | array $reply_markup = null, bool $answer = null): message | responseError | bool { |
|
105 | 105 | return telegram::editMessageReplyMarkup(reply_markup: $reply_markup, answer: $answer); |
106 | 106 | } |
107 | 107 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @return message|responseError|bool |
115 | 115 | */ |
116 | - public function editMedia (inputMedia|array|stdClass $media, bool $answer = null): message|responseError|bool { |
|
116 | + public function editMedia(inputMedia | array | stdClass $media, bool $answer = null): message | responseError | bool { |
|
117 | 117 | return telegram::editMessageMedia($media, answer: $answer); |
118 | 118 | } |
119 | 119 | } |
@@ -73,13 +73,13 @@ discard block |
||
73 | 73 | public int $message_id; |
74 | 74 | |
75 | 75 | /** Optional. Unique identifier of a message thread to which the message belongs; for supergroups only */ |
76 | - public null|int $message_thread_id = null; |
|
76 | + public null | int $message_thread_id = null; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field |
80 | 80 | * contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. |
81 | 81 | */ |
82 | - public null|user $from = null; |
|
82 | + public null | user $from = null; |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake |
88 | 88 | * sender user in non-channel chats, if the message was sent on behalf of a chat. |
89 | 89 | */ |
90 | - public null|chat $sender_chat = null; |
|
90 | + public null | chat $sender_chat = null; |
|
91 | 91 | |
92 | 92 | /** Date the message was sent in Unix time */ |
93 | 93 | public int $date; |
@@ -96,191 +96,191 @@ discard block |
||
96 | 96 | public chat $chat; |
97 | 97 | |
98 | 98 | /** Optional. For forwarded messages, sender of the original message */ |
99 | - public null|user $forward_from = null; |
|
99 | + public null | user $forward_from = null; |
|
100 | 100 | |
101 | 101 | /** |
102 | 102 | * Optional. For messages forwarded from channels or from anonymous administrators, information about the |
103 | 103 | * original sender chat |
104 | 104 | */ |
105 | - public null|chat $forward_from_chat = null; |
|
105 | + public null | chat $forward_from_chat = null; |
|
106 | 106 | |
107 | 107 | /** Optional. For messages forwarded from channels, identifier of the original message in the channel */ |
108 | - public null|int $forward_from_message_id = null; |
|
108 | + public null | int $forward_from_message_id = null; |
|
109 | 109 | |
110 | 110 | /** |
111 | 111 | * Optional. For forwarded messages that were originally sent in channels or by an anonymous chat administrator, |
112 | 112 | * signature of the message sender if present |
113 | 113 | */ |
114 | - public null|string $forward_signature = null; |
|
114 | + public null | string $forward_signature = null; |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in |
118 | 118 | * forwarded messages |
119 | 119 | */ |
120 | - public null|string $forward_sender_name = null; |
|
120 | + public null | string $forward_sender_name = null; |
|
121 | 121 | |
122 | 122 | /** Optional. For forwarded messages, date the original message was sent in Unix time */ |
123 | - public null|int $forward_date = null; |
|
123 | + public null | int $forward_date = null; |
|
124 | 124 | |
125 | 125 | /** Optional. True, if the message is sent to a forum topic */ |
126 | - public null|bool $is_topic_message = null; |
|
126 | + public null | bool $is_topic_message = null; |
|
127 | 127 | |
128 | 128 | /** |
129 | 129 | * Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion |
130 | 130 | * group |
131 | 131 | */ |
132 | - public null|bool $is_automatic_forward = null; |
|
132 | + public null | bool $is_automatic_forward = null; |
|
133 | 133 | |
134 | 134 | /** |
135 | 135 | * Optional. For replies, the original message. Note that the Message object in this field will not contain |
136 | 136 | * further reply_to_message fields even if it itself is a reply. |
137 | 137 | */ |
138 | - public null|message $reply_to_message = null; |
|
138 | + public null | message $reply_to_message = null; |
|
139 | 139 | |
140 | 140 | /** Optional. Bot through which the message was sent */ |
141 | - public null|user $via_bot = null; |
|
141 | + public null | user $via_bot = null; |
|
142 | 142 | |
143 | 143 | /** Optional. Date the message was last edited in Unix time */ |
144 | - public null|int $edit_date = null; |
|
144 | + public null | int $edit_date = null; |
|
145 | 145 | |
146 | 146 | /** Optional. True, if the message can't be forwarded */ |
147 | - public null|bool $has_protected_content = null; |
|
147 | + public null | bool $has_protected_content = null; |
|
148 | 148 | |
149 | 149 | /** Optional. The unique identifier of a media message group this message belongs to */ |
150 | - public null|string $media_group_id = null; |
|
150 | + public null | string $media_group_id = null; |
|
151 | 151 | |
152 | 152 | /** |
153 | 153 | * Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group |
154 | 154 | * administrator |
155 | 155 | */ |
156 | - public null|string $author_signature = null; |
|
156 | + public null | string $author_signature = null; |
|
157 | 157 | |
158 | 158 | /** Optional. For text messages, the actual UTF-8 text of the message */ |
159 | - public null|string $text = null; |
|
159 | + public null | string $text = null; |
|
160 | 160 | |
161 | 161 | /** Optional. If user message was a command , this parameter will be the command */ |
162 | - public string|null $command = null; |
|
162 | + public string | null $command = null; |
|
163 | 163 | |
164 | 164 | /** Optional. If user message was a command , this parameter will be the command username(if exist) */ |
165 | - public string|null $command_username = null; |
|
165 | + public string | null $command_username = null; |
|
166 | 166 | |
167 | 167 | /** Optional. If user message was a command , this parameter will be the command payload(if exist) */ |
168 | - public string|null $command_payload = null; |
|
168 | + public string | null $command_payload = null; |
|
169 | 169 | |
170 | 170 | /** |
171 | 171 | * Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text |
172 | 172 | * @var messageEntity[] |
173 | 173 | */ |
174 | - public null|array $entities = null; |
|
174 | + public null | array $entities = null; |
|
175 | 175 | |
176 | 176 | /** |
177 | 177 | * Optional. Message is an animation, information about the animation. For backward compatibility, when this |
178 | 178 | * field is set, the document field will also be set |
179 | 179 | */ |
180 | - public null|animation $animation = null; |
|
180 | + public null | animation $animation = null; |
|
181 | 181 | |
182 | 182 | /** Optional. Message is an audio file, information about the file */ |
183 | - public null|audio $audio = null; |
|
183 | + public null | audio $audio = null; |
|
184 | 184 | |
185 | 185 | /** Optional. Message is a general file, information about the file */ |
186 | - public null|document $document = null; |
|
186 | + public null | document $document = null; |
|
187 | 187 | |
188 | 188 | /** |
189 | 189 | * Optional. Message is a photo, available sizes of the photo |
190 | 190 | * @var photoSize[] |
191 | 191 | */ |
192 | - public null|array $photo = null; |
|
192 | + public null | array $photo = null; |
|
193 | 193 | |
194 | 194 | /** Optional. Message is a sticker, information about the sticker */ |
195 | - public null|sticker $sticker = null; |
|
195 | + public null | sticker $sticker = null; |
|
196 | 196 | |
197 | 197 | /** Optional. Message is a forwarded story */ |
198 | - public null|story $story; |
|
198 | + public null | story $story; |
|
199 | 199 | |
200 | 200 | /** Optional. Message is a video, information about the video */ |
201 | - public null|video $video = null; |
|
201 | + public null | video $video = null; |
|
202 | 202 | |
203 | 203 | /** Optional. Message is a video note, information about the video message */ |
204 | - public null|videoNote $video_note = null; |
|
204 | + public null | videoNote $video_note = null; |
|
205 | 205 | |
206 | 206 | /** Optional. Message is a voice message, information about the file */ |
207 | - public null|voice $voice = null; |
|
207 | + public null | voice $voice = null; |
|
208 | 208 | |
209 | 209 | /** Optional. Caption for the animation, audio, document, photo, video or voice */ |
210 | - public null|string $caption = null; |
|
210 | + public null | string $caption = null; |
|
211 | 211 | |
212 | 212 | /** |
213 | 213 | * Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear |
214 | 214 | * in the caption |
215 | 215 | * @var messageEntity[] |
216 | 216 | */ |
217 | - public null|array $caption_entities = null; |
|
217 | + public null | array $caption_entities = null; |
|
218 | 218 | |
219 | 219 | /** Optional. True, if the message media is covered by a spoiler animation */ |
220 | - public null|bool $has_media_spoiler = null; |
|
220 | + public null | bool $has_media_spoiler = null; |
|
221 | 221 | |
222 | 222 | /** Optional. Message is a shared contact, information about the contact */ |
223 | - public null|contact $contact = null; |
|
223 | + public null | contact $contact = null; |
|
224 | 224 | |
225 | 225 | /** Optional. Message is a dice with random value */ |
226 | - public null|dice $dice = null; |
|
226 | + public null | dice $dice = null; |
|
227 | 227 | |
228 | 228 | /** Optional. Message is a game, information about the game. More about games » */ |
229 | - public null|game $game = null; |
|
229 | + public null | game $game = null; |
|
230 | 230 | |
231 | 231 | /** Optional. Message is a native poll, information about the poll */ |
232 | - public null|poll $poll = null; |
|
232 | + public null | poll $poll = null; |
|
233 | 233 | |
234 | 234 | /** |
235 | 235 | * Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, |
236 | 236 | * the location field will also be set |
237 | 237 | */ |
238 | - public null|venue $venue = null; |
|
238 | + public null | venue $venue = null; |
|
239 | 239 | |
240 | 240 | /** Optional. Message is a shared location, information about the location */ |
241 | - public null|location $location = null; |
|
241 | + public null | location $location = null; |
|
242 | 242 | |
243 | 243 | /** |
244 | 244 | * Optional. New members that were added to the group or supergroup and information about them (the bot itself |
245 | 245 | * may be one of these members) |
246 | 246 | * @var user[] |
247 | 247 | */ |
248 | - public null|array $new_chat_members = null; |
|
248 | + public null | array $new_chat_members = null; |
|
249 | 249 | |
250 | 250 | /** Optional. A member was removed from the group, information about them (this member may be the bot itself) */ |
251 | - public null|user $left_chat_member = null; |
|
251 | + public null | user $left_chat_member = null; |
|
252 | 252 | |
253 | 253 | /** Optional. A chat title was changed to this value */ |
254 | - public null|string $new_chat_title = null; |
|
254 | + public null | string $new_chat_title = null; |
|
255 | 255 | |
256 | 256 | /** |
257 | 257 | * Optional. A chat photo was change to this value |
258 | 258 | * @var photoSize[] |
259 | 259 | */ |
260 | - public null|array $new_chat_photo = null; |
|
260 | + public null | array $new_chat_photo = null; |
|
261 | 261 | |
262 | 262 | /** Optional. Service message: the chat photo was deleted */ |
263 | - public null|bool $delete_chat_photo = null; |
|
263 | + public null | bool $delete_chat_photo = null; |
|
264 | 264 | |
265 | 265 | /** Optional. Service message: the group has been created */ |
266 | - public null|bool $group_chat_created = null; |
|
266 | + public null | bool $group_chat_created = null; |
|
267 | 267 | |
268 | 268 | /** |
269 | 269 | * Optional. Service message: the supergroup has been created. This field can't be received in a message coming |
270 | 270 | * through updates, because bot can't be a member of a supergroup when it is created. It can only be found in |
271 | 271 | * reply_to_message if someone replies to a very first message in a directly created supergroup. |
272 | 272 | */ |
273 | - public null|bool $supergroup_chat_created = null; |
|
273 | + public null | bool $supergroup_chat_created = null; |
|
274 | 274 | |
275 | 275 | /** |
276 | 276 | * Optional. Service message: the channel has been created. This field can't be received in a message coming |
277 | 277 | * through updates, because bot can't be a member of a channel when it is created. It can only be found in |
278 | 278 | * reply_to_message if someone replies to a very first message in a channel. |
279 | 279 | */ |
280 | - public null|bool $channel_chat_created = null; |
|
280 | + public null | bool $channel_chat_created = null; |
|
281 | 281 | |
282 | 282 | /** Optional. Service message: auto-delete timer settings changed in the chat */ |
283 | - public null|messageAutoDeleteTimerChanged $message_auto_delete_timer_changed = null; |
|
283 | + public null | messageAutoDeleteTimerChanged $message_auto_delete_timer_changed = null; |
|
284 | 284 | |
285 | 285 | /** |
286 | 286 | * Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | * But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for |
289 | 289 | * storing this identifier. |
290 | 290 | */ |
291 | - public null|int $migrate_to_chat_id = null; |
|
291 | + public null | int $migrate_to_chat_id = null; |
|
292 | 292 | |
293 | 293 | /** |
294 | 294 | * Optional. The supergroup has been migrated from a group with the specified identifier. This number may have |
@@ -296,82 +296,82 @@ discard block |
||
296 | 296 | * interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float |
297 | 297 | * type are safe for storing this identifier. |
298 | 298 | */ |
299 | - public null|int $migrate_from_chat_id = null; |
|
299 | + public null | int $migrate_from_chat_id = null; |
|
300 | 300 | |
301 | 301 | /** |
302 | 302 | * Optional. Specified message was pinned. Note that the Message object in this field will not contain further |
303 | 303 | * reply_to_message fields even if it is itself a reply. |
304 | 304 | */ |
305 | - public null|message $pinned_message = null; |
|
305 | + public null | message $pinned_message = null; |
|
306 | 306 | |
307 | 307 | /** Optional. Message is an invoice for a payment, information about the invoice. More about payments » */ |
308 | - public null|invoice $invoice = null; |
|
308 | + public null | invoice $invoice = null; |
|
309 | 309 | |
310 | 310 | /** |
311 | 311 | * Optional. Message is a service message about a successful payment, information about the payment. More about |
312 | 312 | * payments » |
313 | 313 | */ |
314 | - public null|successfulPayment $successful_payment = null; |
|
314 | + public null | successfulPayment $successful_payment = null; |
|
315 | 315 | |
316 | 316 | /** Optional. Service message: a user was shared with the bot */ |
317 | - public null|userShared $user_shared = null; |
|
317 | + public null | userShared $user_shared = null; |
|
318 | 318 | |
319 | 319 | /** Optional. Service message: a chat was shared with the bot */ |
320 | - public null|chatShared $chat_shared = null; |
|
320 | + public null | chatShared $chat_shared = null; |
|
321 | 321 | |
322 | 322 | /** Optional. The domain name of the website on which the user has logged in. More about Telegram Login » */ |
323 | - public null|string $connected_website = null; |
|
323 | + public null | string $connected_website = null; |
|
324 | 324 | |
325 | 325 | /** Optional. Service message: the user allowed the bot added to the attachment menu to write messages */ |
326 | - public null|writeAccessAllowed $write_access_allowed = null; |
|
326 | + public null | writeAccessAllowed $write_access_allowed = null; |
|
327 | 327 | |
328 | 328 | /** Optional. Telegram Passport data */ |
329 | - public null|passportData $passport_data = null; |
|
329 | + public null | passportData $passport_data = null; |
|
330 | 330 | |
331 | 331 | /** |
332 | 332 | * Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live |
333 | 333 | * Location. |
334 | 334 | */ |
335 | - public null|proximityAlertTriggered $proximity_alert_triggered = null; |
|
335 | + public null | proximityAlertTriggered $proximity_alert_triggered = null; |
|
336 | 336 | |
337 | 337 | /** Optional. Service message: forum topic created */ |
338 | - public null|forumTopicCreated $forum_topic_created = null; |
|
338 | + public null | forumTopicCreated $forum_topic_created = null; |
|
339 | 339 | |
340 | 340 | /** Optional. Service message: forum topic edited */ |
341 | - public null|forumTopicEdited $forum_topic_edited = null; |
|
341 | + public null | forumTopicEdited $forum_topic_edited = null; |
|
342 | 342 | |
343 | 343 | /** Optional. Service message: forum topic closed */ |
344 | - public null|forumTopicClosed $forum_topic_closed = null; |
|
344 | + public null | forumTopicClosed $forum_topic_closed = null; |
|
345 | 345 | |
346 | 346 | /** Optional. Service message: forum topic reopened */ |
347 | - public null|forumTopicReopened $forum_topic_reopened = null; |
|
347 | + public null | forumTopicReopened $forum_topic_reopened = null; |
|
348 | 348 | |
349 | 349 | /** Optional. Service message: the 'General' forum topic hidden */ |
350 | - public null|generalForumTopicHidden $general_forum_topic_hidden = null; |
|
350 | + public null | generalForumTopicHidden $general_forum_topic_hidden = null; |
|
351 | 351 | |
352 | 352 | /** Optional. Service message: the 'General' forum topic unhidden */ |
353 | - public null|generalForumTopicUnhidden $general_forum_topic_unhidden = null; |
|
353 | + public null | generalForumTopicUnhidden $general_forum_topic_unhidden = null; |
|
354 | 354 | |
355 | 355 | /** Optional. Service message: video chat scheduled */ |
356 | - public null|videoChatScheduled $video_chat_scheduled = null; |
|
356 | + public null | videoChatScheduled $video_chat_scheduled = null; |
|
357 | 357 | |
358 | 358 | /** Optional. Service message: video chat started */ |
359 | - public null|videoChatStarted $video_chat_started = null; |
|
359 | + public null | videoChatStarted $video_chat_started = null; |
|
360 | 360 | |
361 | 361 | /** Optional. Service message: video chat ended */ |
362 | - public null|videoChatEnded $video_chat_ended = null; |
|
362 | + public null | videoChatEnded $video_chat_ended = null; |
|
363 | 363 | |
364 | 364 | /** Optional. Service message: new participants invited to a video chat */ |
365 | - public null|videoChatParticipantsInvited $video_chat_participants_invited = null; |
|
365 | + public null | videoChatParticipantsInvited $video_chat_participants_invited = null; |
|
366 | 366 | |
367 | 367 | /** Optional. Service message: data sent by a Web App */ |
368 | - public null|webAppData $web_app_data = null; |
|
368 | + public null | webAppData $web_app_data = null; |
|
369 | 369 | |
370 | 370 | /** Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons. */ |
371 | - public null|inlineKeyboardMarkup $reply_markup = null; |
|
371 | + public null | inlineKeyboardMarkup $reply_markup = null; |
|
372 | 372 | |
373 | 373 | |
374 | - public function __construct(stdClass|null $object = null) { |
|
374 | + public function __construct(stdClass | null $object = null) { |
|
375 | 375 | if ($object != null) { |
376 | 376 | parent::__construct($object, self::subs); |
377 | 377 | } |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | * |
383 | 383 | * @return bool |
384 | 384 | */ |
385 | - public function isCommand (): bool { |
|
385 | + public function isCommand(): bool { |
|
386 | 386 | return !empty($this->command); |
387 | 387 | } |
388 | 388 | |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * |
392 | 392 | * @return bool |
393 | 393 | */ |
394 | - public function isForwarded (): bool { |
|
394 | + public function isForwarded(): bool { |
|
395 | 395 | return $this->forward_from !== null || $this->forward_from_chat !== null; |
396 | 396 | } |
397 | 397 | |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | * |
403 | 403 | * @return bool |
404 | 404 | */ |
405 | - public function isAdmin (): bool { |
|
405 | + public function isAdmin(): bool { |
|
406 | 406 | return $this->chat->getMember($this->from->id)->status === chatMemberStatus::ADMINISTRATOR; |
407 | 407 | } |
408 | 408 | |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | * |
414 | 414 | * @return bool |
415 | 415 | */ |
416 | - public function isOwner (): bool { |
|
416 | + public function isOwner(): bool { |
|
417 | 417 | return $this->chat->getMember($this->from->id)->status === chatMemberStatus::CREATOR; |
418 | 418 | } |
419 | 419 | |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | * |
427 | 427 | * @return responseError|bool |
428 | 428 | */ |
429 | - public function banMember(bool $answer = null): responseError|bool { |
|
429 | + public function banMember(bool $answer = null): responseError | bool { |
|
430 | 430 | if ($this->chat->isPrivate()) { |
431 | 431 | return false; |
432 | 432 | } |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | * |
443 | 443 | * @return responseError|bool |
444 | 444 | */ |
445 | - public function kickMember(bool $answer = null): responseError|bool { |
|
445 | + public function kickMember(bool $answer = null): responseError | bool { |
|
446 | 446 | if ($this->chat->isPrivate()) { |
447 | 447 | return false; |
448 | 448 | } |
@@ -456,8 +456,8 @@ discard block |
||
456 | 456 | * |
457 | 457 | * @return responseError|bool |
458 | 458 | */ |
459 | - public function delete (bool $answer = null): responseError|bool { |
|
460 | - return telegram::deleteMessage($this->chat->id,$this->id, answer: $answer); |
|
459 | + public function delete(bool $answer = null): responseError | bool { |
|
460 | + return telegram::deleteMessage($this->chat->id, $this->id, answer: $answer); |
|
461 | 461 | } |
462 | 462 | |
463 | 463 | /** |
@@ -467,8 +467,8 @@ discard block |
||
467 | 467 | * |
468 | 468 | * @return responseError|bool |
469 | 469 | */ |
470 | - public function pinChatMessage (bool $answer = null): responseError|bool { |
|
471 | - return telegram::deleteMessage($this->chat->id,$this->id, answer: $answer); |
|
470 | + public function pinChatMessage(bool $answer = null): responseError | bool { |
|
471 | + return telegram::deleteMessage($this->chat->id, $this->id, answer: $answer); |
|
472 | 472 | } |
473 | 473 | |
474 | 474 | /** |
@@ -479,8 +479,8 @@ discard block |
||
479 | 479 | * |
480 | 480 | * @return message|responseError|bool |
481 | 481 | */ |
482 | - public function editText (string $text, bool $answer = null): message|responseError|bool { |
|
483 | - return telegram::editMessageText($text, $this->chat->id, $this->message_id, answer: $answer); |
|
482 | + public function editText(string $text, bool $answer = null): message | responseError | bool { |
|
483 | + return telegram::editMessageText($text, $this->chat->id, $this->message_id, answer: $answer); |
|
484 | 484 | } |
485 | 485 | |
486 | 486 | /** |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * |
492 | 492 | * @return messageId|responseError |
493 | 493 | */ |
494 | - public function copy (int|string $chat_id, bool $answer = null): messageId|responseError { |
|
494 | + public function copy(int | string $chat_id, bool $answer = null): messageId | responseError { |
|
495 | 495 | return telegram::copyMessage($chat_id, answer: $answer); |
496 | 496 | } |
497 | 497 | |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | * |
504 | 504 | * @return message|responseError |
505 | 505 | */ |
506 | - public function forward (int|string $chat_id, bool $answer = null): message|responseError { |
|
506 | + public function forward(int | string $chat_id, bool $answer = null): message | responseError { |
|
507 | 507 | return telegram::forwardMessage($chat_id, answer: $answer); |
508 | 508 | } |
509 | 509 | } |