class

PrivateParlorXT::QueuedMessage

Inherits Reference < Object

A queued message ready to be sent to Telegram

Constructors

new(origin : MessageID | Array(MessageID) | Nil, sender : UserID | Nil, receiver : UserID, reply : ReplyParameters | Nil, function : MessageProc)

Creates an instance of QueuedMessage.

Source

Instance methods

function

The proc that will run when this QueuedMessage is ready to be sent

Source
origin

The message ID of the message group that this QueuedMessage originated from

Source
receiver

User who will receive this QueuedMessage

Source
reply

Data about the message this QueuedMessage replies to

Set to nil if this QueuedMessage does not reply to a message

Source
sender

The sender of the message group from which this QueuedMessage originates

Set to nil for system messages

Source