Class: Telegram::Bot::Types::InlineKeyboardButton
- Defined in:
- sig/telegram/bot/types/inline_keyboard_button.rbs
Instance Attribute Summary collapse
-
#callback_data ⇒ String?
readonly
Returns the value of attribute callback_data.
-
#callback_game ⇒ CallbackGame?
readonly
Returns the value of attribute callback_game.
-
#copy_text ⇒ CopyTextButton?
readonly
Returns the value of attribute copy_text.
-
#icon_custom_emoji_id ⇒ String?
readonly
Returns the value of attribute icon_custom_emoji_id.
-
#login_url ⇒ LoginUrl?
readonly
Returns the value of attribute login_url.
-
#pay ⇒ Boolean?
readonly
Returns the value of attribute pay.
-
#style ⇒ String?
readonly
Returns the value of attribute style.
-
#switch_inline_query ⇒ String?
readonly
Returns the value of attribute switch_inline_query.
-
#switch_inline_query_chosen_chat ⇒ SwitchInlineQueryChosenChat?
readonly
Returns the value of attribute switch_inline_query_chosen_chat.
-
#switch_inline_query_current_chat ⇒ String?
readonly
Returns the value of attribute switch_inline_query_current_chat.
-
#text ⇒ String
readonly
Returns the value of attribute text.
-
#url ⇒ String?
readonly
Returns the value of attribute url.
-
#web_app ⇒ WebAppInfo?
readonly
Returns the value of attribute web_app.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#callback_data ⇒ String? (readonly)
Returns the value of attribute callback_data.
12 13 14 |
# File 'sig/telegram/bot/types/inline_keyboard_button.rbs', line 12 def callback_data @callback_data end |
#callback_game ⇒ CallbackGame? (readonly)
Returns the value of attribute callback_game.
19 20 21 |
# File 'sig/telegram/bot/types/inline_keyboard_button.rbs', line 19 def callback_game @callback_game end |
#copy_text ⇒ CopyTextButton? (readonly)
Returns the value of attribute copy_text.
18 19 20 |
# File 'sig/telegram/bot/types/inline_keyboard_button.rbs', line 18 def copy_text @copy_text end |
#icon_custom_emoji_id ⇒ String? (readonly)
Returns the value of attribute icon_custom_emoji_id.
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_url ⇒ LoginUrl? (readonly)
Returns the value of attribute login_url.
14 15 16 |
# File 'sig/telegram/bot/types/inline_keyboard_button.rbs', line 14 def login_url @login_url end |
#pay ⇒ Boolean? (readonly)
Returns the value of attribute pay.
20 21 22 |
# File 'sig/telegram/bot/types/inline_keyboard_button.rbs', line 20 def pay @pay end |
#style ⇒ String? (readonly)
Returns the value of attribute style.
10 11 12 |
# File 'sig/telegram/bot/types/inline_keyboard_button.rbs', line 10 def style @style end |
#switch_inline_query ⇒ String? (readonly)
Returns the value of attribute switch_inline_query.
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_chat ⇒ SwitchInlineQueryChosenChat? (readonly)
Returns the value of attribute switch_inline_query_chosen_chat.
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_chat ⇒ String? (readonly)
Returns the value of attribute switch_inline_query_current_chat.
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 |
#text ⇒ String (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'sig/telegram/bot/types/inline_keyboard_button.rbs', line 8 def text @text end |
#url ⇒ String? (readonly)
Returns the value of attribute url.
11 12 13 |
# File 'sig/telegram/bot/types/inline_keyboard_button.rbs', line 11 def url @url end |
#web_app ⇒ WebAppInfo? (readonly)
Returns the value of attribute web_app.
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
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
|