class
TD::PageBlock::EmbeddedPost
- TD::PageBlock::EmbeddedPost
- TD::PageBlock
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/page_block/embedded_post.crConstructors
- .new(url : String, author : String, author_photo : Union(TD::Photo, Nil), date : Int32, page_blocks : Array(TD::PageBlock), caption : TD::PageBlockCaption)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #author : String
- #author=(author : String)
- #author_photo : TD::Photo?
- #author_photo=(author_photo : Nil | TD::Photo)
- #caption : TD::PageBlockCaption
- #caption=(caption : TD::PageBlockCaption)
- #date : Int32
- #date=(date : Int32)
- #object_type : String
- #object_type=(object_type : String)
- #page_blocks : Array(TD::PageBlock)
- #page_blocks=(page_blocks : Array(TD::PageBlock))
- #url : String
- #url=(url : String)
Instance methods inherited from class TD::Base
extract_abstract_type(__json : JSON::Any)
extract_abstract_type,
extract_type(__json : JSON::Any, class_type : Class)
extract_type
Macros inherited from class TD::Base
object_attributes(type)
object_attributes,
object_type(type)
object_type
Constructor Detail
def self.new(url : String, author : String, author_photo : Union(TD::Photo, Nil), date : Int32, page_blocks : Array(TD::PageBlock), caption : TD::PageBlockCaption)
#