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

#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

#target_chatTD::Types::TargetChat

Target chat from which to send the inline query.

Returns:



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

def target_chat
  @target_chat
end