struct

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

Instance methods

data
Source
data=(data : String | Nil)
Source
duration_seconds
Source
duration_seconds=(duration_seconds : Int32 | Nil)
Source
file_path
Source
file_path=(file_path : String | Nil)
Source
mime_type
Source
mime_type=(mime_type : String | Nil)
Source
name
Source
name=(name : String | Nil)
Source
origin
Source
origin=(origin : String)
Source
sender_voice_note?
Source
size_bytes
Source
size_bytes=(size_bytes : Int64 | Nil)
Source
transcribed=(transcribed : Bool)
Source
transcribed?
Source
transcript
Source
transcript=(transcript : String | Nil)
Source
transcript_path
Source
transcript_path=(transcript_path : String | Nil)
Source
type
Source
type=(type : String)
Source
url=(url : String | Nil)
Source