Class: Telegram::Bot::Types::User

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/user.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#added_to_attachment_menutrue? (readonly)

Returns the value of attribute added_to_attachment_menu.

Returns:

  • (true, nil)


15
16
17
# File 'sig/telegram/bot/types/user.rbs', line 15

def added_to_attachment_menu
  @added_to_attachment_menu
end

#allows_users_to_create_topicsBoolean? (readonly)

Returns the value of attribute allows_users_to_create_topics.

Returns:

  • (Boolean, nil)


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_businessBoolean? (readonly)

Returns the value of attribute can_connect_to_business.

Returns:

  • (Boolean, nil)


19
20
21
# File 'sig/telegram/bot/types/user.rbs', line 19

def can_connect_to_business
  @can_connect_to_business
end

#can_join_groupsBoolean? (readonly)

Returns the value of attribute can_join_groups.

Returns:

  • (Boolean, nil)


16
17
18
# File 'sig/telegram/bot/types/user.rbs', line 16

def can_join_groups
  @can_join_groups
end

#can_manage_botsBoolean? (readonly)

Returns the value of attribute can_manage_bots.

Returns:

  • (Boolean, nil)


23
24
25
# File 'sig/telegram/bot/types/user.rbs', line 23

def can_manage_bots
  @can_manage_bots
end

#can_read_all_group_messagesBoolean? (readonly)

Returns the value of attribute can_read_all_group_messages.

Returns:

  • (Boolean, nil)


17
18
19
# File 'sig/telegram/bot/types/user.rbs', line 17

def can_read_all_group_messages
  @can_read_all_group_messages
end

#first_nameString (readonly)

Returns the value of attribute first_name.

Returns:

  • (String)


10
11
12
# File 'sig/telegram/bot/types/user.rbs', line 10

def first_name
  @first_name
end

#has_main_web_appBoolean? (readonly)

Returns the value of attribute has_main_web_app.

Returns:

  • (Boolean, nil)


20
21
22
# File 'sig/telegram/bot/types/user.rbs', line 20

def has_main_web_app
  @has_main_web_app
end

#has_topics_enabledBoolean? (readonly)

Returns the value of attribute has_topics_enabled.

Returns:

  • (Boolean, nil)


21
22
23
# File 'sig/telegram/bot/types/user.rbs', line 21

def has_topics_enabled
  @has_topics_enabled
end

#idInteger (readonly)

Returns the value of attribute id.

Returns:

  • (Integer)


8
9
10
# File 'sig/telegram/bot/types/user.rbs', line 8

def id
  @id
end

#is_botBoolean (readonly)

Returns the value of attribute is_bot.

Returns:

  • (Boolean)


9
10
11
# File 'sig/telegram/bot/types/user.rbs', line 9

def is_bot
  @is_bot
end

#is_premiumtrue? (readonly)

Returns the value of attribute is_premium.

Returns:

  • (true, nil)


14
15
16
# File 'sig/telegram/bot/types/user.rbs', line 14

def is_premium
  @is_premium
end

#language_codeString? (readonly)

Returns the value of attribute language_code.

Returns:

  • (String, nil)


13
14
15
# File 'sig/telegram/bot/types/user.rbs', line 13

def language_code
  @language_code
end

#last_nameString? (readonly)

Returns the value of attribute last_name.

Returns:

  • (String, nil)


11
12
13
# File 'sig/telegram/bot/types/user.rbs', line 11

def last_name
  @last_name
end

#supports_inline_queriesBoolean? (readonly)

Returns the value of attribute supports_inline_queries.

Returns:

  • (Boolean, nil)


18
19
20
# File 'sig/telegram/bot/types/user.rbs', line 18

def supports_inline_queries
  @supports_inline_queries
end

#usernameString? (readonly)

Returns the value of attribute username.

Returns:

  • (String, nil)


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

Overloads:

  • .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

    Parameters:

    • id: (Integer)
    • is_bot: (Boolean)
    • first_name: (String)
    • last_name: (String)
    • username: (String)
    • language_code: (String)
    • is_premium: (true)
    • added_to_attachment_menu: (true)
    • can_join_groups: (Boolean)
    • can_read_all_group_messages: (Boolean)
    • supports_inline_queries: (Boolean)
    • can_connect_to_business: (Boolean)
    • has_main_web_app: (Boolean)
    • has_topics_enabled: (Boolean)
    • allows_users_to_create_topics: (Boolean)
    • can_manage_bots: (Boolean)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (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