class
TelegramBot::RichBlockPhoto
- TelegramBot::RichBlockPhoto
- TelegramBot::RichBlock
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/rich_block.crConstructors
- .new(pull : JSON::PullParser)
- .new(photo : Array(PhotoSize), *, has_spoiler : Bool | Nil = nil, caption : RichBlockCaption | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #caption : RichBlockCaption | Nil
- #caption=(caption : RichBlockCaption | Nil)
- #has_spoiler=(has_spoiler : Bool | Nil)
- #has_spoiler? : Bool | Nil
- #photo : Array(PhotoSize)
- #photo=(photo : Array(PhotoSize))
- #type : String
- #type=(type : String)
Instance methods inherited from class TelegramBot::RichBlock
type : String
type,
type=(type : String)
type=
Constructor methods inherited from class TelegramBot::RichBlock
new(pull : JSON::PullParser)new(*, __pull_for_json_serializable pull : JSON::PullParser) new
Constructor Detail
def self.new(photo : Array(PhotoSize), *, has_spoiler : Bool | Nil = nil, caption : RichBlockCaption | Nil = nil)
#