Class: TD::Types::BusinessConnection

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/business_connection.rb

Overview

Describes a connection of the bot with a business account.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_replyBoolean

True, if the bot can send messages to the connected user; false otherwise.

Returns:

  • (Boolean)

    the current value of can_reply



10
11
12
# File 'lib/tdlib/types/business_connection.rb', line 10

def can_reply
  @can_reply
end

#dateInteger

Point in time (Unix timestamp) when the connection was established.

Returns:

  • (Integer)

    the current value of date



10
11
12
# File 'lib/tdlib/types/business_connection.rb', line 10

def date
  @date
end

#idTD::Types::String

Unique identifier of the connection.

Returns:

  • (TD::Types::String)

    the current value of id



10
11
12
# File 'lib/tdlib/types/business_connection.rb', line 10

def id
  @id
end

#is_enabledBoolean

True, if the connection is enabled; false otherwise.

Returns:

  • (Boolean)

    the current value of is_enabled



10
11
12
# File 'lib/tdlib/types/business_connection.rb', line 10

def is_enabled
  @is_enabled
end

#user_chat_idInteger

Chat identifier of the private chat with the user.

Returns:

  • (Integer)

    the current value of user_chat_id



10
11
12
# File 'lib/tdlib/types/business_connection.rb', line 10

def user_chat_id
  @user_chat_id
end

#user_idInteger

Identifier of the business user that created the connection.

Returns:

  • (Integer)

    the current value of user_id



10
11
12
# File 'lib/tdlib/types/business_connection.rb', line 10

def user_id
  @user_id
end