Class: Telegram::Bot::Types::SwitchInlineQueryChosenChat

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/switch_inline_query_chosen_chat.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

#allow_bot_chatsBoolean? (readonly)

Returns the value of attribute allow_bot_chats.

Returns:

  • (Boolean, nil)


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

def allow_bot_chats
  @allow_bot_chats
end

#allow_channel_chatsBoolean? (readonly)

Returns the value of attribute allow_channel_chats.

Returns:

  • (Boolean, nil)


12
13
14
# File 'sig/telegram/bot/types/switch_inline_query_chosen_chat.rbs', line 12

def allow_channel_chats
  @allow_channel_chats
end

#allow_group_chatsBoolean? (readonly)

Returns the value of attribute allow_group_chats.

Returns:

  • (Boolean, nil)


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

def allow_group_chats
  @allow_group_chats
end

#allow_user_chatsBoolean? (readonly)

Returns the value of attribute allow_user_chats.

Returns:

  • (Boolean, nil)


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

def allow_user_chats
  @allow_user_chats
end

#queryString? (readonly)

Returns the value of attribute query.

Returns:

  • (String, nil)


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

def query
  @query
end

Class Method Details

.new(query:, allow_user_chats:, allow_bot_chats:, allow_group_chats:, allow_channel_chats:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(query:, allow_user_chats:, allow_bot_chats:, allow_group_chats:, allow_channel_chats:) ⇒ instance

    Parameters:

    • query: (String)
    • allow_user_chats: (Boolean)
    • allow_bot_chats: (Boolean)
    • allow_group_chats: (Boolean)
    • allow_channel_chats: (Boolean)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/switch_inline_query_chosen_chat.rbs', line 6

def self.new: (?query: String, ?allow_user_chats: bool, ?allow_bot_chats: bool, ?allow_group_chats: bool, ?allow_channel_chats: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance