Class: Telegram::Bot::Types::User
- Defined in:
- sig/telegram/bot/types/user.rbs
Instance Attribute Summary collapse
-
#added_to_attachment_menu ⇒ true?
readonly
Returns the value of attribute added_to_attachment_menu.
-
#allows_users_to_create_topics ⇒ Boolean?
readonly
Returns the value of attribute allows_users_to_create_topics.
-
#can_connect_to_business ⇒ Boolean?
readonly
Returns the value of attribute can_connect_to_business.
-
#can_join_groups ⇒ Boolean?
readonly
Returns the value of attribute can_join_groups.
-
#can_manage_bots ⇒ Boolean?
readonly
Returns the value of attribute can_manage_bots.
-
#can_read_all_group_messages ⇒ Boolean?
readonly
Returns the value of attribute can_read_all_group_messages.
-
#first_name ⇒ String
readonly
Returns the value of attribute first_name.
-
#has_main_web_app ⇒ Boolean?
readonly
Returns the value of attribute has_main_web_app.
-
#has_topics_enabled ⇒ Boolean?
readonly
Returns the value of attribute has_topics_enabled.
-
#id ⇒ Integer
readonly
Returns the value of attribute id.
-
#is_bot ⇒ Boolean
readonly
Returns the value of attribute is_bot.
-
#is_premium ⇒ true?
readonly
Returns the value of attribute is_premium.
-
#language_code ⇒ String?
readonly
Returns the value of attribute language_code.
-
#last_name ⇒ String?
readonly
Returns the value of attribute last_name.
-
#supports_inline_queries ⇒ Boolean?
readonly
Returns the value of attribute supports_inline_queries.
-
#username ⇒ String?
readonly
Returns the value of attribute username.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#added_to_attachment_menu ⇒ true? (readonly)
Returns the value of attribute added_to_attachment_menu.
15 16 17 |
# File 'sig/telegram/bot/types/user.rbs', line 15 def @added_to_attachment_menu end |
#allows_users_to_create_topics ⇒ Boolean? (readonly)
Returns the value of attribute allows_users_to_create_topics.
22 23 24 |
# File 'sig/telegram/bot/types/user.rbs', line 22 def allows_users_to_create_topics @allows_users_to_create_topics end |
#can_connect_to_business ⇒ Boolean? (readonly)
Returns the value of attribute can_connect_to_business.
19 20 21 |
# File 'sig/telegram/bot/types/user.rbs', line 19 def can_connect_to_business @can_connect_to_business end |
#can_join_groups ⇒ Boolean? (readonly)
Returns the value of attribute can_join_groups.
16 17 18 |
# File 'sig/telegram/bot/types/user.rbs', line 16 def can_join_groups @can_join_groups end |
#can_manage_bots ⇒ Boolean? (readonly)
Returns the value of attribute can_manage_bots.
23 24 25 |
# File 'sig/telegram/bot/types/user.rbs', line 23 def can_manage_bots @can_manage_bots end |
#can_read_all_group_messages ⇒ Boolean? (readonly)
Returns the value of attribute can_read_all_group_messages.
17 18 19 |
# File 'sig/telegram/bot/types/user.rbs', line 17 def @can_read_all_group_messages end |
#first_name ⇒ String (readonly)
Returns the value of attribute first_name.
10 11 12 |
# File 'sig/telegram/bot/types/user.rbs', line 10 def first_name @first_name end |
#has_main_web_app ⇒ Boolean? (readonly)
Returns the value of attribute has_main_web_app.
20 21 22 |
# File 'sig/telegram/bot/types/user.rbs', line 20 def has_main_web_app @has_main_web_app end |
#has_topics_enabled ⇒ Boolean? (readonly)
Returns the value of attribute has_topics_enabled.
21 22 23 |
# File 'sig/telegram/bot/types/user.rbs', line 21 def has_topics_enabled @has_topics_enabled end |
#id ⇒ Integer (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'sig/telegram/bot/types/user.rbs', line 8 def id @id end |
#is_bot ⇒ Boolean (readonly)
Returns the value of attribute is_bot.
9 10 11 |
# File 'sig/telegram/bot/types/user.rbs', line 9 def is_bot @is_bot end |
#is_premium ⇒ true? (readonly)
Returns the value of attribute is_premium.
14 15 16 |
# File 'sig/telegram/bot/types/user.rbs', line 14 def is_premium @is_premium end |
#language_code ⇒ String? (readonly)
Returns the value of attribute language_code.
13 14 15 |
# File 'sig/telegram/bot/types/user.rbs', line 13 def language_code @language_code end |
#last_name ⇒ String? (readonly)
Returns the value of attribute last_name.
11 12 13 |
# File 'sig/telegram/bot/types/user.rbs', line 11 def last_name @last_name end |
#supports_inline_queries ⇒ Boolean? (readonly)
Returns the value of attribute supports_inline_queries.
18 19 20 |
# File 'sig/telegram/bot/types/user.rbs', line 18 def supports_inline_queries @supports_inline_queries end |
#username ⇒ String? (readonly)
Returns the value of attribute username.
12 13 14 |
# File 'sig/telegram/bot/types/user.rbs', line 12 def username @username end |
Class Method Details
.new(id:, is_bot:, first_name:, last_name:, username:, language_code:, is_premium:, added_to_attachment_menu:, can_join_groups:, can_read_all_group_messages:, supports_inline_queries:, can_connect_to_business:, has_main_web_app:, has_topics_enabled:, allows_users_to_create_topics:, can_manage_bots:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/user.rbs', line 6
def self.new: (id: Integer, is_bot: bool, first_name: String, ?last_name: String, ?username: String, ?language_code: String, ?is_premium: true, ?added_to_attachment_menu: true, ?can_join_groups: bool, ?can_read_all_group_messages: bool, ?supports_inline_queries: bool, ?can_connect_to_business: bool, ?has_main_web_app: bool, ?has_topics_enabled: bool, ?allows_users_to_create_topics: bool, ?can_manage_bots: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|