Autobot::Bus::MediaAttachment
Inherits JSON::Serializable < Struct < Value < Object
Media attachment (photo, voice, document, etc.)
Constants
ORIGIN_FORWARDED = "forwarded"
ORIGIN_SENDER = "sender"
TYPE_AUDIO = "audio"
TYPE_DOCUMENT = "document"
TYPE_PHOTO = "photo"
TYPE_VOICE = "voice"
Constructors
new(pull : JSON::PullParser)
Sourcenew(type : String, url : String | Nil = nil, file_path : String | Nil = nil, mime_type : String | Nil = nil, size_bytes : Int64 | Nil = nil, data : String | Nil = nil, origin : String = ORIGIN_SENDER, transcript : String | Nil = nil, transcript_path : String | Nil = nil, transcribed : Bool = !transcript.nil?, duration_seconds : Int32 | Nil = nil, name : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
data
Sourceduration_seconds
Sourcefile_path
Sourcemime_type
Sourcename
Sourceorigin
Sourcesender_voice_note?
Sourcesize_bytes
Sourcetranscribed?
Sourcetranscript
Sourcetranscript_path
Sourcetype
Sourceurl
Source