class TelegramBot::InputMediaDocument

Included Modules

Defined in:

telegram_bot/types/input_media_document.cr

Constructors

Instance Method Summary

Instance methods inherited from class TelegramBot::InputMedia

to_json(json : JSON::Builder) to_json

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(media : String | AttachedFile, *, thumbnail : String | AttachedFile | Nil = nil, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, disable_content_type_detection : Bool | Nil = nil) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Instance Method Detail

def caption : String | Nil #

def caption=(caption : String | Nil) #

def caption_entities : Array(MessageEntity) | Nil #

def caption_entities=(caption_entities : Array(MessageEntity) | Nil) #

def collect_attachments(attachments : Hash(String, String | ::File)) : Nil #

def disable_content_type_detection=(disable_content_type_detection : Bool | Nil) #

def disable_content_type_detection? : Bool | Nil #

def media : String | AttachedFile #

def media=(media : String | AttachedFile) #

def parse_mode : String | Nil #

def parse_mode=(parse_mode : String | Nil) #

def thumbnail : String | AttachedFile | Nil #

def thumbnail=(thumbnail : String | AttachedFile | Nil) #

def type : String #

def type=(type : String) #