Class: TD::Types::InlineKeyboardButtonType::SwitchInline

Inherits:
TD::Types::InlineKeyboardButtonType show all
Defined in:
lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb

Overview

A button that forces an inline query to the bot to be inserted in the input field.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#in_current_chatBoolean

True, if the inline query should be sent from the current chat.

Returns:

  • (Boolean)

    the current value of in_current_chat



6
7
8
# File 'lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb', line 6

def in_current_chat
  @in_current_chat
end

#queryTD::Types::String

Inline query to be sent to the bot.

Returns:

  • (TD::Types::String)

    the current value of query



6
7
8
# File 'lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb', line 6

def query
  @query
end