struct

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

caption
caption_entities
clone
Source
contains_file_data?
Source
copy_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)
Source
disable_content_type_detection
media
parse_mode
thumbnail
type