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/Entities/InlineKeyboardButton.php
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,7 @@
23
23
* @method bool getPay() Optional. Specify True, to send a Pay button.
24
24
*
25
25
* @method InlineKeyboardButton setText(string $text) Label text on the button
26
-
* @method InlineKeyboardButton setUrl(string $url) Optional. HTTP url to be opened when button is pressed
27
26
* @method InlineKeyboardButton setLoginUrl(LoginUrl $login_url) Optional. HTTP url to be opened when button is pressed
28
-
* @method InlineKeyboardButton setCallbackData(string $callback_data) Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
29
-
* @method InlineKeyboardButton setWebApp(WebAppInfo $web_app) Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only in private chats between a user and the bot.
30
27
* @method InlineKeyboardButton setSwitchInlineQuery(string $switch_inline_query) Optional. 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. Can be empty, in which case just the bot’s username will be inserted.
31
28
* @method InlineKeyboardButton setSwitchInlineQueryCurrentChat(string $switch_inline_query_current_chat) Optional. If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot’s username will be inserted.
32
29
* @method InlineKeyboardButton setCallbackGame(CallbackGame $callback_game) Optional. Description of the game that will be launched when the user presses the button.
@@ -68,32 +65,40 @@ public static function couldBe(array $data): bool
68
65
}
69
66
70
67
/**
68
+
* Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
Copy file name to clipboardExpand all lines: src/Entities/KeyboardButton.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,6 @@
29
29
* @method $this setRequestContact(bool $request_contact) Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only
30
30
* @method $this setRequestLocation(bool $request_location) Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only
31
31
* @method $this setRequestPoll(KeyboardButtonPollType $request_poll) Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only
32
-
* @method $this setWebApp(WebAppInfo $web_app) Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be able to send a “web_app_data” service message. Available in private chats only.
33
32
*/
34
33
class KeyboardButton extends Entity
35
34
{
@@ -70,10 +69,13 @@ public static function couldBe(array $data): bool
70
69
}
71
70
72
71
/**
72
+
* Optional. If specified, the described Web App will be launched when the button is pressed.
73
+
* The Web App will be able to send a “web_app_data” service message. Available in private chats only.
Copy file name to clipboardExpand all lines: src/Entities/Update.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
* @method ChatMemberUpdated getMyChatMember() Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.
28
28
* @method ChatMemberUpdated getChatMember() Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify “chat_member” in the list of allowed_updates to receive these updates.
29
29
* @method ChatJoinRequest getChatJoinRequest() Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates.
30
-
* @method WebAppData getWebData() Optional. The data from WebApp
30
+
* @method WebAppData getWebAppData() Optional. The data from WebApp
0 commit comments