Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
io
Source
to_json
(json :
JSON::Builder
)
Source
write_to
(destination :
IO
)
Source
Nested types
Telegram::InputFile::JSONConverter