class TD::SponsoredMessage

Included Modules

Defined in:

telegram/types/sponsored_message.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(message_id : Int64, sponsor_chat_id : Int64, link : Union(TD::InternalLinkType, Nil), content : TD::MessageContent) #

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

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

[View source]

Instance Method Detail

def content : TD::MessageContent #

def content=(content : TD::MessageContent) #

def link : TD::InternalLinkType? #

def link=(link : TD::InternalLinkType | Nil) #

def message_id : Int64 #

def message_id=(message_id : Int64) #

def object_type : String #

def object_type=(object_type : String) #