class
Hamilton::Types::KeyboardButtonRequestUsers
- Hamilton::Types::KeyboardButtonRequestUsers
- Reference
- Object
Overview
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.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/keyboard_button_request_user.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#max_quantity : Int32 | Nil
The maximum number of users to be selected; 1-10.
-
#max_quantity=(max_quantity : Int32 | Nil)
The maximum number of users to be selected; 1-10.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#request_id : Int32
Signed 32-bit identifier of the request that will be received back in the UsersShared object.
-
#request_id=(request_id : Int32)
Signed 32-bit identifier of the request that will be received back in the UsersShared object.
-
#request_name : Bool | Nil
Pass True to request the users' first and last names.
-
#request_name=(request_name : Bool | Nil)
Pass True to request the users' first and last names.
-
#request_photo : Bool | Nil
Pass True to request the users' photos.
-
#request_photo=(request_photo : Bool | Nil)
Pass True to request the users' photos.
-
#request_username : Bool | Nil
Pass True to request the users' usernames.
-
#request_username=(request_username : Bool | Nil)
Pass True to request the users' usernames.
-
#user_is_bot : Bool | Nil
Pass True to request bots, pass False to request regular users.
-
#user_is_bot=(user_is_bot : Bool | Nil)
Pass True to request bots, pass False to request regular users.
-
#user_is_premium : Bool | Nil
Pass True to request premium users, pass False to request non-premium users.
-
#user_is_premium=(user_is_premium : Bool | Nil)
Pass True to request premium users, pass False to request non-premium users.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The maximum number of users to be selected; 1-10. Defaults to 1.
Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message.
Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message.
Pass True to request the users' first and last names.
Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.
Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.