struct

Autobot::Bus::OutboundMessage

Inherits JSON::Serializable < Struct < Value < Object

Outbound message to send via a channel

Constructors

new(channel : String, chat_id : String, content : String, reply_to : String | Nil = nil, 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
reply_to=(reply_to : String | Nil)
Source
reply_to?
Source