Class: Telegram::Bot::Types::InlineKeyboardButton

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

#callback_dataString? (readonly)

Returns the value of attribute callback_data.

Returns:

  • (String, nil)


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

def callback_data
  @callback_data
end

#callback_gameCallbackGame? (readonly)

Returns the value of attribute callback_game.

Returns:



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

def callback_game
  @callback_game
end

#copy_textCopyTextButton? (readonly)

Returns the value of attribute copy_text.

Returns:



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

def copy_text
  @copy_text
end

#icon_custom_emoji_idString? (readonly)

Returns the value of attribute icon_custom_emoji_id.

Returns:

  • (String, nil)


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

def icon_custom_emoji_id
  @icon_custom_emoji_id
end

#login_urlLoginUrl? (readonly)

Returns the value of attribute login_url.

Returns:



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

def 
  @login_url
end

#payBoolean? (readonly)

Returns the value of attribute pay.

Returns:

  • (Boolean, nil)


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

def pay
  @pay
end

#styleString? (readonly)

Returns the value of attribute style.

Returns:

  • (String, nil)


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

def style
  @style
end

#switch_inline_queryString? (readonly)

Returns the value of attribute switch_inline_query.

Returns:

  • (String, nil)


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

def switch_inline_query
  @switch_inline_query
end

#switch_inline_query_chosen_chatSwitchInlineQueryChosenChat? (readonly)

Returns the value of attribute switch_inline_query_chosen_chat.

Returns:



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

def switch_inline_query_chosen_chat
  @switch_inline_query_chosen_chat
end

#switch_inline_query_current_chatString? (readonly)

Returns the value of attribute switch_inline_query_current_chat.

Returns:

  • (String, nil)


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

def switch_inline_query_current_chat
  @switch_inline_query_current_chat
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


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

def text
  @text
end

#urlString? (readonly)

Returns the value of attribute url.

Returns:

  • (String, nil)


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

def url
  @url
end

#web_appWebAppInfo? (readonly)

Returns the value of attribute web_app.

Returns:



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

def web_app
  @web_app
end

Class Method Details

.new(text:, icon_custom_emoji_id:, style:, url:, callback_data:, web_app:, login_url:, switch_inline_query:, switch_inline_query_current_chat:, switch_inline_query_chosen_chat:, copy_text:, callback_game:, pay:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(text:, icon_custom_emoji_id:, style:, url:, callback_data:, web_app:, login_url:, switch_inline_query:, switch_inline_query_current_chat:, switch_inline_query_chosen_chat:, copy_text:, callback_game:, pay:) ⇒ instance

    Parameters:

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (text: String, ?icon_custom_emoji_id: String, ?style: String, ?url: String, ?callback_data: String, ?web_app: WebAppInfo, ?login_url: LoginUrl, ?switch_inline_query: String, ?switch_inline_query_current_chat: String, ?switch_inline_query_chosen_chat: SwitchInlineQueryChosenChat, ?copy_text: CopyTextButton, ?callback_game: CallbackGame, ?pay: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance