class

Autobot::Channels::TelegramMedia

Inherits Reference < Object

A voice note the sender recorded is their spoken words; files and forwards are content.

Constants

FORWARD_KEYS = ["forward_origin", "forward_from", "forward_from_chat", "forward_sender_name", "forward_date"] of ::String
VOICE_MISSING = "[voice message]"

Constructors

new(fetch : Fetcher, transcriber : Transcriber | Nil = nil, inbox : Media::Inbox | Nil = nil)
Source

Instance methods

extract(msg : JSON::Any, typed_text : Bool) : Tuple(Array(String), Array(Bus::MediaAttachment))
Source
forwarded?(msg : JSON::Any) : Bool
Source

Nested types