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
QueuedMessage
is ready to be sent -
#origin : MessageID | Array(MessageID) | Nil
The message ID of the message group that this
QueuedMessage
originated from -
#receiver : UserID
User who will receive this
QueuedMessage
-
#reply : ReplyParameters | Nil
Data about the message this
QueuedMessage
replies to -
#sender : UserID | Nil
The sender of the message group from which this
QueuedMessage
originates
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