class
TelegramBot::RichBlockListItem
- TelegramBot::RichBlockListItem
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/rich_block.crConstructors
- .new(label : String, blocks : Array(RichBlock), *, has_checkbox : Bool | Nil = nil, is_checked : Bool | Nil = nil, value : Int32 | Nil = nil, type : String | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #blocks : Array(RichBlock)
- #blocks=(blocks : Array(RichBlock))
- #has_checkbox=(has_checkbox : Bool | Nil)
- #has_checkbox? : Bool | Nil
- #is_checked=(is_checked : Bool | Nil)
- #is_checked? : Bool | Nil
- #label : String
- #label=(label : String)
- #type : String | Nil
- #type=(type : String | Nil)
- #value : Int32 | Nil
- #value=(value : Int32 | Nil)
Constructor Detail
def self.new(label : String, blocks : Array(RichBlock), *, has_checkbox : Bool | Nil = nil, is_checked : Bool | Nil = nil, value : Int32 | Nil = nil, type : String | Nil = nil)
#