Class: Telegram::Bot::Types::BotCommandScopeChatMember
- Defined in:
- sig/telegram/bot/types/bot_command_scope_chat_member.rbs
Instance Attribute Summary collapse
-
#chat_id ⇒ Integer, String
readonly
Returns the value of attribute chat_id.
-
#type ⇒ String
readonly
Returns the value of attribute type.
-
#user_id ⇒ Integer
readonly
Returns the value of attribute user_id.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#chat_id ⇒ Integer, String (readonly)
Returns the value of attribute chat_id.
9 10 11 |
# File 'sig/telegram/bot/types/bot_command_scope_chat_member.rbs', line 9 def chat_id @chat_id end |
#type ⇒ String (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/telegram/bot/types/bot_command_scope_chat_member.rbs', line 8 def type @type end |
#user_id ⇒ Integer (readonly)
Returns the value of attribute user_id.
10 11 12 |
# File 'sig/telegram/bot/types/bot_command_scope_chat_member.rbs', line 10 def user_id @user_id end |
Class Method Details
.new(type:, chat_id:, user_id:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/bot_command_scope_chat_member.rbs', line 6
def self.new: (?type: String, chat_id: (Integer | String), user_id: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|