BusinessConnection class

Represents the connection of the bot with a business account.

Implemented types

Constructors

BusinessConnection({required String id, required User user, required int userChatId, required int date, required bool canReply, required bool isEnabled})
Constructs a new BusinessConnection instance with the provided parameters.
const
BusinessConnection.fromJson(Map<String, dynamic> json)
Constructs a BusinessConnection instance from a JSON map.
factory

Properties

canReply bool
Indicates whether the bot can act on behalf of the business account in chats that were active in the last 24 hours.
final
date int
Date the connection was established in Unix time.
final
from User
Business account user that created the business connection.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier of the business connection.
final
isEnabled bool
Indicates whether the connection is active.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user User
Business account user that created the business connection.
final
userChatId int
Identifier of a private chat with the user who created the business connection. 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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the BusinessConnection instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited