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/Telegram/InlineKeyboardButton.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
useTelepath\Types\Type;
10
10
11
11
/**
12
-
* This object represents one button of an inline keyboard. You must use exactly one of the optional fields.
12
+
* This object represents one button of an inline keyboard. Exactly one of the optional fields must be used to specify type of the button.
13
13
*/
14
14
class InlineKeyboardButton extends Type
15
15
{
@@ -40,7 +40,7 @@ class InlineKeyboardButton extends Type
40
40
/** <em>Optional</em>. Description of the game that will be launched when the user presses the button.NOTE: This type of button must always be the first button in the first row. */
41
41
public ?CallbackGame$callback_game = null;
42
42
43
-
/** <em>Optional</em>. Specify <em>True</em>, to send a <a href="https://core.telegram.org/bots/api#payments">Pay button</a>.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages. */
43
+
/** <em>Optional</em>. Specify <em>True</em>, to send a <a href="https://core.telegram.org/bots/api#payments">Pay button</a>. Substrings “⭐” and “XTR” in the buttons's text will be replaced with a Telegram Star icon.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages. */
44
44
public ?bool$pay = null;
45
45
46
46
/**
@@ -53,7 +53,7 @@ class InlineKeyboardButton extends Type
53
53
* @param string $switch_inline_query_current_chat <em>Optional</em>. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent on behalf of a Telegram Business account.
54
54
* @param SwitchInlineQueryChosenChat $switch_inline_query_chosen_chat <em>Optional</em>. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent on behalf of a Telegram Business account.
55
55
* @param CallbackGame $callback_game <em>Optional</em>. Description of the game that will be launched when the user presses the button.NOTE: This type of button must always be the first button in the first row.
56
-
* @param bool $pay <em>Optional</em>. Specify <em>True</em>, to send a <a href="https://core.telegram.org/bots/api#payments">Pay button</a>.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages.
56
+
* @param bool $pay <em>Optional</em>. Specify <em>True</em>, to send a <a href="https://core.telegram.org/bots/api#payments">Pay button</a>. Substrings “⭐” and “XTR” in the buttons's text will be replaced with a Telegram Star icon.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages.
Copy file name to clipboardExpand all lines: src/Telegram/InlineQueryResultCachedGif.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,9 @@ class InlineQueryResultCachedGif extends InlineQueryResult
33
33
*/
34
34
public ?array$caption_entities = null;
35
35
36
+
/** <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media */
37
+
public ?bool$show_caption_above_media = null;
38
+
36
39
/** <em>Optional</em>. Content of the message to be sent instead of the GIF animation */
37
40
public ?InputMessageContent$input_message_content = null;
38
41
@@ -43,6 +46,7 @@ class InlineQueryResultCachedGif extends InlineQueryResult
43
46
* @param string $caption <em>Optional</em>. Caption of the GIF file to be sent, 0-1024 characters after entities parsing
44
47
* @param string $parse_mode <em>Optional</em>. Mode for parsing entities in the caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
45
48
* @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>
49
+
* @param bool $show_caption_above_media <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media
46
50
* @param InlineKeyboardMarkup $reply_markup <em>Optional</em>. <a href="https://core.telegram.org/bots/features#inline-keyboards">Inline keyboard</a> attached to the message
47
51
* @param InputMessageContent $input_message_content <em>Optional</em>. Content of the message to be sent instead of the GIF animation
Copy file name to clipboardExpand all lines: src/Telegram/InlineQueryResultCachedMpeg4Gif.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,9 @@ class InlineQueryResultCachedMpeg4Gif extends InlineQueryResult
33
33
*/
34
34
public ?array$caption_entities = null;
35
35
36
+
/** <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media */
37
+
public ?bool$show_caption_above_media = null;
38
+
36
39
/** <em>Optional</em>. Content of the message to be sent instead of the video animation */
37
40
public ?InputMessageContent$input_message_content = null;
38
41
@@ -43,6 +46,7 @@ class InlineQueryResultCachedMpeg4Gif extends InlineQueryResult
43
46
* @param string $caption <em>Optional</em>. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
44
47
* @param string $parse_mode <em>Optional</em>. Mode for parsing entities in the caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
45
48
* @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>
49
+
* @param bool $show_caption_above_media <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media
46
50
* @param InlineKeyboardMarkup $reply_markup <em>Optional</em>. <a href="https://core.telegram.org/bots/features#inline-keyboards">Inline keyboard</a> attached to the message
47
51
* @param InputMessageContent $input_message_content <em>Optional</em>. Content of the message to be sent instead of the video animation
Copy file name to clipboardExpand all lines: src/Telegram/InlineQueryResultCachedPhoto.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,9 @@ class InlineQueryResultCachedPhoto extends InlineQueryResult
36
36
*/
37
37
public ?array$caption_entities = null;
38
38
39
+
/** <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media */
40
+
public ?bool$show_caption_above_media = null;
41
+
39
42
/** <em>Optional</em>. Content of the message to be sent instead of the photo */
40
43
public ?InputMessageContent$input_message_content = null;
41
44
@@ -47,6 +50,7 @@ class InlineQueryResultCachedPhoto extends InlineQueryResult
47
50
* @param string $caption <em>Optional</em>. Caption of the photo to be sent, 0-1024 characters after entities parsing
48
51
* @param string $parse_mode <em>Optional</em>. Mode for parsing entities in the photo caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
49
52
* @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>
53
+
* @param bool $show_caption_above_media <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media
50
54
* @param InlineKeyboardMarkup $reply_markup <em>Optional</em>. <a href="https://core.telegram.org/bots/features#inline-keyboards">Inline keyboard</a> attached to the message
51
55
* @param InputMessageContent $input_message_content <em>Optional</em>. Content of the message to be sent instead of the photo
Copy file name to clipboardExpand all lines: src/Telegram/InlineQueryResultCachedVideo.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,9 @@ class InlineQueryResultCachedVideo extends InlineQueryResult
36
36
*/
37
37
public ?array$caption_entities = null;
38
38
39
+
/** <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media */
40
+
public ?bool$show_caption_above_media = null;
41
+
39
42
/** <em>Optional</em>. Content of the message to be sent instead of the video */
40
43
public ?InputMessageContent$input_message_content = null;
41
44
@@ -47,6 +50,7 @@ class InlineQueryResultCachedVideo extends InlineQueryResult
47
50
* @param string $caption <em>Optional</em>. Caption of the video to be sent, 0-1024 characters after entities parsing
48
51
* @param string $parse_mode <em>Optional</em>. 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.
49
52
* @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>
53
+
* @param bool $show_caption_above_media <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media
50
54
* @param InlineKeyboardMarkup $reply_markup <em>Optional</em>. <a href="https://core.telegram.org/bots/features#inline-keyboards">Inline keyboard</a> attached to the message
51
55
* @param InputMessageContent $input_message_content <em>Optional</em>. Content of the message to be sent instead of the video
Copy file name to clipboardExpand all lines: src/Telegram/InlineQueryResultGif.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,9 @@ class InlineQueryResultGif extends InlineQueryResult
48
48
*/
49
49
public ?array$caption_entities = null;
50
50
51
+
/** <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media */
52
+
public ?bool$show_caption_above_media = null;
53
+
51
54
/** <em>Optional</em>. Content of the message to be sent instead of the GIF animation */
52
55
public ?InputMessageContent$input_message_content = null;
53
56
@@ -63,6 +66,7 @@ class InlineQueryResultGif extends InlineQueryResult
63
66
* @param string $caption <em>Optional</em>. Caption of the GIF file to be sent, 0-1024 characters after entities parsing
64
67
* @param string $parse_mode <em>Optional</em>. Mode for parsing entities in the caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
65
68
* @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>
69
+
* @param bool $show_caption_above_media <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media
66
70
* @param InlineKeyboardMarkup $reply_markup <em>Optional</em>. <a href="https://core.telegram.org/bots/features#inline-keyboards">Inline keyboard</a> attached to the message
67
71
* @param InputMessageContent $input_message_content <em>Optional</em>. Content of the message to be sent instead of the GIF animation
Copy file name to clipboardExpand all lines: src/Telegram/InlineQueryResultMpeg4Gif.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,9 @@ class InlineQueryResultMpeg4Gif extends InlineQueryResult
48
48
*/
49
49
public ?array$caption_entities = null;
50
50
51
+
/** <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media */
52
+
public ?bool$show_caption_above_media = null;
53
+
51
54
/** <em>Optional</em>. Content of the message to be sent instead of the video animation */
52
55
public ?InputMessageContent$input_message_content = null;
53
56
@@ -63,6 +66,7 @@ class InlineQueryResultMpeg4Gif extends InlineQueryResult
63
66
* @param string $caption <em>Optional</em>. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
64
67
* @param string $parse_mode <em>Optional</em>. Mode for parsing entities in the caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
65
68
* @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>
69
+
* @param bool $show_caption_above_media <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media
66
70
* @param InlineKeyboardMarkup $reply_markup <em>Optional</em>. <a href="https://core.telegram.org/bots/features#inline-keyboards">Inline keyboard</a> attached to the message
67
71
* @param InputMessageContent $input_message_content <em>Optional</em>. Content of the message to be sent instead of the video animation
Copy file name to clipboardExpand all lines: src/Telegram/InlineQueryResultPhoto.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,9 @@ class InlineQueryResultPhoto extends InlineQueryResult
45
45
*/
46
46
public ?array$caption_entities = null;
47
47
48
+
/** <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media */
49
+
public ?bool$show_caption_above_media = null;
50
+
48
51
/** <em>Optional</em>. Content of the message to be sent instead of the photo */
49
52
public ?InputMessageContent$input_message_content = null;
50
53
@@ -59,6 +62,7 @@ class InlineQueryResultPhoto extends InlineQueryResult
59
62
* @param string $caption <em>Optional</em>. Caption of the photo to be sent, 0-1024 characters after entities parsing
60
63
* @param string $parse_mode <em>Optional</em>. Mode for parsing entities in the photo caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
61
64
* @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>
65
+
* @param bool $show_caption_above_media <em>Optional</em>. Pass <em>True</em>, if the caption must be shown above the message media
62
66
* @param InlineKeyboardMarkup $reply_markup <em>Optional</em>. <a href="https://core.telegram.org/bots/features#inline-keyboards">Inline keyboard</a> attached to the message
63
67
* @param InputMessageContent $input_message_content <em>Optional</em>. Content of the message to be sent instead of the photo
0 commit comments