BusinessRecipients class final

BusinessRecipients (businessRecipients) - basic class

Describes private chats chosen for automatic interaction with a business.

  • chatIds: Identifiers of selected private chats.
  • excludedChatIds: Identifiers of private chats that are always excluded; for businessConnectedBot only.
  • selectExistingChats: True, if all existing private chats are selected.
  • selectNewChats: True, if all new private chats are selected.
  • selectContacts: True, if all private chats with contacts are selected.
  • selectNonContacts: True, if all private chats with non-contacts are selected.
  • excludeSelected: If true, then all private chats except the selected are chosen. Otherwise, only the selected chats are chosen.
Inheritance

Constructors

BusinessRecipients({required List<int> chatIds, required List<int> excludedChatIds, required bool selectExistingChats, required bool selectNewChats, required bool selectContacts, required bool selectNonContacts, required bool excludeSelected})
BusinessRecipients (businessRecipients) - basic class
const
BusinessRecipients.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

chatIds List<int>
Identifiers of selected private chats
final
clientId int?
Client ID, from which this object was received
no setterinherited
currentObjectId String
TDLib object type for current class instance
no setteroverride
excludedChatIds List<int>
Identifiers of private chats that are always excluded; for businessConnectedBot only
final
excludeSelected bool
If true, then all private chats except the selected are chosen. Otherwise, only the selected chats are chosen
final
extra → dynamic
A sign from TDLib update
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectContacts bool
True, if all private chats with contacts are selected
final
selectExistingChats bool
True, if all existing private chats are selected
final
selectNewChats bool
True, if all new private chats are selected
final
selectNonContacts bool
True, if all private chats with non-contacts are selected
final

Methods

copyWith({List<int>? chatIds, List<int>? excludedChatIds, bool? selectExistingChats, bool? selectNewChats, bool? selectContacts, bool? selectNonContacts, bool? excludeSelected}) BusinessRecipients
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() String
Convert model to TDLib JSON format, encoded into String.
override

Operators

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

Constants

defaultObjectId → const String
TDLib object type