Telegram::InputMediaDocument
Inherits Telegram::InputMediaFileDetection < JSON::Serializable < Struct < Value < Object
Telegram API type: InputMediaDocument Represents a general file to be sent.
Constructors
new(type : String, media : String | InputFile, thumbnail : String | InputFile | Nil = nil, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, disable_content_type_detection : Bool | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
caption
caption_entities
clone
Sourcecontains_file_data?
Sourcecopy_with(type _type = @type, media _media = @media, thumbnail _thumbnail = @thumbnail, caption _caption = @caption, parse_mode _parse_mode = @parse_mode, caption_entities _caption_entities = @caption_entities, disable_content_type_detection _disable_content_type_detection = @disable_content_type_detection)
Sourcedisable_content_type_detection
media
parse_mode
thumbnail
type