class PrivateParlorXT::QueuedMessage

Overview

A queued message ready to be sent to Telegram

Defined in:

private-parlor-xt/relay/queued_message.cr

Constructors

Instance Method Summary

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.


[View source]

Instance Method Detail

def function : MessageProc #

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


[View source]
def origin : MessageID | Array(MessageID) | Nil #

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


[View source]
def receiver : UserID #

User who will receive this QueuedMessage


[View source]
def reply : ReplyParameters | Nil #

Data about the message this QueuedMessage replies to

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


[View source]
def sender : UserID | Nil #

The sender of the message group from which this QueuedMessage originates

Set to nil for system messages


[View source]