class Hamilton::Types::Chat

Overview

This object represents a chat.

Included Modules

Defined in:

types/chat.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

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

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def first_name : String | Nil #

First name of the other party in a private chat.


def first_name=(first_name : String | Nil) #

First name of the other party in a private chat.


def id : Int64 #

Unique identifier for this chat.


def id=(id : Int64) #

Unique identifier for this chat.


def is_direct_messaegs : Bool | Nil #

True, if the chat is the direct messages chat of a channel.


def is_direct_messaegs=(is_direct_messaegs : Bool | Nil) #

True, if the chat is the direct messages chat of a channel.


def is_forum : Bool | Nil #

True, if the supergroup chat is a forum (has topics enabled).


def is_forum=(is_forum : Bool | Nil) #

True, if the supergroup chat is a forum (has topics enabled).


def last_name : String | Nil #

Last name of the other party in a private chat.


def last_name=(last_name : String | Nil) #

Last name of the other party in a private chat.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def title : String | Nil #

Title, for supergroups, channels and group chats.


def title=(title : String | Nil) #

Title, for supergroups, channels and group chats.


def type : String #

Type of the chat, can be either “private”, “group”, “supergroup” or “channel”.


def type=(type : String) #

Type of the chat, can be either “private”, “group”, “supergroup” or “channel”.


def username : String | Nil #

Username, for private chats, supergroups and channels if available.


def username=(username : String | Nil) #

Username, for private chats, supergroups and channels if available.