-
-
Notifications
You must be signed in to change notification settings - Fork 959
Expand file tree
/
Copy pathKeyboardButtonRequestUsers.php
More file actions
23 lines (20 loc) · 1.66 KB
/
Copy pathKeyboardButtonRequestUsers.php
File metadata and controls
23 lines (20 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
namespace Longman\TelegramBot\Entities;
/**
* This object defines the criteria used to request suitable users. The identifiers of the selected users will be shared with the bot when the corresponding button is pressed.
*
* @link https://core.telegram.org/bots/api#keyboardbuttonrequestusers
*
* @method int getRequestId() Signed 32-bit identifier of the request, which will be received back in the UserShared object. Must be unique within the message
* @method bool getUserIsBot() Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied.
* @method bool getUserIsPremium() Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no additional restrictions are applied.
* @method int getMaxQuantity() Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
*
* @method $this setRequestId(int $request_id) Signed 32-bit identifier of the request, which will be received back in the UserShared object. Must be unique within the message
* @method $this setUserIsBot(bool $user_is_bot) Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied.
* @method $this setUserIsPremium(bool $user_is_premium) Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no additional restrictions are applied.
* @method int setMaxQuantity(int $set_max_quantity) Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
*/
class KeyboardButtonRequestUsers extends Entity
{
}