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
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,9 @@ class InlineKeyboardButton extends Type
37
37
/** <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. */
38
38
public ?SwitchInlineQueryChosenChat$switch_inline_query_chosen_chat = null;
39
39
40
+
/** <em>Optional</em>. Description of the button that copies the specified text to the clipboard. */
41
+
public ?CopyTextButton$copy_text = null;
42
+
40
43
/** <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
44
public ?CallbackGame$callback_game = null;
42
45
@@ -52,6 +55,7 @@ class InlineKeyboardButton extends Type
52
55
* @param string $switch_inline_query <em>Optional</em>. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent on behalf of a Telegram Business account.
53
56
* @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
57
* @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.
58
+
* @param CopyTextButton $copy_text <em>Optional</em>. Description of the button that copies the specified text to the clipboard.
55
59
* @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
60
* @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/MaybeInaccessibleMessage.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
*/
16
16
abstractclass MaybeInaccessibleMessage extends Type implements Factory
17
17
{
18
-
/** Unique message identifier inside this chat */
18
+
/** Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent */
19
19
publicint$message_id;
20
20
21
21
/** Date the message was sent in Unix time. It is always a positive number, representing a valid date. */
Copy file name to clipboardExpand all lines: src/Telegram/Message.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -282,7 +282,7 @@ class Message extends MaybeInaccessibleMessage
282
282
public ?InlineKeyboardMarkup$reply_markup = null;
283
283
284
284
/**
285
-
* @param int $message_id Unique message identifier inside this chat
285
+
* @param int $message_id Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent
286
286
* @param int $date Date the message was sent in Unix time. It is always a positive number, representing a valid date.
287
287
* @param Chat $chat Chat the message belongs to
288
288
* @param int $message_thread_id <em>Optional</em>. Unique identifier of a message thread to which the message belongs; for supergroups only
Copy file name to clipboardExpand all lines: src/Telegram/MessageId.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@
13
13
*/
14
14
class MessageId extends Type
15
15
{
16
-
/** Unique message identifier */
16
+
/** Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent */
17
17
publicint$message_id;
18
18
19
19
/**
20
-
* @param int $message_id Unique message identifier
20
+
* @param int $message_id Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent
Copy file name to clipboardExpand all lines: src/Types/Extensions/RepliesToMessage.php
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ trait RepliesToMessage
26
26
* @param LinkPreviewOptions $link_preview_options Link preview generation options for the message
27
27
* @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.
28
28
* @param bool $protect_content Protects the contents of the sent message from forwarding and saving
29
+
* @param bool $allow_paid_broadcast Pass <em>True</em> to allow up to 1000 messages per second, ignoring <a href="https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once">broadcasting limits</a> for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
29
30
* @param string $message_effect_id Unique identifier of the message effect to be added to the message; for private chats only
30
31
* @param ReplyParameters $reply_parameters Description of the message to reply to
31
32
* @param InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply $reply_markup Additional interface options. A JSON-serialized object for an <a href="https://core.telegram.org/bots/features#inline-keyboards">inline keyboard</a>, <a href="https://core.telegram.org/bots/features#keyboards">custom reply keyboard</a>, instructions to remove a reply keyboard or to force a reply from the user
0 commit comments