class
TD::WebPage
- TD::WebPage
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/web_page.crConstructors
- .new(url : String, display_url : String, type : String, site_name : String, title : String, description : TD::FormattedText, photo : Union(TD::Photo, Nil), embed_url : String, embed_type : String, embed_width : Int32, embed_height : Int32, duration : Int32, author : String, animation : Union(TD::Animation, Nil), audio : Union(TD::Audio, Nil), document : Union(TD::Document, Nil), sticker : Union(TD::Sticker, Nil), video : Union(TD::Video, Nil), video_note : Union(TD::VideoNote, Nil), voice_note : Union(TD::VoiceNote, Nil), instant_view_version : Int32)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #animation : TD::Animation?
- #animation=(animation : Nil | TD::Animation)
- #audio : TD::Audio?
- #audio=(audio : Nil | TD::Audio)
- #author : String
- #author=(author : String)
- #description : TD::FormattedText
- #description=(description : TD::FormattedText)
- #display_url : String
- #display_url=(display_url : String)
- #document : TD::Document?
- #document=(document : Nil | TD::Document)
- #duration : Int32
- #duration=(duration : Int32)
- #embed_height : Int32
- #embed_height=(embed_height : Int32)
- #embed_type : String
- #embed_type=(embed_type : String)
- #embed_url : String
- #embed_url=(embed_url : String)
- #embed_width : Int32
- #embed_width=(embed_width : Int32)
- #instant_view_version : Int32
- #instant_view_version=(instant_view_version : Int32)
- #object_type : String
- #object_type=(object_type : String)
- #photo : TD::Photo?
- #photo=(photo : Nil | TD::Photo)
- #site_name : String
- #site_name=(site_name : String)
- #sticker : TD::Sticker?
- #sticker=(sticker : Nil | TD::Sticker)
- #title : String
- #title=(title : String)
- #type : String
- #type=(type : String)
- #url : String
- #url=(url : String)
- #video : TD::Video?
- #video=(video : Nil | TD::Video)
- #video_note : TD::VideoNote?
- #video_note=(video_note : Nil | TD::VideoNote)
- #voice_note : TD::VoiceNote?
- #voice_note=(voice_note : Nil | TD::VoiceNote)
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, display_url : String, type : String, site_name : String, title : String, description : TD::FormattedText, photo : Union(TD::Photo, Nil), embed_url : String, embed_type : String, embed_width : Int32, embed_height : Int32, duration : Int32, author : String, animation : Union(TD::Animation, Nil), audio : Union(TD::Audio, Nil), document : Union(TD::Document, Nil), sticker : Union(TD::Sticker, Nil), video : Union(TD::Video, Nil), video_note : Union(TD::VideoNote, Nil), voice_note : Union(TD::VoiceNote, Nil), instant_view_version : Int32)
#