Class: TD::Types::KeyboardButtonType::RequestUsers
- Inherits:
-
TD::Types::KeyboardButtonType
- Object
- Dry::Struct
- Base
- TD::Types::KeyboardButtonType
- TD::Types::KeyboardButtonType::RequestUsers
- Defined in:
- lib/tdlib/types/keyboard_button_type/request_users.rb
Overview
A button that requests users to be shared by the current user; available only in private chats. Use the method shareUsersWithBot to complete the request.
Instance Attribute Summary collapse
-
#id ⇒ Integer
Unique button identifier.
-
#max_quantity ⇒ Integer
The maximum number of users to share.
-
#request_name ⇒ Boolean
Pass true to request name of the users; bots only.
-
#request_photo ⇒ Boolean
Pass true to request photo of the users; bots only.
-
#request_username ⇒ Boolean
Pass true to request username of the users; bots only.
-
#restrict_user_is_bot ⇒ Boolean
True, if the shared users must or must not be bots.
-
#restrict_user_is_premium ⇒ Boolean
True, if the shared users must or must not be Telegram Premium users.
-
#user_is_bot ⇒ Boolean
True, if the shared users must be bots; otherwise, the shared users must not be bots.
-
#user_is_premium ⇒ Boolean
True, if the shared users must be Telegram Premium users; otherwise, the shared users must not be Telegram Premium users.
Method Summary
Methods inherited from Base
Instance Attribute Details
#id ⇒ Integer
Unique button identifier.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def id @id end |
#max_quantity ⇒ Integer
The maximum number of users to share.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def max_quantity @max_quantity end |
#request_name ⇒ Boolean
Pass true to request name of the users; bots only.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def request_name @request_name end |
#request_photo ⇒ Boolean
Pass true to request photo of the users; bots only.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def request_photo @request_photo end |
#request_username ⇒ Boolean
Pass true to request username of the users; bots only.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def request_username @request_username end |
#restrict_user_is_bot ⇒ Boolean
True, if the shared users must or must not be bots.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def restrict_user_is_bot @restrict_user_is_bot end |
#restrict_user_is_premium ⇒ Boolean
True, if the shared users must or must not be Telegram Premium users.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def restrict_user_is_premium @restrict_user_is_premium end |
#user_is_bot ⇒ Boolean
True, if the shared users must be bots; otherwise, the shared users must not be bots. Ignored if restrict_user_is_bot is false.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def user_is_bot @user_is_bot end |
#user_is_premium ⇒ Boolean
True, if the shared users must be Telegram Premium users; otherwise, the shared users must not be Telegram Premium users. Ignored if restrict_user_is_premium is false.
17 18 19 |
# File 'lib/tdlib/types/keyboard_button_type/request_users.rb', line 17 def user_is_premium @user_is_premium end |