Class: TD::Types::BusinessConnection
- Defined in:
- lib/tdlib/types/business_connection.rb
Overview
Describes a connection of the bot with a business account.
Instance Attribute Summary collapse
-
#can_reply ⇒ Boolean
True, if the bot can send messages to the connected user; false otherwise.
-
#date ⇒ Integer
Point in time (Unix timestamp) when the connection was established.
-
#id ⇒ TD::Types::String
Unique identifier of the connection.
-
#is_enabled ⇒ Boolean
True, if the connection is enabled; false otherwise.
-
#user_chat_id ⇒ Integer
Chat identifier of the private chat with the user.
-
#user_id ⇒ Integer
Identifier of the business user that created the connection.
Method Summary
Methods inherited from Base
Instance Attribute Details
#can_reply ⇒ Boolean
True, if the bot can send messages to the connected user; false otherwise.
10 11 12 |
# File 'lib/tdlib/types/business_connection.rb', line 10 def can_reply @can_reply end |
#date ⇒ Integer
Point in time (Unix timestamp) when the connection was established.
10 11 12 |
# File 'lib/tdlib/types/business_connection.rb', line 10 def date @date end |
#id ⇒ TD::Types::String
Unique identifier of the connection.
10 11 12 |
# File 'lib/tdlib/types/business_connection.rb', line 10 def id @id end |
#is_enabled ⇒ Boolean
True, if the connection is enabled; false otherwise.
10 11 12 |
# File 'lib/tdlib/types/business_connection.rb', line 10 def is_enabled @is_enabled end |
#user_chat_id ⇒ Integer
Chat identifier of the private chat with the user.
10 11 12 |
# File 'lib/tdlib/types/business_connection.rb', line 10 def user_chat_id @user_chat_id end |
#user_id ⇒ Integer
Identifier of the business user that created the connection.
10 11 12 |
# File 'lib/tdlib/types/business_connection.rb', line 10 def user_id @user_id end |