struct

Telegram::InputFile

Inherits Struct < Value < Object

Constructors

new(io : IO, filename : String | Nil = nil, content_type : String | Nil = nil)
Source

Class methods

from_data(data : String | Bytes, filename : String, content_type : String | Nil = nil)
Source
from_io(io : IO, filename : String, content_type : String | Nil = nil)
Source
from_path(path : String, filename : String | Nil = nil, content_type : String | Nil = nil)
Source

Instance methods

content_type
Source
filename
Source
to_json(json : JSON::Builder)
Source
write_to(destination : IO)
Source

Nested types