class Tourmaline::KeyboardButtonRequestUsers
inherits Reference
#
This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. More about requesting users: https://core.telegram.org/bots/features#chat-and-user-selection
Included modules
JSON::Serializable
Constructors#
.new(request_id, user_is_bot : Bool? = nil, user_is_premium : Bool? = nil, max_quantity : Int32 | Int64 | Nil = nil, request_name : Bool? = nil, request_username : Bool? = nil, request_photo : Bool? = nil)
#
(request_id, user_is_bot : Bool? = nil, user_is_premium : Bool? = nil, max_quantity : Int32 | Int64 | Nil = nil, request_name : Bool? = nil, request_username : Bool? = nil, request_photo : Bool? = nil)
Methods#
#max_quantity : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
#max_quantity=(max_quantity : Int32 | Int64 | Nil)
#
(max_quantity : Int32 | Int64 | Nil)
Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
#request_id : Int32 | Int64
#
: Int32 | Int64
Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message
#request_id=(request_id : Int32 | Int64)
#
(request_id : Int32 | Int64)
Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message
#request_name=(request_name : Bool?)
#
(request_name : Bool?)
Optional. Pass True to request the users' first and last names
#request_photo=(request_photo : Bool?)
#
(request_photo : Bool?)
Optional. Pass True to request the users' photos
#request_username=(request_username : Bool?)
#
(request_username : Bool?)
Optional. Pass True to request the users' usernames
#user_is_bot=(user_is_bot : Bool?)
#
(user_is_bot : Bool?)
Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.
#user_is_bot? : Bool?
#
: Bool?
Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.
#user_is_premium=(user_is_premium : Bool?)
#
(user_is_premium : Bool?)
Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied.
#user_is_premium? : Bool?
#
: Bool?
Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied.