class TD::WebPage

Included Modules

Defined in:

telegram/types/web_page.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(__json : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def animation : TD::Animation? #

def animation=(animation : Nil | TD::Animation) #

def audio : TD::Audio? #

def audio=(audio : Nil | TD::Audio) #

def author : String #

def author=(author : String) #

def description : TD::FormattedText #

def description=(description : TD::FormattedText) #

def display_url : String #

def display_url=(display_url : String) #

def document : TD::Document? #

def document=(document : Nil | TD::Document) #

def duration : Int32 #

def duration=(duration : Int32) #

def embed_height : Int32 #

def embed_height=(embed_height : Int32) #

def embed_type : String #

def embed_type=(embed_type : String) #

def embed_url : String #

def embed_url=(embed_url : String) #

def embed_width : Int32 #

def embed_width=(embed_width : Int32) #

def instant_view_version : Int32 #

def instant_view_version=(instant_view_version : Int32) #

def object_type : String #

def object_type=(object_type : String) #

def photo : TD::Photo? #

def photo=(photo : Nil | TD::Photo) #

def site_name : String #

def site_name=(site_name : String) #

def sticker : TD::Sticker? #

def sticker=(sticker : Nil | TD::Sticker) #

def title : String #

def title=(title : String) #

def type : String #

def type=(type : String) #

def url : String #

def url=(url : String) #

def video : TD::Video? #

def video=(video : Nil | TD::Video) #

def video_note : TD::VideoNote? #

def video_note=(video_note : Nil | TD::VideoNote) #

def voice_note : TD::VoiceNote? #

def voice_note=(voice_note : Nil | TD::VoiceNote) #