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
Constructors
new(request_id :
Int32 |
Int64, user_is_bot :
Bool |
Nil = nil, user_is_premium :
Bool |
Nil = nil, max_quantity :
Int32 |
Int64 |
Nil = nil, request_name :
Bool |
Nil = nil, request_username :
Bool |
Nil = nil, request_photo :
Bool |
Nil = nil)
SourceInstance methods
max_quantity
Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
SourceOptional. The maximum number of users to be selected; 1-10. Defaults to 1.
Sourcerequest_id
Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message
SourceSigned 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message
Sourcerequest_name=(request_name :
Bool |
Nil)
Optional. Pass True to request the users' first and last names
Sourcerequest_name?
Optional. Pass True to request the users' first and last names
Sourcerequest_photo=(request_photo :
Bool |
Nil)
Optional. Pass True to request the users' photos
Sourcerequest_photo?
Optional. Pass True to request the users' photos
Sourcerequest_username=(request_username :
Bool |
Nil)
Optional. Pass True to request the users' usernames
Sourcerequest_username?
Optional. Pass True to request the users' usernames
Sourceuser_is_bot=(user_is_bot :
Bool |
Nil)
Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.
Sourceuser_is_bot?
Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.
Sourceuser_is_premium=(user_is_premium :
Bool |
Nil)
Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied.
Sourceuser_is_premium?
Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied.
Source