Class: Telegram::Bot::Types::SwitchInlineQueryChosenChat
- Defined in:
- sig/telegram/bot/types/switch_inline_query_chosen_chat.rbs
Instance Attribute Summary collapse
-
#allow_bot_chats ⇒ Boolean?
readonly
Returns the value of attribute allow_bot_chats.
-
#allow_channel_chats ⇒ Boolean?
readonly
Returns the value of attribute allow_channel_chats.
-
#allow_group_chats ⇒ Boolean?
readonly
Returns the value of attribute allow_group_chats.
-
#allow_user_chats ⇒ Boolean?
readonly
Returns the value of attribute allow_user_chats.
-
#query ⇒ String?
readonly
Returns the value of attribute query.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#allow_bot_chats ⇒ Boolean? (readonly)
Returns the value of attribute allow_bot_chats.
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_chats ⇒ Boolean? (readonly)
Returns the value of attribute allow_channel_chats.
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_chats ⇒ Boolean? (readonly)
Returns the value of attribute allow_group_chats.
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_chats ⇒ Boolean? (readonly)
Returns the value of attribute allow_user_chats.
9 10 11 |
# File 'sig/telegram/bot/types/switch_inline_query_chosen_chat.rbs', line 9 def allow_user_chats @allow_user_chats end |
#query ⇒ String? (readonly)
Returns the value of attribute query.
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
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
|