class Hamilton::Types::BusinessConnection

Overview

Describes the connection of the bot with a business account.

Included Modules

Defined in:

types/business_connection.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 date : Int32 #

Date the connection was established in Unix time.


def date=(date : Int32) #

Date the connection was established in Unix time.


def id : String #

Unique identifier of the business connection.


def id=(id : String) #

Unique identifier of the business connection.


def is_enabled : Bool #

True, if the connection is active.


def is_enabled=(is_enabled : Bool) #

True, if the connection is active.


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.


Rights of the business bot.


def rights=(rights : Hamilton::Types::BusinessBotRights) #

Rights of the business bot.


Business account user that created the business connection.


def user=(user : Hamilton::Types::User) #

Business account user that created the business connection.


def user_chat_id : Int64 #

Identifier of a private chat with the user who created the business connection.


def user_chat_id=(user_chat_id : Int64) #

Identifier of a private chat with the user who created the business connection.