You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Layers/Generated.php
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,7 @@ public function sendMessage(
205
205
* @param int|string $from_chat_id Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
206
206
* @param int $message_id Message identifier in the chat specified in <em>from_chat_id</em>
207
207
* @param int $message_thread_id Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
208
+
* @param int $video_start_timestamp New start timestamp for the forwarded video in the message
208
209
* @param bool $disable_notification Sends the message <a href="https://telegram.org/blog/channels-2-0#silent-messages">silently</a>. Users will receive a notification with no sound.
209
210
* @param bool $protect_content Protects the contents of the forwarded message from forwarding and saving
210
211
*
@@ -215,6 +216,7 @@ public function forwardMessage(
215
216
int|string$from_chat_id,
216
217
int$message_id,
217
218
?int$message_thread_id = null,
219
+
?int$video_start_timestamp = null,
218
220
?bool$disable_notification = null,
219
221
?bool$protect_content = null,
220
222
): Message {
@@ -251,6 +253,7 @@ public function forwardMessages(
251
253
* @param int|string $from_chat_id Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
252
254
* @param int $message_id Message identifier in the chat specified in <em>from_chat_id</em>
253
255
* @param int $message_thread_id Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
256
+
* @param int $video_start_timestamp New start timestamp for the copied video in the message
254
257
* @param string $caption New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept
255
258
* @param ParseMode|string $parse_mode Mode for parsing entities in the new caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
256
259
* @param MessageEntity[] $caption_entities A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of <em>parse_mode</em>
@@ -268,6 +271,7 @@ public function copyMessage(
268
271
int|string$from_chat_id,
269
272
int$message_id,
270
273
?int$message_thread_id = null,
274
+
?int$video_start_timestamp = null,
271
275
?string$caption = null,
272
276
ParseMode|string|null$parse_mode = null,
273
277
?array$caption_entities = null,
@@ -444,6 +448,8 @@ public function sendDocument(
444
448
* @param int $width Video width
445
449
* @param int $height Video height
446
450
* @param InputFile|string $thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
451
+
* @param InputFile|string $cover Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
452
+
* @param int $start_timestamp Start timestamp for the video in the message
447
453
* @param string $caption Video caption (may also be used when resending videos by <em>file_id</em>), 0-1024 characters after entities parsing
448
454
* @param ParseMode|string $parse_mode Mode for parsing entities in the video caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
449
455
* @param MessageEntity[] $caption_entities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em>
@@ -468,6 +474,8 @@ public function sendVideo(
468
474
?int$width = null,
469
475
?int$height = null,
470
476
InputFile|string|null$thumbnail = null,
477
+
InputFile|string|null$cover = null,
478
+
?int$start_timestamp = null,
471
479
?string$caption = null,
472
480
ParseMode|string|null$parse_mode = null,
473
481
?array$caption_entities = null,
@@ -909,7 +917,7 @@ public function sendChatAction(
909
917
}
910
918
911
919
/**
912
-
* Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions. Returns <em>True</em> on success.
920
+
* Use this method to change the chosen reactions on a message. Service messages of some types can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions. Returns <em>True</em> on success.
913
921
*
914
922
* @param int|string $chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername)
915
923
* @param int $message_id Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.
@@ -2282,20 +2290,22 @@ public function deleteStickerSet(string $name): bool
2282
2290
}
2283
2291
2284
2292
/**
2285
-
* Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user. Returns <em>True</em> on success.
2293
+
* Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns <em>True</em> on success.
2286
2294
*
2287
-
* @param int $user_id Unique identifier of the target user that will receive the gift
2288
2295
* @param string $gift_id Identifier of the gift
2296
+
* @param int $user_id Required if <em>chat_id</em> is not specified. Unique identifier of the target user who will receive the gift.
2297
+
* @param int|string $chat_id Required if <em>user_id</em> is not specified. Unique identifier for the chat or username of the channel (in the format @channelusername) that will receive the gift.
2289
2298
* @param bool $pay_for_upgrade Pass <em>True</em> to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver
2290
-
* @param string $text Text that will be shown along with the gift; 0-255 characters
2299
+
* @param string $text Text that will be shown along with the gift; 0-128 characters
2291
2300
* @param string $text_parse_mode Mode for parsing entities in the text. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.
2292
2301
* @param MessageEntity[] $text_entities A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of <em>text_parse_mode</em>. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.
Copy file name to clipboardExpand all lines: src/Telegram/ChatFullInfo.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,9 @@ class ChatFullInfo extends Type
114
114
/** <em>Optional</em>. Default chat member permissions, for groups and supergroups */
115
115
public ?ChatPermissions$permissions = null;
116
116
117
+
/** <em>Optional</em>. <em>True</em>, if gifts can be sent to the chat */
118
+
public ?bool$can_send_gift = null;
119
+
117
120
/** <em>Optional</em>. <em>True</em>, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */
118
121
public ?bool$can_send_paid_media = null;
119
122
@@ -185,6 +188,7 @@ class ChatFullInfo extends Type
185
188
* @param string $invite_link <em>Optional</em>. Primary invite link, for groups, supergroups and channel chats
186
189
* @param Message $pinned_message <em>Optional</em>. The most recent pinned message (by sending date)
187
190
* @param ChatPermissions $permissions <em>Optional</em>. Default chat member permissions, for groups and supergroups
191
+
* @param bool $can_send_gift <em>Optional</em>. <em>True</em>, if gifts can be sent to the chat
188
192
* @param bool $can_send_paid_media <em>Optional</em>. <em>True</em>, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
189
193
* @param int $slow_mode_delay <em>Optional</em>. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds
190
194
* @param int $unrestrict_boost_count <em>Optional</em>. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions
Copy file name to clipboardExpand all lines: src/Telegram/InputMediaAnimation.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ class InputMediaAnimation extends InputMedia
17
17
publicstring$type = 'animation';
18
18
19
19
/** <em>Optional</em>. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a> */
20
-
publicInputFile|string|null$thumbnail = null;
20
+
publicstring|InputFile|null$thumbnail = null;
21
21
22
22
/** <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media */
23
23
public ?bool$show_caption_above_media = null;
@@ -36,7 +36,7 @@ class InputMediaAnimation extends InputMedia
36
36
37
37
/**
38
38
* @param string|InputFile $media File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
39
-
* @param InputFile|string $thumbnail <em>Optional</em>. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
39
+
* @param string|InputFile $thumbnail <em>Optional</em>. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
40
40
* @param string $caption <em>Optional</em>. Caption of the animation to be sent, 0-1024 characters after entities parsing
41
41
* @param string $parse_mode <em>Optional</em>. Mode for parsing entities in the animation caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
42
42
* @param MessageEntity[] $caption_entities <em>Optional</em>. List of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em>
@@ -48,7 +48,7 @@ class InputMediaAnimation extends InputMedia
Copy file name to clipboardExpand all lines: src/Telegram/InputMediaAudio.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ class InputMediaAudio extends InputMedia
17
17
publicstring$type = 'audio';
18
18
19
19
/** <em>Optional</em>. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a> */
20
-
publicInputFile|string|null$thumbnail = null;
20
+
publicstring|InputFile|null$thumbnail = null;
21
21
22
22
/** <em>Optional</em>. Duration of the audio in seconds */
23
23
public ?int$duration = null;
@@ -30,7 +30,7 @@ class InputMediaAudio extends InputMedia
30
30
31
31
/**
32
32
* @param string|InputFile $media File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
33
-
* @param InputFile|string $thumbnail <em>Optional</em>. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
33
+
* @param string|InputFile $thumbnail <em>Optional</em>. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
34
34
* @param string $caption <em>Optional</em>. Caption of the audio to be sent, 0-1024 characters after entities parsing
35
35
* @param string $parse_mode <em>Optional</em>. Mode for parsing entities in the audio caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
36
36
* @param MessageEntity[] $caption_entities <em>Optional</em>. List of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em>
@@ -40,7 +40,7 @@ class InputMediaAudio extends InputMedia
0 commit comments