BusinessMessagesDeleted constructor

const BusinessMessagesDeleted({
  1. @JsonKey(name: 'business_connection_id') required String businessConnectionId,
  2. @JsonKey(name: 'chat') required Chat chat,
  3. @JsonKey(name: 'message_ids') required List<int> messageIds,
})

Creates a BusinessMessagesDeleted object.

Implementation

const factory BusinessMessagesDeleted({
  /// Unique identifier of the business connection.
  @JsonKey(name: 'business_connection_id')
  required String businessConnectionId,

  /// Information about a chat in the business account. The bot may not have
  /// access to the chat or the corresponding user.
  @JsonKey(name: 'chat') required Chat chat,

  /// A JSON-serialized list of identifiers of deleted messages in the chat of
  /// the business account.
  @JsonKey(name: 'message_ids') required List<int> messageIds,
}) = _BusinessMessagesDeleted;