BusinessConnection class final

Describes a connection of the bot with a business account

Inheritance

Constructors

BusinessConnection({required String id, required int userId, required int userChatId, required int date, BusinessBotRights? rights, required bool isEnabled, dynamic extra, int? clientId})
Describes a connection of the bot with a business account
const
BusinessConnection.fromJson(Map<String, dynamic> json)
Parses a BusinessConnection from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
date → int
Point in time (Unix timestamp) when the connection was established
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier of the connection
final
isEnabled → bool
True, if the connection is enabled; false otherwise
final
rights → BusinessBotRights?
Rights of the bot; may be null if the connection was disabled
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userChatId → int
Chat identifier of the private chat with the user
final
userId → int
Identifier of the business user who created the connection
final

Methods

copyWith({String? id, int? userId, int? userChatId, int? date, BusinessBotRights? rights()?, bool? isEnabled, dynamic extra, int? clientId}) → BusinessConnection
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.