class Tourmaline::DirectMessagesTopic

Overview

Describes a topic of a direct messages chat.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(topic_id : Int32 | Int64, user : Tourmaline::User | Nil = nil) #

[View source]

Instance Method Detail

def topic_id : Int32 | Int64 #

Unique identifier of the topic. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.


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

Unique identifier of the topic. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.


[View source]
def user : Tourmaline::User | Nil #

Optional. Information about the user that created the topic. Currently, it is always present


[View source]
def user=(user : Tourmaline::User | Nil) #

Optional. Information about the user that created the topic. Currently, it is always present


[View source]