class Tourmaline::MessageOriginChannel

Overview

The message was originally sent to a channel chat.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, date : Time, chat : Tourmaline::Chat, message_id : Int32 | Int64, author_signature : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def author_signature : String | Nil #

Optional. Signature of the original post author


[View source]
def author_signature=(author_signature : String | Nil) #

Optional. Signature of the original post author


[View source]
def chat : Tourmaline::Chat #

Channel chat to which the message was originally sent


[View source]
def chat=(chat : Tourmaline::Chat) #

Channel chat to which the message was originally sent


[View source]
def date : Time #

[View source]
def date=(date : Time) #

[View source]
def message_id : Int32 | Int64 #

Unique message identifier inside the chat


[View source]
def message_id=(message_id : Int32 | Int64) #

Unique message identifier inside the chat


[View source]
def type : String #

Type of the message origin, always "channel"


[View source]
def type=(type : String) #

Type of the message origin, always "channel"


[View source]