class QueuedMessage

Defined in:

privateparlor/queue/queued_message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(origin_msid : Int64 | Array(Int64) | Nil, sender : Int64 | Nil, receiver : Int64, reply_to : Int64 | Nil, function : MessageProc) #

Creates an instance of QueuedMessage.

Arguments:

hash : a hashcode that refers to the associated MessageGroup stored in the message history.

#sender : the ID of the user who sent this message.

receiver_id : the ID of the user who will receive this message.

reply_msid : the MSID of a message to reply to. May be nil if this message isn't a reply.

#function : a proc that points to a Tourmaline CoreMethod send function and takes a user ID and MSID as its arguments


[View source]

Instance Method Detail

def function : MessageProc #

[View source]
def origin_msid : Int64 | Array(Int64) | Nil #

[View source]
def receiver : Int64 #

[View source]
def reply_to : Int64 | Nil #

[View source]
def sender : Int64 | Nil #

[View source]