Class: Telegram::Bot::Types::KeyboardButton
- Defined in:
- sig/telegram/bot/types/keyboard_button.rbs
Instance Attribute Summary collapse
-
#icon_custom_emoji_id ⇒ String?
readonly
Returns the value of attribute icon_custom_emoji_id.
-
#request_chat ⇒ KeyboardButtonRequestChat?
readonly
Returns the value of attribute request_chat.
-
#request_contact ⇒ Boolean?
readonly
Returns the value of attribute request_contact.
-
#request_location ⇒ Boolean?
readonly
Returns the value of attribute request_location.
-
#request_managed_bot ⇒ KeyboardButtonRequestManagedBot?
readonly
Returns the value of attribute request_managed_bot.
-
#request_poll ⇒ KeyboardButtonPollType?
readonly
Returns the value of attribute request_poll.
-
#request_users ⇒ KeyboardButtonRequestUsers?
readonly
Returns the value of attribute request_users.
-
#style ⇒ String?
readonly
Returns the value of attribute style.
-
#text ⇒ String
readonly
Returns the value of attribute text.
-
#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
#icon_custom_emoji_id ⇒ String? (readonly)
Returns the value of attribute icon_custom_emoji_id.
9 10 11 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 9 def icon_custom_emoji_id @icon_custom_emoji_id end |
#request_chat ⇒ KeyboardButtonRequestChat? (readonly)
Returns the value of attribute request_chat.
12 13 14 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 12 def request_chat @request_chat end |
#request_contact ⇒ Boolean? (readonly)
Returns the value of attribute request_contact.
14 15 16 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 14 def request_contact @request_contact end |
#request_location ⇒ Boolean? (readonly)
Returns the value of attribute request_location.
15 16 17 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 15 def request_location @request_location end |
#request_managed_bot ⇒ KeyboardButtonRequestManagedBot? (readonly)
Returns the value of attribute request_managed_bot.
13 14 15 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 13 def request_managed_bot @request_managed_bot end |
#request_poll ⇒ KeyboardButtonPollType? (readonly)
Returns the value of attribute request_poll.
16 17 18 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 16 def request_poll @request_poll end |
#request_users ⇒ KeyboardButtonRequestUsers? (readonly)
Returns the value of attribute request_users.
11 12 13 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 11 def request_users @request_users end |
#style ⇒ String? (readonly)
Returns the value of attribute style.
10 11 12 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 10 def style @style end |
#text ⇒ String (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 8 def text @text end |
#web_app ⇒ WebAppInfo? (readonly)
Returns the value of attribute web_app.
17 18 19 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 17 def web_app @web_app end |
Class Method Details
.new(text:, icon_custom_emoji_id:, style:, request_users:, request_chat:, request_managed_bot:, request_contact:, request_location:, request_poll:, web_app:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/keyboard_button.rbs', line 6
def self.new: (text: String, ?icon_custom_emoji_id: String, ?style: String, ?request_users: KeyboardButtonRequestUsers, ?request_chat: KeyboardButtonRequestChat, ?request_managed_bot: KeyboardButtonRequestManagedBot, ?request_contact: bool, ?request_location: bool, ?request_poll: KeyboardButtonPollType, ?web_app: WebAppInfo) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|