class PrivateParlorXT::QueuedMessage
- PrivateParlorXT::QueuedMessage
- Reference
- Object
Overview
A queued message ready to be sent to Telegram
Defined in:
private-parlor-xt/relay/queued_message.crConstructors
-
.new(origin : MessageID | Array(MessageID) | Nil, sender : UserID | Nil, receiver : UserID, reply : ReplyParameters | Nil, function : MessageProc)
Creates an instance of
QueuedMessage.
Instance Method Summary
-
#function : MessageProc
The proc that will run when this
QueuedMessageis ready to be sent -
#origin : MessageID | Array(MessageID) | Nil
The message ID of the message group that this
QueuedMessageoriginated from -
#receiver : UserID
User who will receive this
QueuedMessage -
#reply : ReplyParameters | Nil
Data about the message this
QueuedMessagereplies to -
#sender : UserID | Nil
The sender of the message group from which this
QueuedMessageoriginates
Constructor Detail
def self.new(origin : MessageID | Array(MessageID) | Nil, sender : UserID | Nil, receiver : UserID, reply : ReplyParameters | Nil, function : MessageProc)
#
Creates an instance of QueuedMessage.
Instance Method Detail
The message ID of the message group that this QueuedMessage originated from
def reply : ReplyParameters | Nil
#
Data about the message this QueuedMessage replies to
Set to nil if this QueuedMessage does not reply to a message
The sender of the message group from which this QueuedMessage originates
Set to nil for system messages