struct

Autobot::Bus::InboundMessage

Inherits JSON::Serializable < Struct < Value < Object

Inbound message from a chat channel

Constructors

new(channel : String, sender_id : String, chat_id : String, content : String, timestamp : Time = Time.utc, media : Array(MediaAttachment) | Nil = nil, metadata : Hash(String, String) = {} of String => String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

channel
Source
channel=(channel : String)
Source
chat_id
Source
chat_id=(chat_id : String)
Source
content
Source
content=(content : String)
Source
media=(media : Array(MediaAttachment) | Nil)
Source
media?
Source
metadata
Source
metadata=(metadata : Hash(String, String))
Source
sender_id
Source
sender_id=(sender_id : String)
Source
session_key

Session key for persistence

Source
timestamp
Source
timestamp=(timestamp : Time)
Source
unheard_voice_note?
Source